|
|
@@ -1067,7 +1067,7 @@ public class RepairApplicationFormServiceImpl
|
|
|
// applicationForm.setContent(dto.getContent());
|
|
|
applicationForm.setOutType(dto.getOutType());
|
|
|
applicationForm.setCategory(dto.getCategory());
|
|
|
-
|
|
|
+ applicationForm.setAssistantStatus(RepairAssistantStatusEnum.end.getValue());
|
|
|
this.saveRepairFile(dto);
|
|
|
super.modModelByPrimaryKey(applicationForm);
|
|
|
|
|
|
@@ -2001,6 +2001,9 @@ public class RepairApplicationFormServiceImpl
|
|
|
if (form == null) {
|
|
|
throw new DeniedException("维修单ID值有误!");
|
|
|
}
|
|
|
+ if(StringUtils.isBlank(form.getRepairUserId())){
|
|
|
+ throw new DeniedException("该维修单尚未指派维修人");
|
|
|
+ }
|
|
|
if (!form.getRepairUserId().equals(SecurityUtils.getUserInfo().getUserId())){
|
|
|
throw new DeniedException("非该维修单的维修人不可操作");
|
|
|
}
|