This commit is contained in:
张良(004796)
2024-03-11 18:14:31 +08:00
parent c47e71b301
commit 2bd2871df0
31 changed files with 175 additions and 68 deletions

View File

@@ -4,36 +4,26 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.xq.mapper.UserInfoMapper">
<resultMap type="com.ruoyi.xq.domain.UserInfo" id="UserInfoResult">
<result property="id" column="id"/>
<result property="userId" column="user_id"/>
<result property="usercode" column="usercode"/>
<result property="housingStatus" column="housing_status"/>
<result property="carStatus" column="car_status"/>
<result property="smokeStatus" column="smoke_status"/>
<result property="drinkStatus" column="drink_status"/>
<result property="nation" column="nation"/>
<result property="childStatus" column="child_status"/>
<result property="familyBackground" column="family_background"/>
<result property="familyRanking" column="family_ranking"/>
<result property="loveAtDistance" column="love_at_distance"/>
<result property="whenMarriage" column="when_marriage"/>
<result property="wantChild" column="want_child"/>
<result property="liveAtParent" column="live_at_parent"/>
<result property="findTag" column="find_tag"/>
<result property="graduateSchool" column="graduate_school"/>
<result property="hobbys" column="hobbys"/>
<result property="filterAge" column="filter_age"/>
<result property="filterHeight" column="filter_height"/>
<result property="filterSomatotype" column="filter_somatotype"/>
<result property="filterMarriage" column="filter_marriage"/>
<result property="filterEducation" column="filter_education"/>
<result property="filterResidence" column="filter_residence"/>
<result property="filterAnnualIncome" column="filter_annual_income"/>
<result property="filterChildStatus" column="filter_child_status"/>
<result property="filterHousingStatus" column="filter_housing_status"/>
<result property="filterCarStatus" column="filter_car_status"/>
</resultMap>
<select id="pageApp" resultType="com.ruoyi.xq.dto.admin.user.UserInfoAdminVo">
select t2.*,
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,t1.address,t1.residence_city,
t1.education,t1.marriage,t1.profession,t1.annual_income,t1.company_nature,t1.for_personals,
t1.remark,t1.status,t1.finish_base_status
from xq_user t1
join xq_user_info t2 on t1.id = t2.user_id
<where>
<if test="bo.usercode != null and bo.usercode != ''">
and t1.usercode = #{bo.usercode}
</if>
<if test="bo.mobile != null and bo.mobile != ''">
and t1.mobile = #{bo.mobile}
</if>
<if test="bo.nickname != null and bo.nickname != ''">
and t1.nickname like concat('%',#{bo.nickname},'%')
</if>
</where>
</select>
</mapper>