优化入库出库统计接口
This commit is contained in:
@@ -189,9 +189,9 @@ public class DepotHeadController {
|
|||||||
}
|
}
|
||||||
beginTime = Tools.parseDayToTime(beginTime,BusinessConstants.DAY_FIRST_TIME);
|
beginTime = Tools.parseDayToTime(beginTime,BusinessConstants.DAY_FIRST_TIME);
|
||||||
endTime = Tools.parseDayToTime(endTime,BusinessConstants.DAY_LAST_TIME);
|
endTime = Tools.parseDayToTime(endTime,BusinessConstants.DAY_LAST_TIME);
|
||||||
List<DepotHeadVo4InOutMCount> list = depotHeadService.findInOutMaterialCount(beginTime, endTime, type, materialParam,
|
List<DepotHeadVo4InOutMCount> list = depotHeadService.findInOutMaterialCount(beginTime, endTime, type, StringUtil.toNull(materialParam),
|
||||||
depotList, oId, (currentPage-1)*pageSize, pageSize);
|
depotList, oId, (currentPage-1)*pageSize, pageSize);
|
||||||
int total = depotHeadService.findInOutMaterialCountTotal(beginTime, endTime, type, materialParam, depotList, oId);
|
int total = depotHeadService.findInOutMaterialCountTotal(beginTime, endTime, type, StringUtil.toNull(materialParam), depotList, oId);
|
||||||
map.put("total", total);
|
map.put("total", total);
|
||||||
map.put("rows", list);
|
map.put("rows", list);
|
||||||
res.code = 200;
|
res.code = 200;
|
||||||
|
|||||||
@@ -340,7 +340,7 @@
|
|||||||
</if>
|
</if>
|
||||||
<if test="materialParam != null and materialParam !=''">
|
<if test="materialParam != null and materialParam !=''">
|
||||||
<bind name="bindKey" value="'%'+materialParam+'%'"/>
|
<bind name="bindKey" value="'%'+materialParam+'%'"/>
|
||||||
and (m.bar_code like #{bindKey} or m.mName like #{bindKey} or m.standard like #{bindKey} or m.model like #{bindKey})
|
and (me.bar_code like #{bindKey} or m.name like #{bindKey} or m.standard like #{bindKey} or m.model like #{bindKey})
|
||||||
</if>
|
</if>
|
||||||
and ifnull(dh.delete_flag,'0') !='1'
|
and ifnull(dh.delete_flag,'0') !='1'
|
||||||
group by di.material_id
|
group by di.material_id
|
||||||
@@ -383,7 +383,7 @@
|
|||||||
</if>
|
</if>
|
||||||
<if test="materialParam != null and materialParam !=''">
|
<if test="materialParam != null and materialParam !=''">
|
||||||
<bind name="bindKey" value="'%'+materialParam+'%'"/>
|
<bind name="bindKey" value="'%'+materialParam+'%'"/>
|
||||||
and (m.bar_code like #{bindKey} or m.mName like #{bindKey} or m.standard like #{bindKey} or m.model like #{bindKey})
|
and (me.bar_code like #{bindKey} or m.name like #{bindKey} or m.standard like #{bindKey} or m.model like #{bindKey})
|
||||||
</if>
|
</if>
|
||||||
and ifnull(dh.delete_flag,'0') !='1'
|
and ifnull(dh.delete_flag,'0') !='1'
|
||||||
group by di.material_id) a
|
group by di.material_id) a
|
||||||
|
|||||||
Reference in New Issue
Block a user