From 24a8d17e007545f7426c48352109aa1a9c6587ee Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期三, 06 五月 2020 12:02:09 +0800 Subject: [PATCH] IOS上线隐藏我的界面的banner与超级会员升级信息 --- fanli/src/main/java/com/yeshi/fanli/job/order/OrderTeamDividentsJob.java | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/job/order/OrderTeamDividentsJob.java b/fanli/src/main/java/com/yeshi/fanli/job/order/OrderTeamDividentsJob.java index 6b60b67..8bc02bb 100644 --- a/fanli/src/main/java/com/yeshi/fanli/job/order/OrderTeamDividentsJob.java +++ b/fanli/src/main/java/com/yeshi/fanli/job/order/OrderTeamDividentsJob.java @@ -13,7 +13,7 @@ import com.yeshi.fanli.dto.mq.UidDateDTO; import com.yeshi.fanli.entity.money.TeamEincomeRecord; import com.yeshi.fanli.service.inter.money.TeamEincomeRecordService; -import com.yeshi.fanli.service.inter.order.dividents.TeamDividentsSourceOrderService; +import com.yeshi.fanli.service.inter.order.dividents.TeamDividentsSourceOrderUserMapService; import com.yeshi.fanli.service.inter.order.dividents.TeamDividentsSourceUserService; import com.yeshi.fanli.service.manger.money.TeamEincomeManager; import com.yeshi.fanli.service.manger.order.TeamDividentsManager; @@ -28,8 +28,9 @@ @Resource private TeamDividentsManager teamDividentsManager; + @Resource - private TeamDividentsSourceOrderService teamDividentsSourceOrderService; + private TeamDividentsSourceOrderUserMapService teamDividentsSourceOrderUserMapService; @Resource private TeamDividentsSourceUserService teamDividentsSourceUserService; @@ -54,11 +55,12 @@ Date preSendTime = new Date(TimeUtil.convertToTimeTemp(day, "yyyy-MM-dd")); - long count = teamDividentsSourceOrderService.countCanSendUidByPreSendTime(preSendTime); + long count = teamDividentsSourceOrderUserMapService.countCanSendSourceUidByPreSendTime(preSendTime); int pageSize = 500; int totalPage = (int) (count % pageSize == 0 ? count / pageSize : count / pageSize + 1); for (int i = 0; i < totalPage; i++) { - List<Long> list = teamDividentsSourceOrderService.listCanSendUidByPreSendTime(preSendTime, i + 1, pageSize); + List<Long> list = teamDividentsSourceOrderUserMapService.listCanSendSourceUidByPreSendTime(preSendTime, + i + 1, pageSize); for (Long uid : list) { teamDividentsManager.startDividents(uid, preSendTime); } @@ -104,7 +106,7 @@ int pageSize = 500; int totalPage = (int) (count % pageSize == 0 ? count / pageSize : count / pageSize + 1); for (int i = 0; i < totalPage; i++) { - List<Long> list = teamEincomeRecordService.listCanRecieveUid(preSendTime, typeList, i +1, pageSize); + List<Long> list = teamEincomeRecordService.listCanRecieveUid(preSendTime, typeList, i + 1, pageSize); for (Long uid : list) { TeamOrderCMQManager.getInstance().addTeamDividentsMsg(new UidDateDTO(uid, preSendTime)); } -- Gitblit v1.8.0