|
@@ -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());
|