| | |
| | | <if test="user.hold!=null and user.hold != ''"> |
| | | and hold = #{user.hold} |
| | | </if> <if test="user.jurisdiction!=null and user.jurisdiction != ''"> |
| | | and jurisdiction = #{user.jurisdiction} |
| | | </if> |
| | | and jurisdiction = #{user.jurisdiction} |
| | | </if> |
| | | <if test="user.securitynumber!=null and user.securitynumber != ''"> |
| | | and securitynumber = #{user.securitynumber} |
| | | </if> |
| | |
| | | <select id="selectCountAccount" resultType="java.lang.Integer"> |
| | | select count(*) from blade_user where account = #{account} |
| | | </select> |
| | | |
| | | <!--查询当前部门名称及父级部门名称--> |
| | | <select id="getDeptName" resultType="java.lang.String"> |
| | | (select dept_name from blade_dept where id = #{deptId} and 1=1) |
| | | union |
| | | ( |
| | | select dept_name from blade_dept where id = (select parent_id from blade_dept where id= #{deptId} and 1=1) |
| | | ) |
| | | </select> |
| | | </mapper> |