Browse Source

【CHG】SQL少写别名

xczzmn 4 years ago
parent
commit
7b028e130e

+ 2 - 2
railway-business/src/main/resources/mapper/baseinfo/BaseDeptStationMapper.xml

@@ -152,9 +152,9 @@
     FROM base_dept_station t
     LEFT JOIN sys_dept d on t.dept_id = d.dept_id
     <where>
-      del_flag='0'
+      t.del_flag='0'
       <if test="stationId!=null and stationId!=''">
-        and station_id = #{stationId}
+        and t.station_id = #{stationId}
       </if>
     </where>
   </select>