فهرست منبع

【CHG】修改线岔反查SQL

ZhaoMn 4 سال پیش
والد
کامیت
718e0a0068

+ 1 - 2
railway-business/src/main/java/com/railway/business/catenary/domain/BusJcbJcxc.java

@@ -46,8 +46,7 @@ public class BusJcbJcxc extends BaseEntity{
     private String pillarCode;
 
     @ApiModelProperty(value = "线岔号")
-    @Length(min = 1, max = 30, message = "【线岔号】长度必须介于 {min} 和 {max} 之间")
-    private String jcxcId;
+    private String xch;
 
     @ApiModelProperty(value = "温度")
     @Length(min = 1, max = 20, message = "【温度】长度必须介于 {min} 和 {max} 之间")

+ 1 - 2
railway-business/src/main/java/com/railway/business/catenary/domain/BusJcbWjcxc.java

@@ -46,8 +46,7 @@ public class BusJcbWjcxc extends BaseEntity{
     private String pillarCode;
 
     @ApiModelProperty(value = "线岔号")
-    @Length(min = 1, max = 30, message = "【线岔号】长度必须介于 {min} 和 {max} 之间")
-    private String jcxcId;
+    private String xch;
 
     @ApiModelProperty(value = "温度")
     @Length(min = 1, max = 20, message = "【温度】长度必须介于 {min} 和 {max} 之间")

+ 11 - 11
railway-business/src/main/resources/mapper/catenary/BusJcbJcxcMapper.xml

@@ -11,7 +11,7 @@
     <result column="station_name" property="stationName"/>
     <result column="dept_station_id" property="deptStationId"/>
     <result column="pillar_code" property="pillarCode"/>
-    <result column="jcxc_id" property="jcxcId"/>
+    <result column="xch" property="xch"/>
     <result column="temperature" property="temperature"/>
     <result column="check_date" property="checkDate"/>
     <result column="gz1lcz" property="gz1lcz"/>
@@ -65,7 +65,7 @@
     v.station_id,
     t1.dept_station_id,
     t1.pillar_area pillar_code,
-    t.jcxc_id,
+    t.xch,
     t.temperature,
     t.check_date,
     t.gz1lcz,
@@ -120,8 +120,8 @@
       <if test='null != pillarCode'>
         pillar_code,
       </if>
-      <if test='null != jcxcId'>
-        jcxc_id,
+      <if test='null != xch'>
+        xch,
       </if>
       <if test='null != temperature'>
         temperature,
@@ -257,8 +257,8 @@
       <if test='null != pillarCode'>
         #{pillarCode},
       </if>
-      <if test='null != jcxcId'>
-        #{jcxcId},
+      <if test='null != xch'>
+        #{xch},
       </if>
       <if test='null != temperature'>
         #{temperature},
@@ -400,7 +400,7 @@
     <set>
       <if test='null != deptStationId'>dept_station_id = #{deptStationId},</if>
       <if test='null != pillarCode'>pillar_code = #{pillarCode},</if>
-      <if test='null != jcxcId'>jcxc_id = #{jcxcId},</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 != gz1lcz'>gz1lcz = #{gz1lcz},</if>
@@ -450,7 +450,7 @@
     SELECT
     <include refid="Base_Column_List"/>
     FROM bus_jcb_jcxc t
-    LEFT JOIN base_jcxc t1 on t.jcxc_id = t1.id
+    LEFT JOIN base_jcxc t1 on t.xch = 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}
 
@@ -474,7 +474,7 @@
     SELECT
     <include refid="Base_Column_List"/>
     FROM bus_jcb_jcxc t
-    LEFT JOIN base_jcxc t1 on t.jcxc_id = t1.id
+    LEFT JOIN base_jcxc t1 on t.xch = t1.id
     LEFT JOIN v_station v on t1.dept_station_id = v.dept_station_id
     <where>
       t.del_flag='0'
@@ -484,8 +484,8 @@
       <if test="pillarCode!=null and pillarCode!=''">
         and t1.pillar_code=#{pillarCode}
       </if>
-      <if test="jcxcId!=null and jcxcId!=''">
-        and t.jcxc_id=#{jcxcId}
+      <if test="xch!=null and xch!=''">
+        and t.xch=#{xch}
       </if>
       <if test="temperature!=null and temperature!=''">
         and t.temperature=#{temperature}

+ 11 - 11
railway-business/src/main/resources/mapper/catenary/BusJcbWjcxcMapper.xml

@@ -11,7 +11,7 @@
     <result column="station_name" property="stationName"/>
     <result column="dept_station_id" property="deptStationId"/>
     <result column="pillar_code" property="pillarCode"/>
-    <result column="jcxc_id" property="jcxcId"/>
+    <result column="xch" property="xch"/>
     <result column="temperature" property="temperature"/>
     <result column="check_date" property="checkDate"/>
     <result column="lbjzt" property="lbjzt"/>
@@ -59,7 +59,7 @@
     v.station_id,
     t1.dept_station_id,
     t1.pillar_area pillar_code,
-    t.jcxc_id,
+    t.xch,
     t.temperature,
     t.check_date,
     t.lbjzt,
@@ -108,8 +108,8 @@
       <if test='null != pillarCode'>
         pillar_code,
       </if>
-      <if test='null != jcxcId'>
-        jcxc_id,
+      <if test='null != xch'>
+        xch,
       </if>
       <if test='null != temperature'>
         temperature,
@@ -227,8 +227,8 @@
       <if test='null != pillarCode'>
         #{pillarCode},
       </if>
-      <if test='null != jcxcId'>
-        #{jcxcId},
+      <if test='null != xch'>
+        #{xch},
       </if>
       <if test='null != temperature'>
         #{temperature},
@@ -352,7 +352,7 @@
     <set>
       <if test='null != deptStationId'>dept_station_id = #{deptStationId},</if>
       <if test='null != pillarCode'>pillar_code = #{pillarCode},</if>
-      <if test='null != jcxcId'>jcxc_id = #{jcxcId},</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>
@@ -396,7 +396,7 @@
     SELECT
     <include refid="Base_Column_List"/>
     FROM bus_jcb_wjcxc t
-    LEFT JOIN base_jcxc t1 on t.jcxc_id = t1.id
+    LEFT JOIN base_jcxc t1 on t.xch = 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}
 
@@ -421,7 +421,7 @@
     SELECT
     <include refid="Base_Column_List"/>
     FROM bus_jcb_wjcxc t
-    LEFT JOIN base_jcxc t1 on t.jcxc_id = t1.id
+    LEFT JOIN base_jcxc t1 on t.xch = t1.id
     LEFT JOIN v_station v on t1.dept_station_id = v.dept_station_id
     <where>
       t.del_flag='0'
@@ -431,8 +431,8 @@
       <if test="pillarCode!=null and pillarCode!=''">
         and t1.pillar_code=#{pillarCode}
       </if>
-      <if test="jcxcId!=null and jcxcId!=''">
-        and t.jcxc_id=#{jcxcId}
+      <if test="xch!=null and xch!=''">
+        and t.xch=#{xch}
       </if>
       <if test="temperature!=null and temperature!=''">
         and t.temperature=#{temperature}