This commit is contained in:
18792927508
2023-10-17 13:50:15 +08:00
parent 4ee0dda38c
commit 371284d360
4 changed files with 99 additions and 15 deletions
@@ -92,8 +92,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<include refid="selectRoleVo"/>
where r.role_key=#{roleKey} and r.del_flag = '0' limit 1
</select>
<insert id="insertRole" parameterType="SysRole" useGeneratedKeys="true" keyProperty="roleId">
<select id="selectRoleIdByName" resultType="java.lang.Long" >
select role_id from sys_role where role_name=#{roleName}
</select>
<insert id="insertRole" parameterType="SysRole" useGeneratedKeys="true" keyProperty="roleId">
insert into sys_role(
<if test="roleId != null and roleId != 0">role_id,</if>
<if test="roleName != null and roleName != ''">role_name,</if>
@@ -118,7 +118,7 @@
#{caseStatus}
</foreach>
</if>
<!--申请人-->
<!--财务-->
<if test="financeStatus != null and financeStatus != ''">
or( t.case_status =#{financeStatus})
@@ -203,6 +203,18 @@
and t.case_status in (0,2))
)
</if>
<!--部门长-->
<if test="deptHeadStatus != null and deptHeadStatus.size() > 0">
or t.case_status in
<foreach item="caseStatus" collection="deptHeadStatus" open="(" separator="," close=")">
#{caseStatus}
</foreach>
</if>
<!--财务-->
<if test="financeStatus != null and financeStatus != ''">
or( t.case_status =#{financeStatus})
</if>
</where>
) t1
-- <where>