update 优化 为部门角色岗位用户增加一些常用查询方法

This commit is contained in:
疯狂的狮子Li
2024-12-12 23:32:33 +08:00
parent 0027f671d2
commit ab3e4978b1
11 changed files with 164 additions and 3 deletions

View File

@ -18,6 +18,17 @@
from sys_dept ${ew.getCustomSqlSegment}
</select>
<select id="selectPageDeptList" resultMap="SysDeptResult">
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">
select count(*) from sys_dept where del_flag = '0' and dept_id = #{deptId}
</select>