|
@@ -249,7 +249,12 @@ public class IotMaintainServiceImpl implements IotMaintainService {
|
|
|
updateObj.setStatus("finished");
|
|
|
//}
|
|
|
updateObj.setPic(JSON.toJSONString(updateReqVO.getMaintain().getPics()));
|
|
|
- updateObj.setOutFile(JSON.toJSONString(updateReqVO.getMaintain().getOutFiles()));
|
|
|
+ if (Objects.nonNull(updateReqVO.getMaintain().getOutFiles())&&CollUtil.isNotEmpty(updateReqVO.getMaintain().getOutFiles())) {
|
|
|
+ updateObj.setOutFile(JSON.toJSONString(updateReqVO.getMaintain().getOutFiles()));
|
|
|
+ }
|
|
|
+ if ("out".equals(updateObj.getType())) {
|
|
|
+ updateObj.setStatus("oa");
|
|
|
+ }
|
|
|
iotMaintainMapper.updateById(updateObj);
|
|
|
//删除工单bom及物料
|
|
|
iotMaintainBomMapper.delete("maintain_id", String.valueOf(updateObj.getId()));
|