Browse Source

取消工单相机唯一

lyhzzz 1 year ago
parent
commit
872c109566

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

@@ -117,14 +117,14 @@ public class RepairSaleService {
         if(camera == null){
             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());
         Integer cameraType = null;
         switch (cameraDetail.getType()){