|
|
@@ -59,8 +59,8 @@
|
|
|
v.dept_name,
|
|
|
v.station_name,
|
|
|
v.station_id,
|
|
|
- t1.dept_station_id,
|
|
|
- t1.pillar_area pillar_code,
|
|
|
+ t.dept_station_id,
|
|
|
+ t.pillar_code,
|
|
|
t.xch,
|
|
|
t.temperature,
|
|
|
t.check_date,
|
|
|
@@ -104,6 +104,12 @@
|
|
|
<insert id="insert" parameterType="com.railway.business.catenary.domain.BusJcbWjcxc">
|
|
|
INSERT INTO bus_jcb_wjcxc
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test='null != deptStationId'>
|
|
|
+ dept_station_id,
|
|
|
+ </if>
|
|
|
+ <if test='null != pillarCode'>
|
|
|
+ pillar_code,
|
|
|
+ </if>
|
|
|
<if test='null != xcId'>
|
|
|
xc_id,
|
|
|
</if>
|
|
|
@@ -220,6 +226,12 @@
|
|
|
</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test='null != deptStationId'>
|
|
|
+ #{deptStationId},
|
|
|
+ </if>
|
|
|
+ <if test='null != pillarCode'>
|
|
|
+ #{pillarCode},
|
|
|
+ </if>
|
|
|
<if test='null != xcId'>
|
|
|
#{xcId},
|
|
|
</if>
|
|
|
@@ -346,6 +358,8 @@
|
|
|
<update id="update" parameterType="com.railway.business.catenary.domain.BusJcbWjcxc">
|
|
|
UPDATE bus_jcb_wjcxc
|
|
|
<set>
|
|
|
+ <if test='null != deptStationId'>dept_station_id = #{deptStationId},</if>
|
|
|
+ <if test='null != pillarCode'>pillar_code = #{pillarCode},</if>
|
|
|
<if test='null != xch'>xc_id = #{xcId},</if>
|
|
|
<if test='null != xch'>xch = #{xch},</if>
|
|
|
<if test='null != temperature'>temperature = #{temperature},</if>
|
|
|
@@ -391,8 +405,7 @@
|
|
|
SELECT
|
|
|
<include refid="Base_Column_List"/>
|
|
|
FROM bus_jcb_wjcxc t
|
|
|
- LEFT JOIN base_jcxc t1 on t.xc_id = t1.id
|
|
|
- LEFT JOIN v_station v on t1.dept_station_id = v.dept_station_id
|
|
|
+ LEFT JOIN v_station v on t.dept_station_id = v.dept_station_id
|
|
|
WHERE t.del_flag='0' and t.id = #{id}
|
|
|
|
|
|
</select>
|
|
|
@@ -416,15 +429,14 @@
|
|
|
SELECT
|
|
|
<include refid="Base_Column_List"/>
|
|
|
FROM bus_jcb_wjcxc t
|
|
|
- LEFT JOIN base_jcxc t1 on t.xc_id = t1.id
|
|
|
- LEFT JOIN v_station v on t1.dept_station_id = v.dept_station_id
|
|
|
+ LEFT JOIN v_station v on t.dept_station_id = v.dept_station_id
|
|
|
<where>
|
|
|
t.del_flag='0'
|
|
|
<if test="stationId!=null and stationId!=''">
|
|
|
and v.station_id=#{stationId}
|
|
|
</if>
|
|
|
<if test="pillarCode!=null and pillarCode!=''">
|
|
|
- and t1.pillar_code=#{pillarCode}
|
|
|
+ and t.pillar_code=#{pillarCode}
|
|
|
</if>
|
|
|
<if test="xch!=null and xch!=''">
|
|
|
and t.xch=#{xch}
|