nnnn
This commit is contained in:
@@ -11,7 +11,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
from cai_consume_log t1
|
||||
join cai_recharge_order t2 on t1.trace_id = t2.trace_id
|
||||
left join cai_user t3 on t2.user_id = t3.id
|
||||
where t1.type = 1 and t1.one_user_id = #{proxyUserCode} and t1.`status` = 1
|
||||
where t1.type = 1 and t1.one_user_id = #{proxyUserId} and t1.`status` = 1
|
||||
<if test="query.usercode != null and query.usercode != ''">
|
||||
and t3.usercode = #{query.usercode}
|
||||
</if>
|
||||
@@ -31,6 +31,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
sum(t2.price)
|
||||
from cai_consume_log t1
|
||||
join cai_recharge_order t2 on t1.trace_id = t2.trace_id
|
||||
where t1.type = 1 and t1.one_user_id = #{userCode} and t1.`status` = 1
|
||||
where t1.type = 1 and t1.one_user_id = #{userId} and t1.`status` = 1
|
||||
</select>
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user