fix 修复 user与dept xml 编写错误

This commit is contained in:
疯狂的狮子Li
2024-02-01 12:20:00 +08:00
parent 3913bf68c6
commit 7b4e8324a9
2 changed files with 25 additions and 4 deletions

View File

@@ -8,7 +8,14 @@
</resultMap>
<select id="selectDeptList" resultMap="SysDeptResult">
select ${ew.getSqlSelect} from sys_dept ${ew.getCustomSqlSegment}
select
<if test="ew.getSqlSelect != null">
${ew.getSqlSelect}
</if>
<if test="ew.getSqlSelect == null">
*
</if>
from sys_dept ${ew.getCustomSqlSegment}
</select>
<select id="countDeptById" resultType="Long">