소스 검색

fix(eoeg): 修复锁变更查询排序字段歧义问题

- 修改createdate排序字段增加表别名前缀
- 避免多表关联时字段名冲突导致的SQL执行异常
jiangbiao 1 일 전
부모
커밋
93f4e7fc9d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      master/src/main/resources/mybatis/eoeg/TEoegLockChangeMapper.xml

+ 1 - 1
master/src/main/resources/mybatis/eoeg/TEoegLockChangeMapper.xml

@@ -116,7 +116,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         </where>
         <!-- 数据范围过滤 -->
         ${params.dataScope}
-        order by createdate desc
+        order by d.createdate desc
     </select>
     
     <select id="selectTEoegLockChangeById" parameterType="Long" resultMap="TEoegLockChangeResult">