guarantee-lsq il y a 1 an
Parent
commit
23828600fe

+ 3 - 3
platform-service/src/main/java/com/platform/service/repair/strategy/impl/LongYanRepairStrategy.java

@@ -97,13 +97,13 @@ public class LongYanRepairStrategy extends AbstractRepairBaseStrategy {
         form.setReportLeaderId(getReportLeaderId(model.getSbId()));
         form.setStatus(RepairApplicationFormStatusEnum.REPAIR_VERIFYING.getValue()); // 维修待审
         //form.setStatus(RepairApplicationFormStatusEnum.NOT_ALLOCATED.getValue());
-        repairApplicationFormMapper.insert(form);
-        // 记录维修状态跟踪
-        addRepairStatusRecord(form,"报修");
         // 给生产的审核人员发送审核消息
         if(StringUtils.isBlank(form.getVerifyRepairUserId())){
             throw new DeniedException("报修没有审核人,请确认!");
         }
+        repairApplicationFormMapper.insert(form);
+        // 记录维修状态跟踪
+        addRepairStatusRecord(form,"报修");
         List<SysUserVO> sysUserVOList = ListUtils.newArrayList();
         SysUser sysUser = sysUserMapper.selectByPrimaryKey(form.getVerifyRepairUserId());
         sysUserVOList.add(BeanConverterUtil.copyObjectProperties(sysUser,SysUserVO.class));