소스 검색

取消工单相机唯一

lyhzzz 1 년 전
부모
커밋
872c109566
1개의 변경된 파일8개의 추가작업 그리고 8개의 파일을 삭제
  1. 8 8
      src/main/java/com/fdkankan/sale/service/impl/RepairSaleService.java

+ 8 - 8
src/main/java/com/fdkankan/sale/service/impl/RepairSaleService.java

@@ -117,14 +117,14 @@ public class RepairSaleService {
         if(camera == null){
         if(camera == null){
             throw new BusinessException(ResultCode.CAMERA_SN_NOT_EXITS);
             throw new BusinessException(ResultCode.CAMERA_SN_NOT_EXITS);
         }
         }
-        List<Repair> repairList  = repairService.getBySnCode(camera.getSnCode());
-        if(repairList.size() >0){
-            for (Repair repair : repairList) {
-                if(!StatusUtil.overStatusList.contains(repair.getStatus())){
-                    throw new BusinessException(ResultCode.REPAIR_SN_EXITS);
-                }
-            }
-        }
+//        List<Repair> repairList  = repairService.getBySnCode(camera.getSnCode());
+//        if(repairList.size() >0){
+//            for (Repair repair : repairList) {
+//                if(!StatusUtil.overStatusList.contains(repair.getStatus())){
+//                    throw new BusinessException(ResultCode.REPAIR_SN_EXITS);
+//                }
+//            }
+//        }
         CameraDetail cameraDetail = cameraService.getCameraTypeByCameraId(camera.getId());
         CameraDetail cameraDetail = cameraService.getCameraTypeByCameraId(camera.getId());
         Integer cameraType = null;
         Integer cameraType = null;
         switch (cameraDetail.getType()){
         switch (cameraDetail.getType()){