|
|
@@ -10,6 +10,7 @@
|
|
|
<result column="line_id" property="lineId"/>
|
|
|
<result column="line_name" property="lineName"/>
|
|
|
<result column="xingbie" property="xingbie"/>
|
|
|
+ <result column="xingbie_text" property="xingbieText"/>
|
|
|
<result column="station_name" property="stationName"/>
|
|
|
<result column="station_type" property="stationType"/>
|
|
|
<result column="qjlc" property="qjlc"/>
|
|
|
@@ -25,24 +26,24 @@
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="Base_Column_List">
|
|
|
- station_id,
|
|
|
- dept_id,
|
|
|
- dept_name,
|
|
|
- line_id,
|
|
|
- line_name,
|
|
|
- xingbie,
|
|
|
- station_name,
|
|
|
- station_type,
|
|
|
- qjlc,
|
|
|
- start_marker,
|
|
|
- end_marker,
|
|
|
- dhgds,
|
|
|
- order_num,
|
|
|
- del_flag,
|
|
|
- create_by,
|
|
|
- create_time,
|
|
|
- update_by,
|
|
|
- update_time
|
|
|
+ t.station_id,
|
|
|
+ t.dept_id,
|
|
|
+ t.dept_name,
|
|
|
+ t.line_id,
|
|
|
+ t.line_name,
|
|
|
+ t.xingbie,
|
|
|
+ t.station_name,
|
|
|
+ t.station_type,
|
|
|
+ t.qjlc,
|
|
|
+ t.start_marker,
|
|
|
+ t.end_marker,
|
|
|
+ t.dhgds,
|
|
|
+ t.order_num,
|
|
|
+ t.del_flag,
|
|
|
+ t.create_by,
|
|
|
+ t.create_time,
|
|
|
+ t.update_by,
|
|
|
+ t.update_time
|
|
|
</sql>
|
|
|
|
|
|
<insert id="insert" parameterType="com.railway.business.baseinfo.domain.BusStation">
|
|
|
@@ -177,68 +178,70 @@
|
|
|
|
|
|
<select id="getInfo" resultMap="BaseResultMap">
|
|
|
SELECT
|
|
|
- <include refid="Base_Column_List"/>
|
|
|
- FROM base_station
|
|
|
+ <include refid="Base_Column_List"/>, d.dict_label as xingbie_text
|
|
|
+ FROM base_station t
|
|
|
+ LEFT JOIN sys_dict_data d ON (t.xingbie = d.dict_value AND d.dict_type = 'xingbie')
|
|
|
WHERE del_flag='0' and station_id = #{stationId}
|
|
|
|
|
|
</select>
|
|
|
|
|
|
<select id="getList" resultMap="BaseResultMap">
|
|
|
SELECT
|
|
|
- <include refid="Base_Column_List"/>
|
|
|
- FROM base_station
|
|
|
+ <include refid="Base_Column_List"/>, d.dict_label as xingbie_text
|
|
|
+ FROM base_station t
|
|
|
+ LEFT JOIN sys_dict_data d ON (t.xingbie = d.dict_value AND d.dict_type = 'xingbie')
|
|
|
<where>
|
|
|
- del_flag='0'
|
|
|
+ t.del_flag='0'
|
|
|
<if test="deptId!=null and deptId!=''">
|
|
|
- and dept_id=#{deptId}
|
|
|
+ and t.dept_id=#{deptId}
|
|
|
</if>
|
|
|
<if test="deptName!=null and deptName!=''">
|
|
|
- and dept_name=#{deptName}
|
|
|
+ and t.dept_name=#{deptName}
|
|
|
</if>
|
|
|
<if test="lineId!=null and lineId!=''">
|
|
|
- and line_id=#{lineId}
|
|
|
+ and t.line_id=#{lineId}
|
|
|
</if>
|
|
|
<if test="lineName!=null and lineName!=''">
|
|
|
- and line_name=#{lineName}
|
|
|
+ and t.line_name=#{lineName}
|
|
|
</if>
|
|
|
<if test="xingbie!=null and xingbie!=''">
|
|
|
- and xingbie=#{xingbie}
|
|
|
+ and t.xingbie=#{xingbie}
|
|
|
</if>
|
|
|
<if test="stationName!=null and stationName!=''">
|
|
|
- and station_name=#{stationName}
|
|
|
+ and t.station_name=#{stationName}
|
|
|
</if>
|
|
|
<if test="stationType!=null and stationType!=''">
|
|
|
- and station_type=#{stationType}
|
|
|
+ and t.station_type=#{stationType}
|
|
|
</if>
|
|
|
<if test="qjlc!=null and qjlc!=''">
|
|
|
- and qjlc=#{qjlc}
|
|
|
+ and t.qjlc=#{qjlc}
|
|
|
</if>
|
|
|
<if test="startMarker!=null and startMarker!=''">
|
|
|
- and start_marker=#{startMarker}
|
|
|
+ and t.start_marker=#{startMarker}
|
|
|
</if>
|
|
|
<if test="endMarker!=null and endMarker!=''">
|
|
|
- and end_marker=#{endMarker}
|
|
|
+ and t.end_marker=#{endMarker}
|
|
|
</if>
|
|
|
<if test="dhgds!=null and dhgds!=''">
|
|
|
- and dhgds=#{dhgds}
|
|
|
+ and t.dhgds=#{dhgds}
|
|
|
</if>
|
|
|
<if test="orderNum!=null and orderNum!=''">
|
|
|
- and order_num=#{orderNum}
|
|
|
+ and t.order_num=#{orderNum}
|
|
|
</if>
|
|
|
<if test="delFlag!=null and delFlag!=''">
|
|
|
- and del_flag=#{delFlag}
|
|
|
+ and t.del_flag=#{delFlag}
|
|
|
</if>
|
|
|
<if test="createBy!=null and createBy!=''">
|
|
|
- and create_by=#{createBy}
|
|
|
+ and t.create_by=#{createBy}
|
|
|
</if>
|
|
|
<if test="createTime!=null and createTime!=''">
|
|
|
- and create_time=#{createTime}
|
|
|
+ and t.create_time=#{createTime}
|
|
|
</if>
|
|
|
<if test="updateBy!=null and updateBy!=''">
|
|
|
- and update_by=#{updateBy}
|
|
|
+ and t.update_by=#{updateBy}
|
|
|
</if>
|
|
|
<if test="updateTime!=null and updateTime!=''">
|
|
|
- and update_time=#{updateTime}
|
|
|
+ and t.update_time=#{updateTime}
|
|
|
</if>
|
|
|
</where>
|
|
|
</select>
|