| | |
| | | @Resource |
| | | private ComActAcidRecordDao comActAcidRecordDao; |
| | | |
| | | @Scheduled(cron = "0 0 9 * * *") |
| | | public void push(){ |
| | | List<ComActAcidMemberVO> comActAcidMemberList=comActAcidMemberDao.selectPushList(""); |
| | | comActAcidMemberList.forEach(comActAcidMember -> { |
| | | FiveCount fiveCount=comActAcidRecordDao.pushStatics(DateUtils.getDateFormatString(DateUtils.addDay(new Date(),-1),"yyyy-MM-dd"),comActAcidMember.getRelationName()); |
| | | WxXCXTempSend util = new WxXCXTempSend(); |
| | | String accessToken = null; |
| | | try { |
| | | accessToken = util.getAccessToken(); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | } |
| | | WxUtil.sendSubscribeStatics(comActAcidMember.getOpenid(), accessToken, fiveCount, "Yr5idSziLRiRo0t07mcz284sMm41Kr2KsA5UmSc0jWU"); |
| | | }); |
| | | } |
| | | // @Scheduled(cron = "0 0 9 * * *") |
| | | // public void push(){ |
| | | // List<ComActAcidMemberVO> comActAcidMemberList=comActAcidMemberDao.selectPushList(""); |
| | | // comActAcidMemberList.forEach(comActAcidMember -> { |
| | | // FiveCount fiveCount=comActAcidRecordDao.pushStatics(DateUtils.getDateFormatString(DateUtils.addDay(new Date(),-1),"yyyy-MM-dd"),comActAcidMember.getRelationName()); |
| | | // WxXCXTempSend util = new WxXCXTempSend(); |
| | | // String accessToken = null; |
| | | // try { |
| | | // accessToken = util.getAccessToken(); |
| | | // } catch (Exception e) { |
| | | // e.printStackTrace(); |
| | | // } |
| | | // WxUtil.sendSubscribeStatics(comActAcidMember.getOpenid(), accessToken, fiveCount, "Yr5idSziLRiRo0t07mcz284sMm41Kr2KsA5UmSc0jWU"); |
| | | // }); |
| | | // } |
| | | } |