Explorar el Código

【CHG】调整避雷器检查表SQL错误

ZhaoMn hace 4 años
padre
commit
818624996e

+ 0 - 19
railway-business/src/main/resources/mapper/baseinfo/BusZzdzxxMapper.xml

@@ -179,15 +179,6 @@
       <if test='null != createTime'>
         create_time,
       </if>
-      <if test='null != updateBy'>
-        update_by,
-      </if>
-      <if test='null != updateTime'>
-        update_time,
-      </if>
-      <if test='null != stationId'>
-        station_id
-      </if>
     </trim>
     <trim prefix="values (" suffix=")" suffixOverrides=",">
       <if test='null != deptStationId'>
@@ -250,15 +241,6 @@
       <if test='null != createTime'>
         #{createTime},
       </if>
-      <if test='null != updateBy'>
-        #{updateBy},
-      </if>
-      <if test='null != updateTime'>
-        #{updateTime},
-      </if>
-      <if test='null != stationId'>
-        #{stationId}
-      </if>
     </trim>
   </insert>
 
@@ -292,7 +274,6 @@
       <if test='null != delFlag'>del_flag = #{delFlag},</if>
       <if test='null != updateBy'>update_by = #{updateBy},</if>
       <if test='null != updateTime'>update_time = #{updateTime}</if>
-      <if test='null != stationId'>station_id = #{stationId}</if>
     </set>
     WHERE id = #{id}
   </update>

+ 3 - 5
railway-business/src/main/resources/mapper/catenary/BusJcbBlqMapper.xml

@@ -50,7 +50,7 @@
     t.blq_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,
@@ -354,8 +354,7 @@
     SELECT
     <include refid="Base_Column_List"/>
     FROM bus_jcb_blq t
-    LEFT JOIN base_blq t1 on t.blq_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>
@@ -364,8 +363,7 @@
     SELECT
     <include refid="Base_Column_List"/>
     FROM bus_jcb_blq t
-    LEFT JOIN base_blq t1 on t.blq_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="blqId!=null and blqId!=''">