|
@@ -80,35 +80,35 @@
|
|
|
<!--获取油站信息-->
|
|
|
<select id="selectStationInfo" parameterType="com.platform.yijia.pojo.StationInfo" resultMap="BaseResultMap">
|
|
|
SELECT
|
|
|
- dept_id,
|
|
|
- parent_id,
|
|
|
- dept_name,
|
|
|
- dept_address,
|
|
|
- oil_gun_num,
|
|
|
- leader,
|
|
|
- station_longitude,
|
|
|
- station_latitude,
|
|
|
- station_pic,
|
|
|
- mno,
|
|
|
- notice,
|
|
|
- image1,
|
|
|
- image2,
|
|
|
- image3,
|
|
|
- image4,
|
|
|
- image5,
|
|
|
- ws_print_flag,
|
|
|
- print_setting,
|
|
|
- discount_setting,
|
|
|
- card_enabled_flag,
|
|
|
- integral_flag,
|
|
|
- integral_print_flag,
|
|
|
- integral_rule_flag,
|
|
|
- card_rule_flag
|
|
|
- FROM
|
|
|
- sys_dept
|
|
|
+ T1.dept_id,
|
|
|
+ T1.parent_id,
|
|
|
+ T1.dept_name,
|
|
|
+ T1.dept_address,
|
|
|
+ T1.oil_gun_num,
|
|
|
+ T1.leader,
|
|
|
+ T1.station_longitude,
|
|
|
+ T1.station_latitude,
|
|
|
+ T1.station_pic,
|
|
|
+ T1.mno,
|
|
|
+ T1.notice,
|
|
|
+ T1.image1,
|
|
|
+ T1.image2,
|
|
|
+ T1.image3,
|
|
|
+ T1.image4,
|
|
|
+ T1.image5,
|
|
|
+ T1.ws_print_flag,
|
|
|
+ T1.print_setting,
|
|
|
+ T1.discount_setting,
|
|
|
+ T1.card_enabled_flag,
|
|
|
+ T1.integral_flag,
|
|
|
+ T1.integral_print_flag,
|
|
|
+ T1.card_rule_flag,
|
|
|
+ T2.integral_rule_flag
|
|
|
+ FROM sys_dept AS T1
|
|
|
+ LEFT JOIN sys_dept AS T2 ON T1.parent_id = T2.dept_id
|
|
|
<where>
|
|
|
<if test="stationId !='' and stationId != null" >
|
|
|
- dept_id = #{stationId}
|
|
|
+ T1.dept_id = #{stationId}
|
|
|
</if>
|
|
|
</where>
|
|
|
|