| | |
| | | * 修改业绩的状态 |
| | | * 并生成一条提成流水 |
| | | */ |
| | | // @Scheduled(cron = "0 0 1 * * ?") |
| | | @Scheduled(cron = "1 * * * * ?") |
| | | @Scheduled(cron = "0 0 1 * * ?") |
| | | // @Scheduled(cron = "1 * * * * ?") |
| | | public void leaderAchieveAuto() { |
| | | log.info("团长每日提成"); |
| | | //获取每日提成总数 |
| | |
| | | * a.unique_code uniqueCode 团长特征码 |
| | | * , IFNULL(sum(a.amount),0) amount 每日提成总金额 |
| | | */ |
| | | // DateTime dateTime = DateUtil.offsetDay(new Date(), -1); |
| | | DateTime dateTime = DateUtil.offsetDay(new Date(), 0); |
| | | DateTime dateTime = DateUtil.offsetDay(new Date(), -1); |
| | | // DateTime dateTime = DateUtil.offsetDay(new Date(), 0); |
| | | List<Map<String, String>> allLeaderAchieve = mallLeaderAchieveMapper.selectListByStateAndCreateTimeAndUniqueCode(MallLeaderAchieve.STATE_ONE,dateTime); |
| | | if (CollUtil.isNotEmpty(allLeaderAchieve)) { |
| | | for (Map<String, String> map : allLeaderAchieve) { |