...
|
...
|
@@ -75,14 +75,6 @@ |
|
|
limit 1
|
|
|
</select>
|
|
|
|
|
|
<select id="selectOrderNumByInviterUid" resultMap="BaseResultMap" >
|
|
|
select
|
|
|
seller_uid, count(buyer_order_code) order_num
|
|
|
from invite_settlement_item
|
|
|
where uid = #{inviterUid,jdbcType=INTEGER} and status in (1,3)
|
|
|
GROUP by seller_uid
|
|
|
</select>
|
|
|
|
|
|
<select id="selectCountByUidTypeAndInviteSettlementId" resultType="java.lang.Integer" >
|
|
|
select
|
|
|
count(1)
|
...
|
...
|
@@ -97,7 +89,9 @@ |
|
|
sum(order_amount) as 'totalOrderAmount',
|
|
|
sum(settle_amount) as 'totalSettleAmount'
|
|
|
from invite_settlement_item
|
|
|
where uid = #{uid,jdbcType=INTEGER} and type = #{type,jdbcType=INTEGER} and invite_settlement_id = #{inviteSettlementId,jdbcType=INTEGER}
|
|
|
where uid = #{uid,jdbcType=INTEGER}
|
|
|
and type = #{type,jdbcType=INTEGER}
|
|
|
and invite_settlement_id = #{inviteSettlementId,jdbcType=INTEGER}
|
|
|
group by seller_uid
|
|
|
</select>
|
|
|
|
...
|
...
|
@@ -107,10 +101,24 @@ |
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
|
from invite_settlement_item
|
|
|
where uid = #{uid,jdbcType=INTEGER} and type = #{type,jdbcType=INTEGER} and invite_settlement_id = #{inviteSettlementId,jdbcType=INTEGER}
|
|
|
where uid = #{uid,jdbcType=INTEGER}
|
|
|
and type = #{type,jdbcType=INTEGER}
|
|
|
and invite_settlement_id = #{inviteSettlementId,jdbcType=INTEGER}
|
|
|
and seller_uid = #{sellerUid,jdbcType=INTEGER}
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectOrderNumByInviterUid" resultMap="BaseResultMap" >
|
|
|
select
|
|
|
seller_uid, count(buyer_order_code) order_num
|
|
|
from invite_settlement_item
|
|
|
where uid = #{inviterUid,jdbcType=INTEGER}
|
|
|
and status in (1,3)
|
|
|
and type = 1
|
|
|
GROUP by seller_uid
|
|
|
</select>
|
|
|
|
|
|
<select id="selectStats" resultType="com.yohoufo.dal.order.model.InviteSettlementItemStats" >
|
|
|
select
|
|
|
count(1) as 'totalElements',
|
...
|
...
|
|