|
|
@@ -2219,9 +2219,9 @@ public class ProductServiceImpl implements ProductService {
|
|
|
if (fromDate == null || toDate == null) {
|
|
|
//统计所有的未审核的品牌信息
|
|
|
Map<String, Integer> map = new HashedMap();
|
|
|
- Integer productAmout = jdbcTemplate.queryForInt("select count(1) from products p left join product$private pp on p.pr_id = pp.pr_id where pp.pr_b2cenabled = 1;");
|
|
|
+ Integer productAmout = jdbcTemplate.queryForInt("select count(1) from products p join product$private pp on p.pr_id = pp.pr_id where pp.pr_b2cenabled = 1;");
|
|
|
map.put("productAmout", productAmout);
|
|
|
- Integer productUserAmout = jdbcTemplate.queryForInt("select count(DISTINCT pr_enuu) from products p left join product$private pp on p.pr_id = pp.pr_id where pp.pr_b2cenabled = 1;");
|
|
|
+ Integer productUserAmout = jdbcTemplate.queryForInt("select count(DISTINCT pr_enuu) from products p join product$private pp on p.pr_id = pp.pr_id where pp.pr_b2cenabled = 1;");
|
|
|
map.put("productUserAmout", productUserAmout);
|
|
|
return ResultMap.success(map);
|
|
|
} else {
|
|
|
@@ -2229,9 +2229,9 @@ public class ProductServiceImpl implements ProductService {
|
|
|
Date toT = new Date(toDate);
|
|
|
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
Map<String, Integer> map = new HashedMap();
|
|
|
- Integer productAmout = jdbcTemplate.queryForInt("select count(1) from products p left join product$private pp on p.pr_id = pp.pr_id where pr_create_time < '" + dateFormat.format(toT) + "' and pr_create_time > '" + dateFormat.format(fromT) + "' and pp.pr_b2cenabled = 1;");
|
|
|
+ Integer productAmout = jdbcTemplate.queryForInt("select count(1) from products p join product$private pp on p.pr_id = pp.pr_id where pr_create_time < '" + dateFormat.format(toT) + "' and pr_create_time > '" + dateFormat.format(fromT) + "' and pp.pr_b2cenabled = 1;");
|
|
|
map.put("productAmout", productAmout);
|
|
|
- Integer productUserAmout = jdbcTemplate.queryForInt("select count(DISTINCT pr_enuu) from products p left join product$private pp on p.pr_id = pp.pr_id where pr_create_time < '" + dateFormat.format(toT) + "' and pr_create_time > '" + dateFormat.format(fromT) + "' and pp.pr_b2cenabled = 1;");
|
|
|
+ Integer productUserAmout = jdbcTemplate.queryForInt("select count(DISTINCT pr_enuu) from products p join product$private pp on p.pr_id = pp.pr_id where pr_create_time < '" + dateFormat.format(toT) + "' and pr_create_time > '" + dateFormat.format(fromT) + "' and pp.pr_b2cenabled = 1;");
|
|
|
map.put("productUserAmout", productUserAmout);
|
|
|
return ResultMap.success(map);
|
|
|
}
|