| | |
| | | <mapper namespace="org.springblade.modules.system.mapper.UserMapper"> |
| | | |
| | | <!-- 通用查询映射结果 --> |
| | | <resultMap id="userResultMap" type="org.springblade.modules.system.entity.User"> |
| | | <resultMap id="userResultMap" type="org.springblade.modules.system.vo.UserVO"> |
| | | <result column="id" property="id"/> |
| | | <result column="tenant_id" property="tenantId"/> |
| | | <result column="create_user" property="createUser"/> |
| | |
| | | <if test="user.hold!=null and user.hold != ''"> |
| | | and bu.hold = #{user.hold} |
| | | </if> |
| | | <if test="user.types!=null and user.types=='1'.toString()"> |
| | | and to_days(bu.audit_time) = to_days(now()) |
| | | </if> |
| | | <if test="user.types!=null and user.types=='2'.toString()"> |
| | | and DATE_FORMAT(bu.audit_time, '%Y%m' ) = DATE_FORMAT( CURDATE( ) , '%Y%m' ) |
| | | </if> |
| | | <if test="user.jurisdiction!=null and user.jurisdiction!='' and user.jurisdiction!='1372091709474910209'"> |
| | | and (j.id = #{user.jurisdiction} or j.parent_id = #{user.jurisdiction}) |
| | | </if> |