定时任务-停用当前日期大于幼儿园开通截止日期的园所

This commit is contained in:
zhanglipeng
2021-03-08 16:36:33 +08:00
parent 9239ee606c
commit 3279fd5f64
10 changed files with 182 additions and 10 deletions

View File

@ -65,6 +65,24 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
${dataScope}
order by d.parent_id, d.order_num
</select>
<select id="selectDeptListAll" parameterType="SysDept" resultMap="SysDeptResult">
<include refid="selectDeptVo"/>
where d.del_flag = '0'
<if test="parentId != null and parentId != 0">
AND parent_id = #{parentId}
</if>
<if test="deptName != null and deptName != ''">
AND dept_name like concat('%', #{deptName}, '%')
</if>
<if test="status != null and status != ''">
AND status = #{status}
</if>
<if test="schoolId != null and schoolId != ''">
AND school_id = #{schoolId}
</if>
order by d.parent_id, d.order_num
</select>
<select id="selectDeptListByRoleId" parameterType="Long" resultType="Integer">
select d.dept_id, d.parent_id