Эх сурвалжийг харах

fix 修改类型返回字段

chenchen 5 сар өмнө
parent
commit
9a7d487759

+ 2 - 2
application-webadmin/src/main/java/com/tourism/webadmin/back/controller/RestaurantTypeController.java

@@ -157,9 +157,9 @@ public class RestaurantTypeController {
             PageMethod.startPage(pageParam.getPageNum(), pageParam.getPageSize(), pageParam.getCount());
         }
         RestaurantType restaurantTypeFilter = MyModelUtil.copyTo(restaurantTypeDtoFilter, RestaurantType.class);
-        String orderBy = MyOrderParam.buildOrderBy(orderParam, RestaurantType.class);
+//        String orderBy = MyOrderParam.buildOrderBy(orderParam, RestaurantType.class);
         List<RestaurantType> restaurantTypeList =
-                restaurantTypeService.getRestaurantTypeListWithRelation(restaurantTypeFilter, orderBy);
+                restaurantTypeService.getRestaurantTypeListWithRelation(restaurantTypeFilter, "tour_restaurant_type.show_order desc");
         return ResponseResult.success(MyPageUtil.makeResponseData(restaurantTypeList, RestaurantTypeVo.class));
     }
 

+ 1 - 1
application-webadmin/src/main/java/com/tourism/webadmin/back/dto/RestaurantTypeDto.java

@@ -24,7 +24,7 @@ public class RestaurantTypeDto {
      */
     @Schema(description = "主键id。", requiredMode = Schema.RequiredMode.REQUIRED)
     @NotNull(message = "数据验证失败,主键id不能为空!", groups = {UpdateGroup.class})
-    private Long id;
+    private String id;
 
     /**
      * 种类名称。