|
|
@@ -5,6 +5,7 @@
|
|
|
|
|
|
<resultMap id="BaseResultMap" type="com.railway.business.catenary.domain.BusJcbJcxc">
|
|
|
<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"/>
|
|
|
@@ -59,6 +60,7 @@
|
|
|
|
|
|
<sql id="Base_Column_List">
|
|
|
t.id,
|
|
|
+ t.xc_id,
|
|
|
v.dept_id,
|
|
|
v.dept_name,
|
|
|
v.station_name,
|
|
|
@@ -114,6 +116,9 @@
|
|
|
<insert id="insert" parameterType="com.railway.business.catenary.domain.BusJcbJcxc">
|
|
|
INSERT INTO bus_jcb_jcxc
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test='null != xcId'>
|
|
|
+ xc_id,
|
|
|
+ </if>
|
|
|
<if test='null != xch'>
|
|
|
xch,
|
|
|
</if>
|
|
|
@@ -245,6 +250,9 @@
|
|
|
</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test='null != xcId'>
|
|
|
+ #{xcId},
|
|
|
+ </if>
|
|
|
<if test='null != xch'>
|
|
|
#{xch},
|
|
|
</if>
|
|
|
@@ -386,8 +394,7 @@
|
|
|
<update id="update" parameterType="com.railway.business.catenary.domain.BusJcbJcxc">
|
|
|
UPDATE bus_jcb_jcxc
|
|
|
<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>
|
|
|
<if test='null != checkDate'>check_date = #{checkDate},</if>
|
|
|
@@ -438,7 +445,7 @@
|
|
|
SELECT
|
|
|
<include refid="Base_Column_List"/>
|
|
|
FROM bus_jcb_jcxc t
|
|
|
- LEFT JOIN base_jcxc t1 on t.xch = t1.id
|
|
|
+ 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
|
|
|
WHERE t.del_flag='0' and t.id = #{id}
|
|
|
|
|
|
@@ -462,7 +469,7 @@
|
|
|
SELECT
|
|
|
<include refid="Base_Column_List"/>
|
|
|
FROM bus_jcb_jcxc t
|
|
|
- LEFT JOIN base_jcxc t1 on t.xch = t1.id
|
|
|
+ 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
|
|
|
<where>
|
|
|
t.del_flag='0'
|