Browse Source

维修中添加备件修改工单状态

lyhzzz 2 years ago
parent
commit
475fdef7e2

+ 3 - 1
src/main/java/com/fdkankan/sale/service/impl/RepairPersonnelService.java

@@ -148,7 +148,7 @@ public class RepairPersonnelService {
         if(repair == null){
         if(repair == null){
             throw new BusinessException(ResultCode.REPAIR_NOT_EXITS);
             throw new BusinessException(ResultCode.REPAIR_NOT_EXITS);
         }
         }
-        if(repair.getStatus() !=7 ){ //待检测
+        if(repair.getStatus() !=7 ){ //维修中
             throw new BusinessException(ResultCode.REPAIR_STATUS_NOT_EXITS);
             throw new BusinessException(ResultCode.REPAIR_STATUS_NOT_EXITS);
         }
         }
         RepairRegister repairRegister  = repairRegisterService.getByRepairId(repair.getRepairId());
         RepairRegister repairRegister  = repairRegisterService.getByRepairId(repair.getRepairId());
@@ -181,6 +181,8 @@ public class RepairPersonnelService {
             priceListService.save(priceList);
             priceListService.save(priceList);
 
 
         }
         }
+        repairLogService.saveBySysUser(userId,repair.getRepairId(),2,"维修中添加备件");
+
     }
     }
 
 
     public void repairOver(CheckRegisterParam param, Long userId) {
     public void repairOver(CheckRegisterParam param, Long userId) {