|
|
@@ -5,13 +5,14 @@
|
|
|
|
|
|
<resultMap id="BaseResultMap" type="com.railway.business.catenary.domain.BusJcbWjcxc">
|
|
|
<result column="id" property="id"/>
|
|
|
+ <result column="xc_id" property="xcId"/>
|
|
|
<result column="dept_id" property="deptId"/>
|
|
|
<result column="dept_name" property="deptName"/>
|
|
|
<result column="station_id" property="stationId"/>
|
|
|
<result column="station_name" property="stationName"/>
|
|
|
<result column="dept_station_id" property="deptStationId"/>
|
|
|
<result column="pillar_code" property="pillarCode"/>
|
|
|
- <result column="xianchahao" property="xianchahao"/>
|
|
|
+ <result column="xch" property="xch"/>
|
|
|
<result column="temperature" property="temperature"/>
|
|
|
<result column="check_date" property="checkDate"/>
|
|
|
<result column="lbjzt" property="lbjzt"/>
|
|
|
@@ -52,14 +53,15 @@
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="Base_Column_List">
|
|
|
- id,
|
|
|
+ t.id,
|
|
|
+ t.xc_id,
|
|
|
v.dept_id,
|
|
|
v.dept_name,
|
|
|
- v.station_name as station_name,
|
|
|
+ v.station_name,
|
|
|
v.station_id,
|
|
|
t.dept_station_id,
|
|
|
t.pillar_code,
|
|
|
- t.xianchahao,
|
|
|
+ t.xch,
|
|
|
t.temperature,
|
|
|
t.check_date,
|
|
|
t.lbjzt,
|
|
|
@@ -108,8 +110,11 @@
|
|
|
<if test='null != pillarCode'>
|
|
|
pillar_code,
|
|
|
</if>
|
|
|
- <if test='null != xianchahao'>
|
|
|
- xianchahao,
|
|
|
+ <if test='null != xcId'>
|
|
|
+ xc_id,
|
|
|
+ </if>
|
|
|
+ <if test='null != xch'>
|
|
|
+ xch,
|
|
|
</if>
|
|
|
<if test='null != temperature'>
|
|
|
temperature,
|
|
|
@@ -227,8 +232,11 @@
|
|
|
<if test='null != pillarCode'>
|
|
|
#{pillarCode},
|
|
|
</if>
|
|
|
- <if test='null != xianchahao'>
|
|
|
- #{xianchahao},
|
|
|
+ <if test='null != xcId'>
|
|
|
+ #{xcId},
|
|
|
+ </if>
|
|
|
+ <if test='null != xch'>
|
|
|
+ #{xch},
|
|
|
</if>
|
|
|
<if test='null != temperature'>
|
|
|
#{temperature},
|
|
|
@@ -352,7 +360,8 @@
|
|
|
<set>
|
|
|
<if test='null != deptStationId'>dept_station_id = #{deptStationId},</if>
|
|
|
<if test='null != pillarCode'>pillar_code = #{pillarCode},</if>
|
|
|
- <if test='null != xianchahao'>xianchahao = #{xianchahao},</if>
|
|
|
+ <if test='null != xch'>xc_id = #{xcId},</if>
|
|
|
+ <if test='null != xch'>xch = #{xch},</if>
|
|
|
<if test='null != temperature'>temperature = #{temperature},</if>
|
|
|
<if test='null != checkDate'>check_date = #{checkDate},</if>
|
|
|
<if test='null != lbjzt'>lbjzt = #{lbjzt},</if>
|
|
|
@@ -403,8 +412,8 @@
|
|
|
|
|
|
<select id="getLastRecord" resultMap="BaseResultMap">
|
|
|
SELECT
|
|
|
- a.ZXLCZ, a.ZXDG, a.CXLCZ, a.CXDG, a.ZXWXJQ, a.CXWXJQ, a.AZZXLCZ, a.AZZXDG, a.AZCXLCZ, a.AZCXDG,
|
|
|
- a.BZZXLCZ, a.BZZXDG, a.BZCXLCZ, a.BZCXDG,a.CZZXLCZ, a.CZZXDG, a.CZCXLCZ, a.CZCXDG
|
|
|
+ a.zxlcz, a.zxdg, a.cxlcz, a.cxdg, a.zxwxjq, a.cxwxjq, a.azzxlcz, a.azzxdg, a.azcxlcz, a.azcxdg,
|
|
|
+ a.bzzxlcz, a.bzzxdg, a.bzcxlcz, a.bzcxdg,a.czzxlcz, a.czzxdg, a.czcxlcz, a.czcxdg
|
|
|
FROM bus_jcb_wjcxc a,
|
|
|
(
|
|
|
select max(update_time) as lastTime
|
|
|
@@ -429,8 +438,8 @@
|
|
|
<if test="pillarCode!=null and pillarCode!=''">
|
|
|
and t.pillar_code=#{pillarCode}
|
|
|
</if>
|
|
|
- <if test="xianchahao!=null and xianchahao!=''">
|
|
|
- and t.xianchahao=#{xianchahao}
|
|
|
+ <if test="xch!=null and xch!=''">
|
|
|
+ and t.xch=#{xch}
|
|
|
</if>
|
|
|
<if test="temperature!=null and temperature!=''">
|
|
|
and t.temperature=#{temperature}
|