Browse Source

更新品牌查询时间过滤为最后更新时间

hejq 7 years ago
parent
commit
5e78cd1083

+ 1 - 1
src/main/java/com/uas/platform/b2c/prod/commodity/service/impl/GoodsServiceImpl.java

@@ -4077,7 +4077,7 @@ public class GoodsServiceImpl implements GoodsService {
         }
         Integer addend = 60 * 60 * 24 * 1000;
         endDate = new java.sql.Date(endDate.getTime() + addend);
-        StringBuffer sql = new StringBuffer("select br_name_en as brand, count(1) as count from product$brand where br_createtime >= ? and br_createtime < ? group by br_name_en");
+        StringBuffer sql = new StringBuffer("select br_name_en as brand, count(1) as count from product$brand where br_modifytime >= ? and br_modifytime < ? group by br_name_en");
         StringBuffer countSql = new StringBuffer("select count(1) from (").append(sql).append(") as a");
         Integer count = commonDao.queryForObject(countSql.toString(), Integer.class, startDate, endDate);
         // 分页参数