init
This commit is contained in:
@@ -3,31 +3,23 @@
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.xq.mapper.UserAuthMapper">
|
||||
|
||||
<resultMap type="com.ruoyi.xq.domain.UserAuth" id="UserAuthResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="userId" column="user_id"/>
|
||||
<result property="usercode" column="usercode"/>
|
||||
<result property="cardNumAuth" column="card_num_auth"/>
|
||||
<result property="cardNumId" column="card_num_id"/>
|
||||
<result property="cardNumName" column="card_num_name"/>
|
||||
<result property="phoneAuth" column="phone_auth"/>
|
||||
<result property="phone" column="phone"/>
|
||||
<result property="singlePersonAuth" column="single_person_auth"/>
|
||||
<result property="educationAuth" column="education_auth"/>
|
||||
<result property="educationPic" column="education_pic"/>
|
||||
<result property="jobAuth" column="job_auth"/>
|
||||
<result property="jobAuthType" column="job_auth_type"/>
|
||||
<result property="jobPic" column="job_pic"/>
|
||||
<result property="carAuth" column="car_auth"/>
|
||||
<result property="carPic" column="car_pic"/>
|
||||
<result property="houseAuth" column="house_auth"/>
|
||||
<result property="housePic" column="house_pic"/>
|
||||
<result property="marriageAuth" column="marriage_auth"/>
|
||||
<result property="marriagePic" column="marriage_pic"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
</resultMap>
|
||||
<select id="pageApp" resultType="com.ruoyi.xq.dto.admin.user.UserAuthAdminVo">
|
||||
select t1.*, t2.nickname,t2.mobile,t2.avatar
|
||||
from xq_user_auth t1
|
||||
left join xq_user t2 on t1.user_id = t2.id
|
||||
<where>
|
||||
<if test="bo.usercode != null and bo.usercode != ''">
|
||||
and t1.usercode = #{bo.usercode}
|
||||
</if>
|
||||
<if test="bo.nickname != null and bo.nickname != ''">
|
||||
and t2.nickname like concat('%',#{bo.nickname},'%')
|
||||
</if>
|
||||
<if test="bo.mobile != null and bo.mobile != ''">
|
||||
and t2.mobile = #{bo.mobile}
|
||||
</if>
|
||||
</where>
|
||||
order by t1.id desc
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user