|
@@ -794,6 +794,28 @@ public class LongYanRepairStrategy extends AbstractRepairBaseStrategy {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public RepairApplicationFormDTO closeRepairOnly(RepairApplicationFormDTO dto) {
|
|
|
+
|
|
|
+ UserInfo userInfo = SecurityUtils.getUserInfo();
|
|
|
+ if(userInfo.getSuperAdmin() == 0){
|
|
|
+ String roles = getCurrentRoles();
|
|
|
+ if(!roles.contains(SysRoleCodeEnum.REPAIR_MANAGE.name()) && !roles.contains(SysRoleCodeEnum.MM.name())){
|
|
|
+ throw new DeniedException("不具备关闭工单权限");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ RepairApplicationForm queryForm = repairApplicationFormMapper.selectById(dto.getId());
|
|
|
+
|
|
|
+ RepairApplicationForm form = new RepairApplicationForm();
|
|
|
+ form.setId(dto.getId());
|
|
|
+ form.setStatus(RepairApplicationFormStatusEnum.MM_REPAIR_CLOSE.getValue());
|
|
|
+ repairApplicationFormMapper.updateByPrimaryKeySelective(form);
|
|
|
+
|
|
|
+ SysUserVO vo = sysUserService.selectUserVO(queryForm.getReportLeaderId());
|
|
|
+ sendMessageToReportLeader(queryForm,vo,CommonConstants.MM_CLOSE_REPAIR);
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
@Override
|
|
|
public void verifyRepairByMM(RepairApplicationFormDTO model) {
|
|
|
|