Browse Source

opt:货位新增Bug修改,新增库区第一条库位查询判空

master
DESKTOP-5DIJMF9\admin 1 month ago
parent
commit
a10b2f654d
  1. 5
      lxservice/com/noblelift/imp/products/mes/service/st/bs/StructAttrServiceImpl.java

5
lxservice/com/noblelift/imp/products/mes/service/st/bs/StructAttrServiceImpl.java

@ -44,7 +44,10 @@ public class StructAttrServiceImpl implements StructAttrService {
map.put("flag", "3"); map.put("flag", "3");
map.put("sect_uuid", form.optString("sect_uuid")); map.put("sect_uuid", form.optString("sect_uuid"));
JSONObject job = WQL.getWO("ST_BS_STRUCTATTRQUERY_01").addParamMap(map).process().uniqueResult(0); JSONObject job = WQL.getWO("ST_BS_STRUCTATTRQUERY_01").addParamMap(map).process().uniqueResult(0);
int total = job.optInt("order_no"); int total = 0;
if(job != null){
total = job.optInt("order_no");
}
//校验编码是否重复 //校验编码是否重复
String code = form.optString("struct_code"); String code = form.optString("struct_code");
JSONObject jo = WQLObject.getWQLObject(tableName).query("struct_code=? and SYSISDELETE=?", new String[] {code,"0"}, "").uniqueResult(0); JSONObject jo = WQLObject.getWQLObject(tableName).query("struct_code=? and SYSISDELETE=?", new String[] {code,"0"}, "").uniqueResult(0);

Loading…
Cancel
Save