解决零售统计的查询bug
This commit is contained in:
@@ -582,10 +582,10 @@ public class DepotItemController {
|
|||||||
List<Long> depotList = depotService.parseDepotList(depotId);
|
List<Long> depotList = depotService.parseDepotList(depotId);
|
||||||
Boolean forceFlag = systemConfigService.getForceApprovalFlag();
|
Boolean forceFlag = systemConfigService.getForceApprovalFlag();
|
||||||
List<DepotItemVo4WithInfoEx> dataList = depotItemService.getListWithBugOrSale(StringUtil.toNull(materialParam),
|
List<DepotItemVo4WithInfoEx> dataList = depotItemService.getListWithBugOrSale(StringUtil.toNull(materialParam),
|
||||||
"sale", beginTime, endTime, creatorArray, organId, organArray, depotList, forceFlag, (currentPage-1)*pageSize, pageSize);
|
"retail", beginTime, endTime, creatorArray, organId, organArray, depotList, forceFlag, (currentPage-1)*pageSize, pageSize);
|
||||||
String[] mpArr = mpList.split(",");
|
String[] mpArr = mpList.split(",");
|
||||||
int total = depotItemService.getListWithBugOrSaleCount(StringUtil.toNull(materialParam),
|
int total = depotItemService.getListWithBugOrSaleCount(StringUtil.toNull(materialParam),
|
||||||
"sale", beginTime, endTime, creatorArray, organId, organArray, depotList, forceFlag);
|
"retail", beginTime, endTime, creatorArray, organId, organArray, depotList, forceFlag);
|
||||||
map.put("total", total);
|
map.put("total", total);
|
||||||
//存放数据json数组
|
//存放数据json数组
|
||||||
JSONArray dataArray = new JSONArray();
|
JSONArray dataArray = new JSONArray();
|
||||||
|
|||||||
@@ -412,7 +412,10 @@
|
|||||||
and (dh.sub_type = '采购' or dh.sub_type = '采购退货')
|
and (dh.sub_type = '采购' or dh.sub_type = '采购退货')
|
||||||
</if>
|
</if>
|
||||||
<if test="billType =='sale'">
|
<if test="billType =='sale'">
|
||||||
and (dh.sub_type = '销售' or dh.sub_type = '销售退货' or dh.sub_type = '零售' or dh.sub_type = '零售退货')
|
and (dh.sub_type = '销售' or dh.sub_type = '销售退货')
|
||||||
|
</if>
|
||||||
|
<if test="billType =='retail'">
|
||||||
|
and (dh.sub_type = '零售' or dh.sub_type = '零售退货')
|
||||||
</if>
|
</if>
|
||||||
<if test="beginTime != null">
|
<if test="beginTime != null">
|
||||||
and dh.oper_time >= #{beginTime}
|
and dh.oper_time >= #{beginTime}
|
||||||
|
|||||||
Reference in New Issue
Block a user