Forráskód Böngészése

相机类型 修改

lyhzzz 2 éve
szülő
commit
5c0b405faa

+ 6 - 6
src/main/java/com/fdkankan/manage/service/impl/CameraVersionServiceImpl.java

@@ -85,12 +85,12 @@ public class CameraVersionServiceImpl extends ServiceImpl<ICameraVersionMapper,
         file.transferTo(file1);
 
         // 添加对象信息
-        switch (type){
-            case 1: type = 1;break;
-            case 2: type = 9;break;
-            case 3: type = 10;break;
-            default: throw new BusinessException(ResultCode.CAMERA_TYPE_ERROR);
-        }
+//        switch (type){
+//            case 1: type = 1;break;
+//            case 2: type = 9;break;
+//            case 3: type = 10;break;
+//            default: throw new BusinessException(ResultCode.CAMERA_TYPE_ERROR);
+//        }
         List<CameraVersion> cameraVersions = this.getByVersion(version,type);
         if(cameraVersions != null && cameraVersions.size() >0){
             throw new BusinessException(ResultCode.VISION_EXIST.code(),ResultCode.VISION_EXIST.message());