|
|
@@ -18,36 +18,6 @@
|
|
|
<result column="create_time" property="createTime"/>
|
|
|
<result column="update_by" property="updateBy"/>
|
|
|
<result column="update_time" property="updateTime"/>
|
|
|
- <collection property="deptStations" ofType="com.railway.business.baseinfo.domain.BaseDeptStation" column="station_id">
|
|
|
- <result property="id" column="dept_station_id"/>
|
|
|
- <result property="stationId" column="station_id"/>
|
|
|
- <result property="deptName" column="dept_name"/>
|
|
|
- <result property="deptId" column="dept_id"/>
|
|
|
- <result property="qjlc" column="qjlc"/>
|
|
|
- <result property="upEndMarker" column="up_end_marker"/>
|
|
|
- <result property="upStartMarker" column="up_start_marker"/>
|
|
|
- <result property="downEndMarker" column="down_end_marker"/>
|
|
|
- <result property="downStartMarker" column="down_start_marker"/>
|
|
|
- <result property="dhgds" column="dhgds"/>
|
|
|
- <result property="delFlag" column="del_flag"/>
|
|
|
- </collection>
|
|
|
- </resultMap>
|
|
|
-
|
|
|
- <resultMap id="BaseStationResultMap" type="com.railway.business.baseinfo.domain.BaseStation">
|
|
|
- <result column="station_id" property="stationId"/>
|
|
|
- <result column="line_id" property="lineId"/>
|
|
|
- <result column="line_name" property="lineName"/>
|
|
|
- <result column="station_name" property="stationName"/>
|
|
|
- <result column="station_type" property="stationType"/>
|
|
|
- <result column="station_type_text" property="stationTypeText"/>
|
|
|
- <result column="order_num" property="orderNum"/>
|
|
|
- <result column="start_marker" property="startMarker"/>
|
|
|
- <result column="end_marker" property="endMarker"/>
|
|
|
- <result column="del_flag" property="delFlag"/>
|
|
|
- <result column="create_by" property="createBy"/>
|
|
|
- <result column="create_time" property="createTime"/>
|
|
|
- <result column="update_by" property="updateBy"/>
|
|
|
- <result column="update_time" property="updateTime"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="Base_Column_List">
|
|
|
@@ -62,16 +32,7 @@
|
|
|
t.create_by,
|
|
|
t.create_time,
|
|
|
t.update_by,
|
|
|
- t.update_time,
|
|
|
- v.dept_name,
|
|
|
- v.dept_id,
|
|
|
- v.dept_station_id,
|
|
|
- v.qjlc,
|
|
|
- v.up_end_marker,
|
|
|
- v.up_start_marker,
|
|
|
- v.down_end_marker,
|
|
|
- v.down_start_marker,
|
|
|
- v.dhgds
|
|
|
+ t.update_time
|
|
|
</sql>
|
|
|
|
|
|
<insert id="insert" parameterType="com.railway.business.baseinfo.domain.BaseStation">
|
|
|
@@ -213,26 +174,10 @@
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
|
- <sql id="Base_Station_Column_List">
|
|
|
- t.station_id,
|
|
|
- t.line_id,
|
|
|
- t.station_name,
|
|
|
- t.station_type,
|
|
|
- t.order_num,
|
|
|
- t.start_marker,
|
|
|
- t.end_marker,
|
|
|
- t.del_flag,
|
|
|
- t.create_by,
|
|
|
- t.create_time,
|
|
|
- t.update_by,
|
|
|
- t.update_time
|
|
|
- </sql>
|
|
|
-
|
|
|
- <select id="getStationList" resultMap="BaseStationResultMap">
|
|
|
+ <select id="getStationList" resultMap="BaseResultMap">
|
|
|
SELECT DISTINCT
|
|
|
- <include refid="Base_Station_Column_List"/>, v.line_name, dict.dict_label as station_type_text
|
|
|
+ <include refid="Base_Column_List"/>, v.line_name, dict.dict_label as station_type_text
|
|
|
FROM base_station t
|
|
|
- left join base_line l on t.line_id = l.line_id
|
|
|
left join sys_dict_data dict on t.station_type = dict.dict_value and dict.dict_type = 'station_type'
|
|
|
left join v_station v on t.station_id = v.station_id
|
|
|
<where>
|