init
This commit is contained in:
19
ruoyi-xq/src/main/resources/mapper/xq/AreaCodeMapper.xml
Normal file
19
ruoyi-xq/src/main/resources/mapper/xq/AreaCodeMapper.xml
Normal file
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.xq.mapper.AreaCodeMapper">
|
||||
|
||||
<resultMap type="com.ruoyi.xq.domain.AreaCode" id="AreaCodeResult">
|
||||
<result property="code" column="code"/>
|
||||
<result property="name" column="name"/>
|
||||
<result property="level" column="level"/>
|
||||
<result property="pcode" column="pcode"/>
|
||||
<result property="pname" column="pname"/>
|
||||
<result property="fullname" column="fullname"/>
|
||||
<result property="longitude" column="longitude"/>
|
||||
<result property="latitude" column="latitude"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -21,11 +21,80 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
order by t1.id desc
|
||||
</select>
|
||||
<select id="homePageApp" resultType="com.ruoyi.xq.dto.app.user.vo.HomeUserListVo">
|
||||
select t1.id as user_id, t1.avatar, t1.gender, t1.nickname, t1.birthday, t1.residence_city,
|
||||
select t1.id as user_id, t1.avatar, t1.gender, t1.nickname, t1.birthday, t1.residence_city_name,
|
||||
t1.education, t1.profession, if(t2.card_num_auth = 1, 1, 0) as cardNumAuthBool
|
||||
from xq_user t1
|
||||
join xq_user_auth t2 on t1.id = t2.user_id
|
||||
where t1.type = 0 and t1.status = 0
|
||||
|
||||
join xq_user_info t3 on t1.id = t3.user_id
|
||||
where t1.type = 0 and t1.status = 0 and t1.finish_base_status = 1
|
||||
<if test="params.birthdayBegin != null">
|
||||
and t1.birthday >= #{params.birthdayBegin}
|
||||
</if>
|
||||
<if test="params.birthdayEnd != null">
|
||||
and t1.birthday <= #{params.birthdayEnd}
|
||||
</if>
|
||||
<if test="params.heightBegin != null">
|
||||
and t1.height >= #{params.heightBegin}
|
||||
</if>
|
||||
<if test="params.heightEnd != null">
|
||||
and t1.height <= #{params.heightEnd}
|
||||
</if>
|
||||
<if test="params.weightBegin != null">
|
||||
and t1.weight >= #{params.weightBegin}
|
||||
</if>
|
||||
<if test="params.weightEnd != null">
|
||||
and t1.weight <= #{params.weightEnd}
|
||||
</if>
|
||||
<if test="params.gender != null">
|
||||
and t1.gender = #{params.gender}
|
||||
</if>
|
||||
<if test="params.marriage != null">
|
||||
and t1.marriage = #{params.marriage}
|
||||
</if>
|
||||
<if test="params.education != null">
|
||||
and t1.education = #{params.education}
|
||||
</if>
|
||||
<if test="params.residenceCode != null and params.residenceCode != ''">
|
||||
and t1.education like concat(#{params.residenceCode},'%')
|
||||
</if>
|
||||
<if test="params.vipQuery != null">
|
||||
<if test="params.vipQuery.profession != null and params.vipQuery.profession != ''">
|
||||
and t1.profession = #{params.vipQuery.profession}
|
||||
</if>
|
||||
<if test="params.vipQuery.annualIncome != null">
|
||||
and t1.annual_income = #{params.vipQuery.annualIncome}
|
||||
</if>
|
||||
<if test="params.vipQuery.zodiac != null">
|
||||
and t1.zodiac = #{params.vipQuery.zodiac}
|
||||
</if>
|
||||
<if test="params.vipQuery.sign != null">
|
||||
and t1.sign = #{params.vipQuery.sign}
|
||||
</if>
|
||||
<if test="params.vipQuery.childStatus != null">
|
||||
and t3.child_status = #{params.vipQuery.childStatus}
|
||||
</if>
|
||||
<if test="params.vipQuery.housingStatus != null">
|
||||
and t3.housing_status = #{params.vipQuery.housingStatus}
|
||||
</if>
|
||||
<if test="params.vipQuery.carStatus != null">
|
||||
and t3.car_status = #{params.vipQuery.carStatus}
|
||||
</if>
|
||||
<if test="params.vipQuery.addressCode != null">
|
||||
and t1.address_code like concat(#{params.vipQuery.addressCode},'%')
|
||||
</if>
|
||||
</if>
|
||||
</select>
|
||||
<select id="vipHomePage" resultType="com.ruoyi.xq.dto.app.user.vo.HomeUserListVo">
|
||||
select t1.id as user_id, t1.avatar, t1.gender, t1.nickname, t1.birthday, t1.residence_city_name,
|
||||
t1.education, t1.profession, if(t2.card_num_auth = 1, 1, 0) as cardNumAuthBool
|
||||
from xq_user t1
|
||||
join xq_user_auth t2 on t1.id = t2.user_id
|
||||
where t1.type = 0 and t1.status = 0 and t1.finish_base_status = 1
|
||||
and exists(select 1 from xq_user_vip p1 where p1.user_id = t1.id and p1.vip_status = 1 and p1.vip_timeout <= now())
|
||||
</select>
|
||||
<select id="getMinUserById" resultType="com.ruoyi.xq.dto.common.user.MinUser">
|
||||
select t1.id,t1.usercode
|
||||
from xq_user t1
|
||||
where t1.id = #{userId}
|
||||
</select>
|
||||
</mapper>
|
||||
|
||||
@@ -25,7 +25,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
select t1.user_id, max(t1.vip_type) as vip_type
|
||||
from xq_user_vip t1
|
||||
where
|
||||
and t1.vip_status = 1
|
||||
t1.vip_status = 1
|
||||
and t1.vip_timeout <= now()
|
||||
and t1.user_id in
|
||||
<foreach collection="userIdList" item="value" open="(" close=")" separator="," >
|
||||
|
||||
Reference in New Issue
Block a user