设备维修提报bug,(从设备点检跳过来object也有可能不为空)

master
赵嘉伟 3 years ago
parent e194fde722
commit c01f7e67ea

@ -172,7 +172,7 @@ public class ResourceRepairTaskController {
try{
resourceRepairTaskService.saveRepairTask(resourceRepairTask);
}catch (Exception e){
return R.failed("提报失败"+e.getMessage());
return R.failed("提报失败:"+e.getMessage());
}
return R.ok();
}

@ -15,7 +15,6 @@ import com.foreverwin.mesnac.equip.model.ResourceRepairTask;
import com.foreverwin.mesnac.equip.service.ResourceInspectPlanService;
import com.foreverwin.mesnac.equip.service.ResourceInspectTaskSpareService;
import com.foreverwin.mesnac.equip.service.ResourceRepairTaskService;
import com.foreverwin.mesnac.meapi.dto.NcCodeDto;
import com.foreverwin.mesnac.meapi.mapper.NcCodeMapper;
import com.foreverwin.mesnac.meapi.mapper.NwaUserMapper;
import com.foreverwin.mesnac.meapi.model.DataField;
@ -27,8 +26,8 @@ import com.foreverwin.mesnac.meapi.service.ResrceService;
import com.foreverwin.modular.core.exception.BusinessException;
import com.foreverwin.modular.core.util.CommonMethods;
import com.foreverwin.modular.core.util.FrontPage;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.i18n.LocaleContextHolder;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
@ -149,7 +148,7 @@ public class ResourceRepairTaskServiceImpl extends ServiceImpl<ResourceRepairTas
}
//调用方法,关闭异常单的状态
String objectBo = resourceRepairTask.getObjectBo();
if (objectBo != null){
if (StringUtils.isNotBlank(objectBo)){
anomalyService.anomalyReveseRepairShutDown(objectBo);
}

Loading…
Cancel
Save