|
|
@@ -4064,7 +4064,7 @@ public class GoodsServiceImpl implements GoodsService {
|
|
|
public com.uas.sso.support.Page<BrandCount> getBrandProductsCount(Pageable pageable, Date startTime, Date endTime) {
|
|
|
java.sql.Date startDate = assignStartDate(startTime);
|
|
|
java.sql.Date endDate = assignEndDate(endTime);
|
|
|
- StringBuffer sql = new StringBuffer("select br_name_en as brand, count(1) as count from trade$goods where br_name_en is not null and go_update_date >= ? and go_update_date < ? group by br_name_en");
|
|
|
+ StringBuffer sql = new StringBuffer("select br_name_en as brand, count(1) as count from trade$goods where br_name_en is not null and go_createddate between ? and ? 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);
|
|
|
// 分页参数
|
|
|
@@ -4092,6 +4092,8 @@ public class GoodsServiceImpl implements GoodsService {
|
|
|
|
|
|
/**
|
|
|
* 设置截止时间
|
|
|
+ * 截止时间+1是取到截止时间的23:59:59数据,
|
|
|
+ * java.sql.Date 精确到天,所以采用+1天小于来过滤
|
|
|
*
|
|
|
* @param endTime 前端传入截止时间
|
|
|
* @return java.sql.Date
|
|
|
@@ -4121,7 +4123,7 @@ public class GoodsServiceImpl implements GoodsService {
|
|
|
public com.uas.sso.support.Page<KindHierarchicalCount> getKindProductsCount(Pageable pageable, Date startTime, Date endTime) {
|
|
|
java.sql.Date startDate = assignStartDate(startTime);
|
|
|
java.sql.Date endDate = assignEndDate(endTime);
|
|
|
- StringBuffer sql = new StringBuffer("select ki_name as thirdKind, go_kind_uuid as kindId, count(1) as count from trade$goods where go_update_date between ? and ? group by ki_name, go_kind_uuid");
|
|
|
+ StringBuffer sql = new StringBuffer("select ki_name as thirdKind, go_kind_uuid as kindId, count(1) as count from trade$goods where go_createddate between ? and ? group by ki_name, go_kind_uuid");
|
|
|
StringBuffer countSql = new StringBuffer("select count(1) from (").append(sql).append(") as a");
|
|
|
Integer count = commonDao.queryForObject(countSql.toString(), Integer.class, startDate, endDate);
|
|
|
// 分页参数
|