|
@@ -43,6 +43,7 @@
|
|
|
<result column="update_time" property="updateTime"/>
|
|
<result column="update_time" property="updateTime"/>
|
|
|
<result column="submit_state" property="submitState"/>
|
|
<result column="submit_state" property="submitState"/>
|
|
|
<result column="del_flag" property="delFlag"/>
|
|
<result column="del_flag" property="delFlag"/>
|
|
|
|
|
+ <result column="sccj" property="sccj"/>
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
|
|
<sql id="Base_Column_List">
|
|
<sql id="Base_Column_List">
|
|
@@ -324,9 +325,7 @@
|
|
|
<if test='null != tjwzGblsljjg'>tjwz_gblsljjg = #{tjwzGblsljjg},</if>
|
|
<if test='null != tjwzGblsljjg'>tjwz_gblsljjg = #{tjwzGblsljjg},</if>
|
|
|
<if test='null != tjwzGblsljjgDesc'>tjwz_gblsljjg_desc = #{tjwzGblsljjgDesc},</if>
|
|
<if test='null != tjwzGblsljjgDesc'>tjwz_gblsljjg_desc = #{tjwzGblsljjgDesc},</if>
|
|
|
<if test='null != blqjyzBlqjzcjyzcszzt'>blqjyz_blqjzcjyzcszzt = #{blqjyzBlqjzcjyzcszzt},</if>
|
|
<if test='null != blqjyzBlqjzcjyzcszzt'>blqjyz_blqjzcjyzcszzt = #{blqjyzBlqjzcjyzcszzt},</if>
|
|
|
- <if test='null != blqjyzBlqjzcjyzcszztDesc'>blqjyz_blqjzcjyzcszzt_desc =
|
|
|
|
|
- #{blqjyzBlqjzcjyzcszztDesc},
|
|
|
|
|
- </if>
|
|
|
|
|
|
|
+ <if test='null != blqjyzBlqjzcjyzcszztDesc'>blqjyz_blqjzcjyzcszzt_desc = #{blqjyzBlqjzcjyzcszztDesc},</if>
|
|
|
<if test='null != blqjyzBmqjazlg'>blqjyz_bmqjazlg = #{blqjyzBmqjazlg},</if>
|
|
<if test='null != blqjyzBmqjazlg'>blqjyz_bmqjazlg = #{blqjyzBmqjazlg},</if>
|
|
|
<if test='null != blqjyzBmqjazlgDesc'>blqjyz_bmqjazlg_desc = #{blqjyzBmqjazlgDesc},</if>
|
|
<if test='null != blqjyzBmqjazlgDesc'>blqjyz_bmqjazlg_desc = #{blqjyzBmqjazlgDesc},</if>
|
|
|
<if test='null != blqyxBlqyxwssdg'>blqyx_blqyxwssdg = #{blqyxBlqyxwssdg},</if>
|
|
<if test='null != blqyxBlqyxwssdg'>blqyx_blqyxwssdg = #{blqyxBlqyxwssdg},</if>
|
|
@@ -376,7 +375,10 @@
|
|
|
and v.station_id=#{stationId}
|
|
and v.station_id=#{stationId}
|
|
|
</if>
|
|
</if>
|
|
|
<if test="stationIds!=null and stationIds.length > 0">
|
|
<if test="stationIds!=null and stationIds.length > 0">
|
|
|
- and v.station_id in (#{stationIds}
|
|
|
|
|
|
|
+ and v.station_id in
|
|
|
|
|
+ <foreach collection="stationIds" item="stationId" index="i" open="(" separator="," close=")">
|
|
|
|
|
+ #{stationId}
|
|
|
|
|
+ </foreach>
|
|
|
</if>
|
|
</if>
|
|
|
<if test="pillarCode!=null and pillarCode!=''">
|
|
<if test="pillarCode!=null and pillarCode!=''">
|
|
|
and t.pillar_code=#{pillarCode}
|
|
and t.pillar_code=#{pillarCode}
|
|
@@ -513,8 +515,9 @@
|
|
|
|
|
|
|
|
<select id="getJcebList" resultMap="BaseResultMap">
|
|
<select id="getJcebList" resultMap="BaseResultMap">
|
|
|
SELECT
|
|
SELECT
|
|
|
- <include refid="Base_Column_List"/>
|
|
|
|
|
|
|
+ <include refid="Base_Column_List"/>,base.sccj
|
|
|
FROM bus_jcb_blq t
|
|
FROM bus_jcb_blq t
|
|
|
|
|
+ LEFT JOIN base_blq base on t.pillar_code = base.pillar_code
|
|
|
LEFT JOIN v_station v on t.dept_station_id = v.dept_station_id
|
|
LEFT JOIN v_station v on t.dept_station_id = v.dept_station_id
|
|
|
<where>
|
|
<where>
|
|
|
t.del_flag='0'
|
|
t.del_flag='0'
|
|
@@ -528,7 +531,10 @@
|
|
|
and v.station_id=#{stationId}
|
|
and v.station_id=#{stationId}
|
|
|
</if>
|
|
</if>
|
|
|
<if test="stationIds!=null and stationIds.length > 0">
|
|
<if test="stationIds!=null and stationIds.length > 0">
|
|
|
- and v.station_id in (#{stationIds}
|
|
|
|
|
|
|
+ and v.station_id in
|
|
|
|
|
+ <foreach collection="stationIds" item="stationId" index="i" open="(" separator="," close=")">
|
|
|
|
|
+ #{stationId}
|
|
|
|
|
+ </foreach>
|
|
|
</if>
|
|
</if>
|
|
|
<if test="pillarCode!=null and pillarCode!=''">
|
|
<if test="pillarCode!=null and pillarCode!=''">
|
|
|
and t.pillar_code=#{pillarCode}
|
|
and t.pillar_code=#{pillarCode}
|
|
@@ -570,7 +576,10 @@
|
|
|
and v.station_id=#{stationId}
|
|
and v.station_id=#{stationId}
|
|
|
</if>
|
|
</if>
|
|
|
<if test="stationIds!=null and stationIds.length > 0">
|
|
<if test="stationIds!=null and stationIds.length > 0">
|
|
|
- and v.station_id in (#{stationIds}
|
|
|
|
|
|
|
+ and v.station_id in
|
|
|
|
|
+ <foreach collection="stationIds" item="stationId" index="i" open="(" separator="," close=")">
|
|
|
|
|
+ #{stationId}
|
|
|
|
|
+ </foreach>
|
|
|
</if>
|
|
</if>
|
|
|
<if test="pillarCode!=null and pillarCode!=''">
|
|
<if test="pillarCode!=null and pillarCode!=''">
|
|
|
and t.pillar_code=#{pillarCode}
|
|
and t.pillar_code=#{pillarCode}
|