fix:任务空指针校验
This commit is contained in:
@@ -555,6 +555,10 @@ public class RawFoilServiceImpl implements RawFoilService {
|
||||
String container_name = jsonRaw.getString("container_name");
|
||||
JSONObject task_jo = WQLObject.getWQLObject("SCH_BASE_Task").query("material_code = '" + container_name + "' and task_status <> '07' AND is_delete = '0'").uniqueResult(0);
|
||||
|
||||
if (ObjectUtil.isEmpty(task_jo)) {
|
||||
throw new BadRequestException("当前母卷AGV搬运任务不存在或已被强制完成!");
|
||||
}
|
||||
|
||||
// 查询生箔点位库存表
|
||||
JSONObject jsonSb = stIvtSbpointivtService.query("ext_code = '" + jsonRaw.getString("resource_name") + "'").uniqueResult(0);
|
||||
if (ObjectUtil.isEmpty(jsonSb)) {
|
||||
@@ -602,6 +606,10 @@ public class RawFoilServiceImpl implements RawFoilService {
|
||||
String container_name = jsonRaw.getString("container_name");
|
||||
JSONObject task_jo = WQLObject.getWQLObject("SCH_BASE_Task").query("material_code = '" + container_name + "' and task_status <> '07' AND is_delete = '0'").uniqueResult(0);
|
||||
|
||||
if (ObjectUtil.isEmpty(task_jo)) {
|
||||
throw new BadRequestException("当前母卷AGV搬运任务不存在或已被强制完成!");
|
||||
}
|
||||
|
||||
// 查询生箔点位库存表
|
||||
JSONObject jsonSb = WQLObject.getWQLObject("st_ivt_sbpointivt").query("ext_code = '" + jsonRaw.getString("resource_name") + "'").uniqueResult(0);
|
||||
if (ObjectUtil.isEmpty(jsonSb)) {
|
||||
|
||||
Reference in New Issue
Block a user