|
@@ -64,6 +64,9 @@ public class CameraVersionServiceImpl extends ServiceImpl<ICameraVersionMapper,
|
|
|
|
|
|
@Override
|
|
|
public void addAndUpload(MultipartFile file, String version, String description, String minVersion, Integer type) throws IOException {
|
|
|
+ if(StringUtils.isBlank(version)){
|
|
|
+ throw new BusinessException(ResultCode.MISSING_REQUIRED_PARAMETERS);
|
|
|
+ }
|
|
|
log.info("run upload");
|
|
|
if (!file.isEmpty()&& file.getSize() <= 0) {
|
|
|
throw new BusinessException(ResultCode.UPLOAD_FILE_ERROR);
|