解决零售统计的查询bug
This commit is contained in:
parent
153f193a39
commit
be1398a8d8
@ -582,10 +582,10 @@ public class DepotItemController {
|
||||
List<Long> depotList = depotService.parseDepotList(depotId);
|
||||
Boolean forceFlag = systemConfigService.getForceApprovalFlag();
|
||||
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(",");
|
||||
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);
|
||||
//存放数据json数组
|
||||
JSONArray dataArray = new JSONArray();
|
||||
|
||||
@ -412,7 +412,10 @@
|
||||
and (dh.sub_type = '采购' or dh.sub_type = '采购退货')
|
||||
</if>
|
||||
<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 test="beginTime != null">
|
||||
and dh.oper_time >= #{beginTime}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user