Selaa lähdekoodia

修改httpOKUtil请求时长

zhujinghui 4 vuotta sitten
vanhempi
commit
a5a59adcde

+ 5 - 5
pom.xml

@@ -225,11 +225,11 @@
 		</dependency>
 
 		<!-- 钉钉告警 -->
-		<dependency>
-			<groupId>com.aliyun</groupId>
-			<artifactId>alibaba-dingtalk-service-sdk</artifactId>
-			<version>1.0.1</version>
-		</dependency>
+<!--		<dependency>-->
+<!--			<groupId>com.aliyun</groupId>-->
+<!--			<artifactId>alibaba-dingtalk-service-sdk</artifactId>-->
+<!--			<version>1.0.1</version>-->
+<!--		</dependency>-->
 
 	</dependencies>
 

+ 5 - 6
src/main/java/com/example/demo/controller/ManagerController.java

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

+ 1 - 1
src/main/java/com/example/demo/mq/TopicManReceiver.java

@@ -7,7 +7,7 @@ import org.springframework.stereotype.Component;
 /**
  * Created by Hb_zzZ on 2020/9/17.
  */
-@Component
+//@Component
 public class TopicManReceiver {
 
 //    @RabbitHandler