|
|
@@ -56,8 +56,7 @@ public class UpdateInspectionStatusService { |
|
|
|
*/ |
|
|
|
public JsonResult updateStatus(MissionStatusRequest missionStatusRequest) { |
|
|
|
log.info("进入修改任务状态业务接口, missionStatusRequest:{}", missionStatusRequest); |
|
|
|
String tenantId = CurrentUserUtil.getTenantId(); |
|
|
|
JsonResult result = this.check(tenantId, missionStatusRequest); |
|
|
|
JsonResult result = this.check(missionStatusRequest); |
|
|
|
if (0 != result.getCode()) { |
|
|
|
log.info("修改任务状态业务接口:校验失败:{}", result.getMsg()); |
|
|
|
return result; |
|
|
@@ -84,11 +83,11 @@ public class UpdateInspectionStatusService { |
|
|
|
|
|
|
|
/** |
|
|
|
* 检查参数 |
|
|
|
* @param tenantId |
|
|
|
* |
|
|
|
* @param missionStatusRequest |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
private JsonResult check(String tenantId, MissionStatusRequest missionStatusRequest) { |
|
|
|
private JsonResult check(MissionStatusRequest missionStatusRequest) { |
|
|
|
//查询出对应的巡检任务 |
|
|
|
Inspection inspection = inspectionMapper.selectOne(new LambdaQueryWrapper<Inspection>() |
|
|
|
.eq(Inspection::getMark, MarkTypeEnum.VALID.getCode()) |