init
This commit is contained in:
@@ -15,18 +15,34 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="cardName" column="card_name"/>
|
||||
<result property="cardAccount" column="card_account"/>
|
||||
<result property="status" column="status"/>
|
||||
<result property="payMoney" column="pay_money"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="operateIp" column="operate_ip"/>
|
||||
<result property="verifyTime" column="verify_time"/>
|
||||
<result property="verifyRemark" column="verify_remark"/>
|
||||
<result property="isFail" column="is_fail"/>
|
||||
<result property="isImmediately" column="is_immediately"/>
|
||||
<result property="isPay" column="is_pay"/>
|
||||
<result property="payTime" column="pay_time"/>
|
||||
<result property="isExport" column="is_export"/>
|
||||
<result property="exportTime" column="export_time"/>
|
||||
</resultMap>
|
||||
<select id="pageAdmin" resultType="com.ruoyi.cai.dto.admin.vo.AccountCashAdminVo">
|
||||
select t1.*,t2.usercode,t2.nickname,t2.mobile,t2.avatar,t2.gender,t2.is_anchor,t2.age,t2.status
|
||||
from cai_account_cash t1
|
||||
left join cai_user t2 on t1.user_id = t2.id
|
||||
<where>
|
||||
<if test="bo.cardName != null and bo.cardName != ''">
|
||||
and t1.card_name like concat('%',#{bo.cardName},'%')
|
||||
</if>
|
||||
<if test="bo.cardAccount != null and bo.cardAccount != ''">
|
||||
and t1.card_account like concat('%',#{bo.cardAccount},'%')
|
||||
</if>
|
||||
<if test="bo.mobile != null and bo.mobile != ''">
|
||||
and t2.mobile = #{bo.mobile}
|
||||
</if>
|
||||
<if test="bo.usercode != null and bo.usercode != ''">
|
||||
and t2.usercode = #{bo.usercode}
|
||||
</if>
|
||||
</where>
|
||||
order by t1.create_time
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
|
||||
@@ -36,6 +36,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
set income_coin = income_coin + #{incomeCoin}
|
||||
where user_id = #{userId}
|
||||
</update>
|
||||
<select id="pageAdmin" resultType="com.ruoyi.cai.dto.admin.vo.AccountAdminVo">
|
||||
select t1.*,t2.usercode,t2.nickname,t2.mobile,t2.avatar,t2.gender,t2.is_anchor,t2.age
|
||||
from cai_account t1
|
||||
left join cai_user t2 on t1.user_id = t2.id
|
||||
<where>
|
||||
<if test="bo.mobile != null and bo.mobile != ''">
|
||||
and t2.mobile = #{bo.mobile}
|
||||
</if>
|
||||
<if test="bo.usercode != null and bo.usercode != ''">
|
||||
and t2.usercode = #{bo.usercode}
|
||||
</if>
|
||||
</where>
|
||||
order by t2.create_time desc
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
|
||||
@@ -4,23 +4,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.cai.mapper.CaiUnionMapper">
|
||||
|
||||
<resultMap type="com.ruoyi.cai.domain.Union" id="CaiUnionResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="userId" column="user_id"/>
|
||||
<result property="name" column="name"/>
|
||||
<result property="status" column="status"/>
|
||||
<result property="unionPayRate" column="union_pay_rate"/>
|
||||
<result property="unionIncomeRate" column="union_income_rate"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="allNum" column="all_num"/>
|
||||
<result property="inDivideNum" column="in_divide_num"/>
|
||||
<result property="notDivideNum" column="not_divide_num"/>
|
||||
</resultMap>
|
||||
<select id="pageAdmin" resultType="com.ruoyi.cai.dto.admin.vo.UnionAdminVo">
|
||||
select t1.*,t2.age,t2.avatar,t2.usercode,t2.nickname,t2.mobile,t2.gender,t2.union_time
|
||||
select t1.*,t2.age,t2.avatar,t2.usercode,t2.nickname,t2.mobile,t2.gender,t2.union_time,t2.status
|
||||
from cai_union t1
|
||||
join cai_user t2 on t1.user_id = t2.id
|
||||
where t1.status = 0
|
||||
<where>
|
||||
<if test="bo.mobile != null and bo.mobile != ''">
|
||||
and t2.mobile = #{bo.mobile}
|
||||
</if>
|
||||
<if test="bo.usercode != null and bo.usercode != ''">
|
||||
and t2.usercode = #{bo.usercode}
|
||||
</if>
|
||||
</where>
|
||||
order by t1.create_time
|
||||
</select>
|
||||
|
||||
|
||||
@@ -3,19 +3,25 @@
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.cai.mapper.CaiUnionUserMapper">
|
||||
|
||||
<resultMap type="com.ruoyi.cai.domain.UnionUser" id="CaiUnionUserResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="unionId" column="union_id"/>
|
||||
<result property="userId" column="user_id"/>
|
||||
<result property="videoDivide" column="video_divide"/>
|
||||
<result property="giftDivide" column="gift_divide"/>
|
||||
<result property="vipDivide" column="vip_divide"/>
|
||||
<result property="type" column="type"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="unionEarning" column="union_earning"/>
|
||||
<result property="isInitiative" column="is_initiative"/>
|
||||
</resultMap>
|
||||
<select id="pageAdmin" resultType="com.ruoyi.cai.dto.admin.vo.UnionUserAdminVo">
|
||||
select t1.*,t3.name as union_name,
|
||||
t2.age,t2.avatar,t2.usercode,t2.nickname,t2.mobile,t2.gender,t2.status,t2.is_anchor
|
||||
from cai_union_user t1
|
||||
left join cai_user t2 on t1.user_id = t2.id
|
||||
left join cai_union t3 on t1.union_id = t3.id
|
||||
<where>
|
||||
<if test="bo.unionId != null">
|
||||
and t1.union_id = #{bo.unionId}
|
||||
</if>
|
||||
<if test="bo.mobile != null and bo.mobile != ''">
|
||||
and t2.mobile = #{bo.mobile}
|
||||
</if>
|
||||
<if test="bo.usercode != null and bo.usercode != ''">
|
||||
and t2.usercode = #{bo.usercode}
|
||||
</if>
|
||||
</where>
|
||||
order by t1.create_time
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
|
||||
@@ -29,6 +29,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
follow_count = follow_count + #{followIncs}
|
||||
where user_id = #{userId}
|
||||
</select>
|
||||
<select id="pageAdmin" resultType="com.ruoyi.cai.dto.admin.vo.UserCountAdminVo">
|
||||
select t1.*,t2.usercode,t2.nickname,t2.mobile,t2.avatar,t2.gender,t2.is_anchor,t2.age,t2.status
|
||||
from cai_user_count t1
|
||||
left join cai_user t2 on t1.user_id = t2.id
|
||||
<where>
|
||||
<if test="bo.mobile != null and bo.mobile != ''">
|
||||
and t2.mobile = #{bo.mobile}
|
||||
</if>
|
||||
<if test="bo.usercode != null and bo.usercode != ''">
|
||||
and t2.usercode = #{bo.usercode}
|
||||
</if>
|
||||
</where>
|
||||
order by t2.create_time desc
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
|
||||
@@ -4,48 +4,27 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.cai.mapper.CaiUserMapper">
|
||||
|
||||
<resultMap type="com.ruoyi.cai.domain.User" id="CaiUserResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="usercode" column="usercode"/>
|
||||
<result property="nickname" column="nickname"/>
|
||||
<result property="type" column="type"/>
|
||||
<result property="password" column="password"/>
|
||||
<result property="salt" column="salt"/>
|
||||
<result property="groupId" column="group_id"/>
|
||||
<result property="mobile" column="mobile"/>
|
||||
<result property="mobileStatus" column="mobile_status"/>
|
||||
<result property="cameraStatus" column="camera_status"/>
|
||||
<result property="avatar" column="avatar"/>
|
||||
<result property="avatarState" column="avatar_state"/>
|
||||
<result property="level" column="level"/>
|
||||
<result property="gender" column="gender"/>
|
||||
<result property="age" column="age"/>
|
||||
<result property="birthday" column="birthday"/>
|
||||
<result property="city" column="city"/>
|
||||
<result property="finishStatus" column="finish_status"/>
|
||||
<result property="skillStatus" column="skill_status"/>
|
||||
<result property="photoStatus" column="photo_status"/>
|
||||
<result property="videoStatus" column="video_status"/>
|
||||
<result property="token" column="token"/>
|
||||
<result property="status" column="status"/>
|
||||
<result property="inviteId" column="invite_id"/>
|
||||
<result property="wealthValue" column="wealth_value"/>
|
||||
<result property="loveValue" column="love_value"/>
|
||||
<result property="terminal" column="terminal"/>
|
||||
<result property="createdBy" column="created_by"/>
|
||||
<result property="imToken" column="im_token"/>
|
||||
<result property="isAnchor" column="is_anchor"/>
|
||||
<result property="voice" column="voice"/>
|
||||
<result property="voiceTime" column="voice_time"/>
|
||||
<result property="rankHide" column="rank_hide"/>
|
||||
<result property="noGreet" column="no_greet"/>
|
||||
<result property="isUnion" column="is_union"/>
|
||||
<result property="unionTime" column="union_time"/>
|
||||
</resultMap>
|
||||
<select id="pageAdmin" resultType="com.ruoyi.cai.dto.admin.vo.UserAdminVo">
|
||||
select t1.*,t2.last_login_ip,t2.last_login_time,t2.reg_ip,t2.reg_time
|
||||
from cai_user t1
|
||||
left join cai_user_info t2 on t1.id = t2.user_id
|
||||
<where>
|
||||
<if test="query.isAnchor != null">
|
||||
and t1.is_anchor = #{query.isAnchor}
|
||||
</if>
|
||||
<if test="query.nickname != null and query.nickname != ''">
|
||||
and t1.nickname like concat('%',#{query.nickname},'%')
|
||||
</if>
|
||||
<if test="query.usercode != null and query.usercode != ''">
|
||||
and t1.usercode like concat('%',#{query.usercode},'%')
|
||||
</if>
|
||||
<if test="query.gender != null">
|
||||
and t1.gender = #{query.gender}
|
||||
</if>
|
||||
<if test="query.city != null">
|
||||
and t1.city = #{query.city}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
<select id="pageApp" resultType="com.ruoyi.cai.dto.app.vo.user.UserListVo">
|
||||
select t1.avatar,t1.gender,t1.city,t1.nickname,t1.usercode,t1.age,t2.last_live_time
|
||||
|
||||
Reference in New Issue
Block a user