@@ -95,4 +95,16 @@ public class ResourceShipRespVO {
@Schema(description = "游轮介绍")
private String introduction;
+ /**
+ * 载客数
+ */
+ @Schema(description = "载客数")
+ private Integer capacity;
+
+ * 游轮速度
+ @Schema(description = "游轮速度")
+ private String speed;
}
@@ -64,6 +64,18 @@ public class ResourceShipSaveReqVO {
@@ -27,4 +27,7 @@ public class AppResourceRoutePageReqVO extends PageParam {
@Schema(description = "航线ID", example = "1161")
private Long routeId;
+ @Schema(description = "航线方向", example = "1")
+ private Integer direction;
@@ -93,4 +93,14 @@ public class ResourceShipDO extends TenantBaseDO {
*/
@@ -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>