Browse Source

Merge remote-tracking branch 'origin/master'

fenghao 4 years ago
parent
commit
d282c68b81

+ 3 - 0
railway-business/src/main/java/com/railway/business/baseinfo/domain/BaseStation.java

@@ -18,6 +18,9 @@ public class BaseStation extends BaseEntity {
   @ApiModelProperty(value = "主键", hidden = true)
   @ApiModelProperty(value = "主键", hidden = true)
   private Long stationId;
   private Long stationId;
 
 
+  @ApiModelProperty(value = "线路id")
+  private Long lineId;
+
   @ApiModelProperty(value = "区间站场名称")
   @ApiModelProperty(value = "区间站场名称")
   @Length(min = 1, max = 64, message = "【区间站场名称】长度必须介于 {min} 和 {max} 之间")
   @Length(min = 1, max = 64, message = "【区间站场名称】长度必须介于 {min} 和 {max} 之间")
   private String stationName;
   private String stationName;

+ 9 - 0
railway-business/src/main/resources/mapper/baseinfo/BaseStationMapper.xml

@@ -5,6 +5,7 @@
 
 
   <resultMap id="BaseResultMap" type="com.railway.business.baseinfo.domain.BaseStation">
   <resultMap id="BaseResultMap" type="com.railway.business.baseinfo.domain.BaseStation">
     <result column="station_id" property="stationId"/>
     <result column="station_id" property="stationId"/>
+    <result column="line_id" property="lineId"/>
     <result column="station_name" property="stationName"/>
     <result column="station_name" property="stationName"/>
     <result column="station_type" property="stationType"/>
     <result column="station_type" property="stationType"/>
     <result column="order_num" property="orderNum"/>
     <result column="order_num" property="orderNum"/>
@@ -17,6 +18,7 @@
 
 
   <sql id="Base_Column_List">
   <sql id="Base_Column_List">
     t.station_id,
     t.station_id,
+    t.line_id,
     t.station_name,
     t.station_name,
     t.station_type,
     t.station_type,
     t.order_num,
     t.order_num,
@@ -33,6 +35,9 @@
       <if test='null != stationName'>
       <if test='null != stationName'>
         station_name,
         station_name,
       </if>
       </if>
+      <if test='null != lineId'>
+        line_id,
+      </if>
       <if test='null != stationType'>
       <if test='null != stationType'>
         station_type,
         station_type,
       </if>
       </if>
@@ -59,6 +64,9 @@
       <if test='null != stationName'>
       <if test='null != stationName'>
         #{stationName},
         #{stationName},
       </if>
       </if>
+      <if test='null != lineId'>
+        #{lineId},
+      </if>
       <if test='null != stationType'>
       <if test='null != stationType'>
         #{stationType},
         #{stationType},
       </if>
       </if>
@@ -93,6 +101,7 @@
     UPDATE base_station
     UPDATE base_station
     <set>
     <set>
       <if test='null != stationName'>station_name = #{stationName},</if>
       <if test='null != stationName'>station_name = #{stationName},</if>
+      <if test='null != lineId'>line_id = #{lineId},</if>
       <if test='null != stationType'>station_type = #{stationType},</if>
       <if test='null != stationType'>station_type = #{stationType},</if>
       <if test='null != orderNum'>order_num = #{orderNum},</if>
       <if test='null != orderNum'>order_num = #{orderNum},</if>
       <if test='null != delFlag'>del_flag = #{delFlag},</if>
       <if test='null != delFlag'>del_flag = #{delFlag},</if>