Forráskód Böngészése

【CHG】SQL错误

ZhaoMn 4 éve
szülő
commit
d2190384e3

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

@@ -126,9 +126,9 @@
   <select id="getInfo" resultType="com.railway.business.baseinfo.domain.BaseDeptStation">
     SELECT
     <include refid="Base_Column_List"/>
-    FROM base_dept_station
+    FROM base_dept_station t
     <where>
-      del_flag='0'
+      t.del_flag='0'
       <if test="deptId!=null and deptId!=''">
         and t.dept_id=#{deptId}
       </if>
@@ -136,7 +136,7 @@
         and t.line_id=#{lineId}
       </if>
       <if test="stationId!=null and stationId!=''">
-        and station_id = #{stationId}
+        and t.station_id = #{stationId}
       </if>
     </where>
   </select>