Browse Source

调整统计字段

master
xyiege 3 years ago
parent
commit
c9ea05ce90
  1. 6
      src/main/java/cn/chjyj/szwh/service/impl/IndexServiceImpl.java
  2. 2
      src/main/resources/mapper/szwh/GoodsMapper.xml

6
src/main/java/cn/chjyj/szwh/service/impl/IndexServiceImpl.java

@ -101,10 +101,10 @@ public class IndexServiceImpl implements IndexService {
Integer shelfCount = goodsMapper.goodsCount(xgmap); Integer shelfCount = goodsMapper.goodsCount(xgmap);
result.put("shelf_count", shelfCount == null ? 0 : shelfCount); result.put("shelf_count", shelfCount == null ? 0 : shelfCount);
//下架数量 // 委托期满的产品
Map ogmap = new HashMap(); Map ogmap = new HashMap();
ogmap.put("goods_status", "4"); // ogmap.put("goods_status", "4");
ogmap.put("btwstr", "canceltime between " + yesterday_start + " and " + yesterday_end); ogmap.put("btwstr", "contractualtime_end_time between " + yesterday_start + " and " + yesterday_end);
Integer outCount = goodsMapper.goodsCount(ogmap); Integer outCount = goodsMapper.goodsCount(ogmap);
result.put("out_count", outCount == null ? 0 : outCount); result.put("out_count", outCount == null ? 0 : outCount);

2
src/main/resources/mapper/szwh/GoodsMapper.xml

@ -22,7 +22,7 @@
<where> <where>
<foreach collection="map" item="v" index="k" separator="and"> <foreach collection="map" item="v" index="k" separator="and">
<if test="v != null and v != '' and k!='btwstr'"> <if test="v != null and v != '' and k!='btwstr'">
${k} = #{v} ${k} = ${v}
</if> </if>
<if test="k=='btwstr'"> <if test="k=='btwstr'">
${v} ${v}

Loading…
Cancel
Save