|
|
@@ -2,4 +2,46 @@
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
<mapper namespace="org.jeecg.modules.user.mapper.UserMapper">
|
|
|
|
|
|
+ <sql id="userColumns">
|
|
|
+ a.id AS "id",
|
|
|
+ a.phone AS "phone",
|
|
|
+ a.gender AS "gender",
|
|
|
+ a.head_img_url AS "headImgUrl",
|
|
|
+ a.client_id AS "clientId",
|
|
|
+ a.user_token AS "userToken",
|
|
|
+ a.real_name as "realName",
|
|
|
+ a.id_card_number AS "idCardNumber",
|
|
|
+ a.id_card_front AS "idCardFront",
|
|
|
+ a.id_card_back AS "idCardBack",
|
|
|
+ a.position AS "position",
|
|
|
+ a.user_type AS "userType",
|
|
|
+ a.authentication_status AS "authenticationStatus",
|
|
|
+ a.create_time AS "createTime",
|
|
|
+ a.update_time AS "updateTime",
|
|
|
+ a.login_time as "loginTime",
|
|
|
+ a.del_flag as "delFlag"
|
|
|
+ </sql>
|
|
|
+
|
|
|
+ <sql id="userJoins">
|
|
|
+
|
|
|
+ </sql>
|
|
|
+
|
|
|
+ <select id="queryPageListNew" resultType="org.jeecg.modules.user.entity.User">
|
|
|
+ SELECT
|
|
|
+ <include refid="userColumns"/>
|
|
|
+ FROM dp_user a
|
|
|
+ <include refid="userJoins"/>
|
|
|
+ <where>
|
|
|
+ 1=1
|
|
|
+ <if test="user.realName != null and user.realName != ''">
|
|
|
+ and a.real_name LIKE concat('%',#{user.realName},'%')
|
|
|
+ </if>
|
|
|
+ <if test="user.userType != null ">
|
|
|
+ AND a.user_type = #{user.userType}
|
|
|
+ </if>
|
|
|
+ <if test="user.authenticationStatus != null ">
|
|
|
+ AND a.authentication_status = #{user.authenticationStatus}
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
+ </select>
|
|
|
</mapper>
|