rev:移库操作添加任务校验

This commit is contained in:
zhangzhiqiang
2023-06-02 17:10:16 +08:00
parent 09cbc18898
commit e495271f23

View File

@@ -261,6 +261,12 @@ public class FlourworkServiceImpl implements FlourworkService {
}
if (ObjectUtil.isEmpty(moveInIvt)) break;
// 5.生成移库单
//校验点位是否有执行中任务:
;
JSONArray runingtask = WQLObject.getWQLObject("SCH_BASE_Task").query("next_point_code = '" + moveInIvt.getString("point_code") + "' and task_status <> '99'").getResultJSONArray(0);
if (runingtask.size()>0){
throw new BadRequestException("分配点位存在未完成任务:"+moveInIvt.getString("point_code"));
}
JSONObject map = new JSONObject();
JSONArray tableData = new JSONArray();
map.put("bill_status", "10");