Browse Source

【CHG】线路信息关联别名错误

xczzmn 4 years ago
parent
commit
8952d8f40b

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

@@ -164,7 +164,7 @@
     <where>
       t.del_flag='0'
       <if test="deptId!=null and deptId!=''">
-        and t.dept_id=#{deptId}
+        and t1.dept_id=#{deptId}
       </if>
       <if test="lineName!=null and lineName!=''">
         and t.line_name like concat('%', #{lineName}, '%')
@@ -180,7 +180,7 @@
     <where>
       t.del_flag='0'
       <if test="deptId!=null and deptId!=''">
-        and t.dept_id=#{deptId}
+        and t1.dept_id=#{deptId}
       </if>
     </where>
   </select>