rev:移库操作添加任务校验
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user