| | |
| | | package com.yeshi.fanli.job.order; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import com.xxl.job.core.biz.model.ReturnT; |
| | | import com.xxl.job.core.handler.annotation.XxlJob; |
| | | import com.yeshi.fanli.dto.mq.UidDateDTO; |
| | |
| | | import com.yeshi.fanli.service.manger.money.TeamEincomeManager; |
| | | import com.yeshi.fanli.service.manger.order.TeamDividentsManager; |
| | | import com.yeshi.fanli.util.StringUtil; |
| | | import org.yeshi.utils.TimeUtil; |
| | | import com.yeshi.fanli.util.mq.cmq.order.TeamOrderCMQManager; |
| | | import org.springframework.stereotype.Component; |
| | | import org.yeshi.utils.TimeUtil; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | //订单团队分红 |
| | | @Component |
| | |
| | | |
| | | @Resource |
| | | private TeamEincomeRecordService teamEincomeRecordService; |
| | | |
| | | |
| | | @Resource |
| | | private TeamOrderCMQManager teamOrderCMQManager; |
| | | |
| | | public OrderTeamDividentsJob() { |
| | | |
| | |
| | | } |
| | | |
| | | for (Long uid : targetUidList) |
| | | TeamOrderCMQManager.getInstance().addTeamDividentsPreMsg(new UidDateDTO(uid, preSendTime)); |
| | | teamOrderCMQManager.addTeamDividentsPreMsg(new UidDateDTO(uid, preSendTime)); |
| | | } |
| | | |
| | | @XxlJob("addTeamDividentsTOUserAccountHandler") |
| | |
| | | for (int i = 0; i < totalPage; i++) { |
| | | List<Long> list = teamEincomeRecordService.listCanRecieveUid(preSendTime, typeList, i + 1, pageSize); |
| | | for (Long uid : list) { |
| | | TeamOrderCMQManager.getInstance().addTeamDividentsMsg(new UidDateDTO(uid, preSendTime)); |
| | | teamOrderCMQManager.addTeamDividentsMsg(new UidDateDTO(uid, preSendTime)); |
| | | } |
| | | } |
| | | if (count <= 0) { |