转储单页面统计可出入的数量
This commit is contained in:
@@ -82,11 +82,22 @@ public class DumpinvServiceImpl implements DumpinvService {
|
||||
HashMap<String, String> map = new HashMap<>();
|
||||
map.put("flag", "1");
|
||||
map.put("label_uuid", label_uuid);
|
||||
JSONObject materialObj = WQLObject.getWQLObject("md_base_materiallabelmst").query("label_uuid='" + label_uuid + "'").uniqueResult(0);
|
||||
if (ObjectUtil.isEmpty(materialObj)){
|
||||
throw new BadRequestException("未找到该物料批次的信息!");
|
||||
}
|
||||
String material_code = materialObj.getString("material_code");
|
||||
JSONArray turnInArr = new JSONArray();
|
||||
if (StrUtil.equals(material_code,"1")){
|
||||
turnInArr = pointTab.query("area_type = '03' and point_status ='00' and lock_type='00' and is_active='1' and is_delete='0' and point_name like'%一层%'").getResultJSONArray(0);
|
||||
}else {
|
||||
turnInArr = pointTab.query("area_type = '03' and point_status ='00' and lock_type='00' and is_active='1' and is_delete='0' and point_name not like'%一层%'").getResultJSONArray(0);
|
||||
|
||||
}
|
||||
|
||||
JSONArray turnOutArr = WQL.getWO("QST_DUMP01").addParamMap(map).process().getResultJSONArray(0);
|
||||
if (ObjectUtil.isNotEmpty(turnOutArr)) turnout_num = turnOutArr.size();
|
||||
|
||||
JSONArray turnInArr = pointTab.query("area_type = '03' and point_status ='00' and lock_type='00' and is_active='1' and is_delete='0'").getResultJSONArray(0);
|
||||
if (ObjectUtil.isNotEmpty(turnInArr)) turnin_num = turnInArr.size();
|
||||
|
||||
JSONObject result = new JSONObject();
|
||||
|
||||
Reference in New Issue
Block a user