浏览代码

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

lyhzzz 2 年之前
父节点
当前提交
475fdef7e2
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/main/java/com/fdkankan/sale/service/impl/RepairPersonnelService.java

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

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