| | |
| | | r.role_id as role_id, r.name as role_name, r.level as role_level, r.data_scope as role_data_scope |
| | | </sql> |
| | | |
| | | <sql id="Whrer_Sql"> |
| | | <sql id="Where_Sql"> |
| | | <where> |
| | | <if test="criteria.id != null"> |
| | | and u.user_id = #{criteria.id} |
| | | </if> |
| | | <if test="criteria.enabled != null"> |
| | | and u.enabled = #{criteria.enabled} |
| | | </if> |
| | | <if test="criteria.userTypes != null and criteria.userTypes.size() != 0"> |
| | | and u.user_type in |
| | | <foreach collection="criteria.userTypes" item="userType" open="(" separator="," close=")"> |
| | | #{userType} |
| | | </foreach> |
| | | </if> |
| | | <if test="criteria.blurry != null and criteria.blurry != ''"> |
| | | and ( |
| | |
| | | select |
| | | <include refid="Base_Column_List"/> |
| | | from sys_user u |
| | | <include refid="Whrer_Sql"/> |
| | | <include refid="Where_Sql"/> |
| | | order by u.user_id desc |
| | | <if test="criteria.offset != null"> |
| | | limit #{criteria.offset}, #{criteria.size} |
| | |
| | | <select id="countAll" resultType="java.lang.Long"> |
| | | select count(*) |
| | | from sys_user u |
| | | <include refid="Whrer_Sql"/> |
| | | <include refid="Where_Sql"/> |
| | | </select> |
| | | |
| | | <select id="findByUsername" resultMap="BaseResultMap"> |