init
This commit is contained in:
@@ -9,7 +9,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
t1.nickname,t1.type,t1.mobile,t1.avatar,t1.gender,t1.age,t1.birthday,
|
||||
t1.height,t1.weight,t1.somatotype,t1.zodiac,t1.sign,t1.residence_name,t1.address_name,t1.residence_city_name,
|
||||
t1.education,t1.marriage,t1.profession,t1.annual_income,t1.company_nature,t1.for_personals,
|
||||
t1.remark,t1.status,t1.finish_base_status11
|
||||
t1.remark,t1.status,t1.finish_base_status
|
||||
from xq_user t1
|
||||
join xq_user_info t2 on t1.id = t2.user_id
|
||||
<where>
|
||||
|
||||
@@ -3,19 +3,23 @@
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.xq.mapper.UserStatusMapper">
|
||||
|
||||
<resultMap type="com.ruoyi.xq.domain.UserStatus" id="UserStatusResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="userId" column="user_id"/>
|
||||
<result property="usercode" column="usercode"/>
|
||||
<result property="personalsStatus" column="personals_status"/>
|
||||
<result property="showAvatar" column="show_avatar"/>
|
||||
<result property="showInfo" column="show_info"/>
|
||||
<result property="allowTransMobile" column="allow_trans_mobile"/>
|
||||
<result property="allowTransWx" column="allow_trans_wx"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
</resultMap>
|
||||
<select id="pageAdmin" resultType="com.ruoyi.xq.dto.admin.userstatus.UserStatusAdminVo">
|
||||
select t1.*, t2.nickname, t2.mobile,t2.avatar
|
||||
from xq_user_status 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 create_time desc
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user