Browse Source

添加controller的注释

wang 1 month ago
parent
commit
03f6c51069

+ 2 - 2
yami-shop-api/src/main/java/com/yami/shop/api/config/SwaggerConfiguration.java

@@ -63,8 +63,8 @@ public class SwaggerConfiguration {
 	 @Bean
 	 public ApiInfo apiInfo() {
 	     return new ApiInfoBuilder()
-	     .title("海马购用户端接口文档")
-	     .description("海马购用户端接口文档")
+	     .title("市民请集合用户端接口文档")
+	     .description("市民请集合用户端接口文档")
 	     .termsOfServiceUrl("")
 	     .contact(new Contact("","", ""))
 	     .version("1.0")

+ 3 - 3
yami-shop-api/src/main/java/com/yami/shop/api/controller/OrderRefundController.java

@@ -667,9 +667,9 @@ public class OrderRefundController {
         }
         orderDto.setOrderDetails(orderDetails);
         orderDto.setWeight(weight);
-        ResponseEntity responseEntity = qnhService.addOrder(orderDto);
-        if(responseEntity.getStatusCode().name().equals("OK")){
-            order.setQnhOrderId(responseEntity.getBody().toString());
+        String added = qnhService.addOrder(orderDto);
+        if(!StringUtils.isBlank(added)){
+            order.setQnhOrderId(added);
             order.setQnhOrderStatus("1");
             orderService.updateById(order);
             return true;

+ 1 - 1
yami-shop-security/yami-shop-security-comment/src/main/resources/mapper/AppConnectMapper.xml

@@ -15,7 +15,7 @@
   </resultMap>
 
   <select id="getByBizUserId" resultType="com.yami.shop.security.comment.model.AppConnect">
-  	select * from tz_app_connect where biz_user_id = #{bizUserId} and app_id = #{appId}
+  	select * from tz_app_connect where biz_user_id = #{bizUserId} and app_id = #{appId} limit 1
   </select>
 
   <select id="getByUserId" resultType="com.yami.shop.security.comment.model.AppConnect">