Przeglądaj źródła

【CHG】调整隔离开关检查表SQL错误

ZhaoMn 4 lat temu
rodzic
commit
db7b3405ad

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

@@ -676,22 +676,22 @@
     <where>
       t.del_flag = '0'
       <if test="deptId!=null and deptId!=''">
-        and t.dept_id=#{deptId}
+        and v.dept_id=#{deptId}
       </if>
       <if test="deptName!=null and deptName!=''">
-        and t.dept_name=#{deptName}
+        and v.dept_name=#{deptName}
       </if>
       <if test="lineId!=null and lineId!=''">
-        and t.line_id=#{lineId}
+        and v.line_id=#{lineId}
       </if>
       <if test="lineName!=null and lineName!=''">
-        and t.line_name=#{lineName}
+        and v.line_name=#{lineName}
       </if>
       <if test="stationId!=null and stationId!=''">
         and v.station_id=#{stationId}
       </if>
       <if test="stationName!=null and stationName!=''">
-        and t.station_name=#{stationName}
+        and v.station_name=#{stationName}
       </if>
       <if test="xingbie!=null and xingbie!=''">
         and t.xingbie=#{xingbie}