init
This commit is contained in:
@@ -4,29 +4,35 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.cai.mapper.UserCallMapper">
|
||||
|
||||
<resultMap type="com.ruoyi.cai.domain.UserCall" id="CaiUserCallResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="fromUid" column="from_uid"/>
|
||||
<result property="toUid" column="to_uid"/>
|
||||
<result property="status" column="status"/>
|
||||
<result property="beginTime" column="begin_time"/>
|
||||
<result property="endTime" column="end_time"/>
|
||||
<result property="callTime" column="call_time"/>
|
||||
<result property="callPrice" column="call_price"/>
|
||||
<result property="callAmount" column="call_amount"/>
|
||||
<result property="callIncome" column="call_income"/>
|
||||
<result property="callScore" column="call_score"/>
|
||||
<result property="userScore" column="user_score"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="deleteFlag" column="delete_flag"/>
|
||||
<result property="receiverVideoDivide" column="receiver_video_divide"/>
|
||||
<result property="receiverUnionUserId" column="receiver_union_user_id"/>
|
||||
<result property="receiverUnionVideoDivide" column="receiver_union_video_divide"/>
|
||||
<result property="receiverInviteUserId" column="receiver_invite_user_id"/>
|
||||
<result property="receiverIncomeDivide" column="receiver_income_divide"/>
|
||||
<result property="callerPayDivide" column="caller_pay_divide"/>
|
||||
<result property="freeNum" column="free_num"/>
|
||||
</resultMap>
|
||||
<select id="pageAdmin" resultType="com.ruoyi.cai.dto.admin.vo.UserCallAdminVo">
|
||||
select t1.*,
|
||||
t2.mobile as from_mobile,t2.avatar as from_avatar,
|
||||
t3.mobile as to_mobile, t3.avatar as to_avatar
|
||||
from cai_user_call t1
|
||||
left join cai_user t2 on t1.from_uid = t2.id
|
||||
left join cai_user t3 on t1.to_uid = t3.id
|
||||
<where>
|
||||
<if test="bo.fromUsercode != null and bo.fromUsercode != ''">
|
||||
and t1.from_usercode = #{bo.fromUsercode}
|
||||
</if>
|
||||
<if test="bo.fromMobile != null and bo.fromMobile != ''">
|
||||
and t2.mobile = #{bo.fromMobile}
|
||||
</if>
|
||||
<if test="bo.toUsercode != null and bo.toUsercode != ''">
|
||||
and t1.to_usercode = #{bo.fromUsercode}
|
||||
</if>
|
||||
<if test="bo.toMobile != null and bo.toMobile != ''">
|
||||
and t3.mobile = #{bo.fromMobile}
|
||||
</if>
|
||||
<if test="bo.status != null">
|
||||
and t1.status = #{bo.status}
|
||||
</if>
|
||||
<if test="bo.deleteFlag != null">
|
||||
and t1.delete_flag = #{bo.deleteFlag}
|
||||
</if>
|
||||
</where>
|
||||
order by t1.create_time desc
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user