lyhzzz 2 years ago
parent
commit
a1431913bc

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

@@ -86,7 +86,7 @@ public class PartServiceImpl extends ServiceImpl<IPartMapper, Part> implements I
         if(part == null){
             throw new BusinessException(ResultCode.PART_NOT_EXITS);
         }
-        if(part.getPartStock() - count == 0){
+        if(part.getPartStock() - count <= 0){
             throw new BusinessException(ResultCode.PART_STOCK_ERROR.code(),part.getPartName()+"_"+ResultCode.PART_STOCK_ERROR.message());
         }
         LambdaUpdateWrapper<Part> wrapper = new LambdaUpdateWrapper<>();

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

@@ -121,7 +121,6 @@ public class RepairPersonnelService {
             repairFaultService.save(fault);
         }
 
-        repairLogService.saveBySysUser(userId,repair.getRepairId(),2,"维修登记");
 
     }