|
@@ -11,7 +11,6 @@ import com.example.demo.util.*;
|
|
|
import com.example.demo.vo.request.RequestRenovationParts;
|
|
|
import com.example.demo.vo.request.RequestRenovationPartsDetailManager;
|
|
|
import com.example.demo.vo.response.ResponseRenovationPartsAttaching;
|
|
|
-import com.example.demo.vo.response.ResponseRenovationPartsDetail;
|
|
|
import com.example.demo.vo.response.ResponseRenovationPartsDetailManager;
|
|
|
import com.example.demo.vo.response.ResponseRenovationPartsSize;
|
|
|
import com.github.pagehelper.Page;
|
|
@@ -22,23 +21,19 @@ import io.swagger.annotations.ApiImplicitParam;
|
|
|
import io.swagger.annotations.ApiImplicitParams;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
+import org.apache.commons.lang.StringUtils;
|
|
|
import org.springframework.amqp.rabbit.core.RabbitTemplate;
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
-import org.springframework.context.annotation.Bean;
|
|
|
-import org.springframework.util.StringUtils;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
-import tk.mybatis.mapper.entity.Condition;
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
-import javax.servlet.http.HttpServletResponse;
|
|
|
import java.io.File;
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.Date;
|
|
|
import java.util.List;
|
|
|
-import java.util.UUID;
|
|
|
|
|
|
/**
|
|
|
* Created by Hb_zzZ on 2020/12/1.
|
|
@@ -542,6 +537,10 @@ public class ManagerController {
|
|
|
return Result.failure(CodeConstant.FAILURE_CODE_3001, CodeConstant.FAILURE_MSG_3001);
|
|
|
}
|
|
|
|
|
|
+ if (StringUtils.isBlank(param.getName())) {
|
|
|
+ return Result.failure(CodeConstant.FAILURE_CODE_3001, "模型名称为空,不能保存");
|
|
|
+ }
|
|
|
+
|
|
|
ModelUploadEntity modelUploadEntity = modelUploadService.findById(param.getModelUploadId());
|
|
|
if(modelUploadEntity == null){
|
|
|
return Result.failure(CodeConstant.FAILURE_CODE_4009, CodeConstant.FAILURE_MSG_4009);
|