소스 검색

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

xczzmn 4 년 전
부모
커밋
8952d8f40b
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      railway-business/src/main/resources/mapper/baseinfo/BaseLineMapper.xml

+ 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>