Browse Source

feat: APP航线分页添加航向查询条件

luofeiyun 11 hours ago
parent
commit
4a49541b73

+ 12 - 0
ship-module-resource/ship-module-resource-biz/src/main/java/com/yc/ship/module/resource/controller/admin/ship/vo/ResourceShipRespVO.java

@@ -95,4 +95,16 @@ public class ResourceShipRespVO {
     @Schema(description = "游轮介绍")
     private String introduction;
 
+    /**
+     * 载客数
+     */
+    @Schema(description = "载客数")
+    private Integer capacity;
+
+    /**
+     * 游轮速度
+     */
+    @Schema(description = "游轮速度")
+    private String speed;
+
 }

+ 12 - 0
ship-module-resource/ship-module-resource-biz/src/main/java/com/yc/ship/module/resource/controller/admin/ship/vo/ResourceShipSaveReqVO.java

@@ -64,6 +64,18 @@ public class ResourceShipSaveReqVO {
     @Schema(description = "游轮介绍")
     private String introduction;
 
+    /**
+     * 载客数
+     */
+    @Schema(description = "载客数")
+    private Integer capacity;
+
+    /**
+     * 游轮速度
+     */
+    @Schema(description = "游轮速度")
+    private String speed;
+
 
 
 }

+ 3 - 0
ship-module-resource/ship-module-resource-biz/src/main/java/com/yc/ship/module/resource/controller/app/route/vo/AppResourceRoutePageReqVO.java

@@ -27,4 +27,7 @@ public class AppResourceRoutePageReqVO extends PageParam {
     @Schema(description = "航线ID", example = "1161")
     private Long routeId;
 
+    @Schema(description = "航线方向", example = "1")
+    private Integer direction;
+
 }

+ 10 - 0
ship-module-resource/ship-module-resource-biz/src/main/java/com/yc/ship/module/resource/dal/dataobject/ship/ResourceShipDO.java

@@ -93,4 +93,14 @@ public class ResourceShipDO extends TenantBaseDO {
      */
     private String introduction;
 
+    /**
+     * 载客数
+     */
+    private Integer capacity;
+
+    /**
+     * 游轮速度
+     */
+    private String speed;
+
 }

+ 4 - 0
ship-module-resource/ship-module-resource-biz/src/main/resources/mapper/resourceroute/ResourceRouteMapper.xml

@@ -12,6 +12,7 @@
     <select id="selectAppRoutePage" resultType="com.yc.ship.module.resource.controller.app.route.vo.AppResourceRouteRespVO">
         select * from (
         SELECT
+            rr.direction,
             rr.id route_id,
            rr.NAME route_name,
            rr.on_dock_id dock_id,
@@ -64,6 +65,9 @@
         <if test="reqVo.routeId != null">
                   and t3.routeId = #{reqVo.routeId}
         </if>
+      <if test="reqVo.direction != null">
+                  and t3.direction = #{reqVo.direction}
+        </if>
     </select>