@@ -10,7 +10,8 @@ public enum AirDataEnum { | |||
//任务状态1待执行 2执行中 | |||
INSPECTION_ID_IS_NULL(10001,"任务id为空"), | |||
AIR_DATA_IS_NOT_EXIST(10002,"大气数据为空"); | |||
INSPECTION_IS_NOT_EXIST(10002,"任务不存在"), | |||
AIR_DATA_IS_NOT_EXIST(10003,"大气数据为空"); | |||
AirDataEnum(int code, String msg){ | |||
this.code = code; |
@@ -82,6 +82,9 @@ public class QueryAirDataListService { | |||
} | |||
//获取任务名称 | |||
Inspection inspection = inspectionMapper.selectById(id); | |||
if(ObjectUtil.isNull(inspection)){ | |||
return JsonResult.error(AirDataEnum.INSPECTION_IS_NOT_EXIST.getCode(),AirDataEnum.INSPECTION_IS_NOT_EXIST.getMsg()); | |||
} | |||
String name = inspection.getName(); | |||
if(StringUtils.isEmpty(name)){ | |||
log.info("对应的任务名称为空"); |