Parcourir la source

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

- 修改createdate排序字段增加表别名前缀
- 避免多表关联时字段名冲突导致的SQL执行异常
jiangbiao il y a 22 heures
Parent
commit
93f4e7fc9d

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