|
|
@@ -200,6 +200,13 @@ public class GoodsServiceImpl implements GoodsService {
|
|
|
*/
|
|
|
private final BoundedExecutor executor;
|
|
|
|
|
|
+ private static List<String> pcbStore = new ArrayList<String>();
|
|
|
+
|
|
|
+ static {
|
|
|
+ pcbStore.add("shengfang");
|
|
|
+ pcbStore.add("9612c0a894894c1aabbfe9192749bbfa");
|
|
|
+ }
|
|
|
+
|
|
|
@Autowired
|
|
|
private PCBDao pcbDao;
|
|
|
|
|
|
@@ -2227,7 +2234,12 @@ public class GoodsServiceImpl implements GoodsService {
|
|
|
return null;
|
|
|
}
|
|
|
// pageInfo.expression(PredicateUtils.or(new SimpleExpression[]{PredicateUtils.eq("status", 601, true), PredicateUtils.eq("status", 602, true)}));
|
|
|
- pageInfo.expression(PredicateUtils.in("status", new Integer[]{601, 602, 613}, true));
|
|
|
+ if (pcbStore.contains(storeid)) {
|
|
|
+ pageInfo.expression(PredicateUtils.eq("status", 601, true));
|
|
|
+ } else {
|
|
|
+ pageInfo.expression(PredicateUtils.in("status", new Integer[]{601, 602, 613}, true));
|
|
|
+ }
|
|
|
+
|
|
|
pageInfo.sorting(Sort.Direction.DESC, "updateDate");
|
|
|
pageInfo.expression(PredicateUtils.eq("storeid", storeid, false));
|
|
|
if (StringUtils.hasText(kindUuid)) {
|
|
|
@@ -4206,8 +4218,6 @@ public class GoodsServiceImpl implements GoodsService {
|
|
|
@Override
|
|
|
public void exportKindProductsCount(Date startTime, Date endTime, HttpServletResponse response) throws Exception {
|
|
|
logger.info("批量导出类目", System.currentTimeMillis() + "开始时间");
|
|
|
- jdbcTemplate.execute("drop temporary table temp_kind");
|
|
|
-
|
|
|
StringBuffer where = new StringBuffer(" from products where pr_kind is not null");
|
|
|
if (null != startTime) {
|
|
|
where.append(" and pr_create_time >= '").append(new java.sql.Date(startTime.getTime())).append("' ");
|
|
|
@@ -4254,6 +4264,7 @@ public class GoodsServiceImpl implements GoodsService {
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
+ jdbcTemplate.execute("drop temporary table temp_kind");
|
|
|
|
|
|
logger.info("批量导出类目", System.currentTimeMillis() + "结束时间");
|
|
|
}
|