|
|
@ -48,10 +48,10 @@ |
|
|
</update> |
|
|
</update> |
|
|
<select id="queryFrontPreDownloadCount" resultType="com.bnyer.img.vo.CreatorProfitDownloadCountVo"> |
|
|
<select id="queryFrontPreDownloadCount" resultType="com.bnyer.img.vo.CreatorProfitDownloadCountVo"> |
|
|
select |
|
|
select |
|
|
sum(download_num) as downloadNum,create_time as createTime |
|
|
sum(download_num) as downloadNum,DATE_FORMAT(create_time,'%Y-%m-%d') as createTime |
|
|
from img_creator_profit |
|
|
from img_creator_profit |
|
|
where creator_id = #{creatorId} and status = '0' and is_show = '1' and type = '0' |
|
|
where creator_id = #{creatorId} and status = '0' and is_show = '1' and type = '0' |
|
|
group by create_time |
|
|
group by DATE_FORMAT(create_time,'%Y-%m-%d') |
|
|
</select> |
|
|
</select> |
|
|
<select id="queryFrontPreProfit" resultType="com.bnyer.img.vo.CreatorProfitPreVo"> |
|
|
<select id="queryFrontPreProfit" resultType="com.bnyer.img.vo.CreatorProfitPreVo"> |
|
|
select |
|
|
select |
|
|
@ -103,10 +103,10 @@ |
|
|
|
|
|
|
|
|
<select id="queryFrontPreInviteCount" resultType="com.bnyer.img.vo.CreatorProfitInviteCountVo"> |
|
|
<select id="queryFrontPreInviteCount" resultType="com.bnyer.img.vo.CreatorProfitInviteCountVo"> |
|
|
select |
|
|
select |
|
|
sum(download_num) as inviteDownloadNum,create_time as createTime |
|
|
sum(download_num) as inviteDownloadNum,DATE_FORMAT(create_time,'%Y-%m-%d') as createTime |
|
|
from img_creator_profit |
|
|
from img_creator_profit |
|
|
where creator_id = #{creatorId} and status = '0' and is_show = '1' and type = '1' |
|
|
where creator_id = #{creatorId} and status = '0' and is_show = '1' and type = '1' |
|
|
group by create_time |
|
|
group by DATE_FORMAT(create_time,'%Y-%m-%d') |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
<select id="queryFrontInOrEndAdAmt" resultType="java.math.BigDecimal"> |
|
|
<select id="queryFrontInOrEndAdAmt" resultType="java.math.BigDecimal"> |
|
|
@ -255,4 +255,15 @@ |
|
|
where creator_id = #{creatorId} and type = '1' |
|
|
where creator_id = #{creatorId} and type = '1' |
|
|
and date_format(create_time,'%Y-%m-%d') = (select date_sub(curdate(), interval 1 day) from dual) |
|
|
and date_format(create_time,'%Y-%m-%d') = (select date_sub(curdate(), interval 1 day) from dual) |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
|
<select id="queryFrontEndAmtDetails" resultType="com.bnyer.img.vo.CreatorProfitEndAmtVo"> |
|
|
|
|
|
select |
|
|
|
|
|
icp.id as id,icp.order_no as orderNo,icp.creator_id as creatorId,icp.scan_code as scanCode, |
|
|
|
|
|
icp.img_id as imgId,icp.profit as profit,icp.platform as platform,icp.app_type as appType, |
|
|
|
|
|
iti.img_url as url, |
|
|
|
|
|
icp.type as type,icp.status as status, icp.wallet_time as walletTime |
|
|
|
|
|
from img_creator_profit icp |
|
|
|
|
|
left join img_tiktok_img iti on iti.id = icp.img_id |
|
|
|
|
|
where icp.is_show = '1' and icp.id = #{id} and icp.status = '2' |
|
|
|
|
|
</select> |
|
|
</mapper> |
|
|
</mapper> |
|
|
|