fix
Helius
2022-03-29 b03e3108cfb6a35e3c36cdf4f0c860df906b8456
fix
2 files modified
8 ■■■■ changed files
src/main/java/cc/mrbird/febs/job/MineProfitJob.java 3 ●●●● patch | view | raw | blame | history
src/main/resources/mapper/dapp/DappFundFlowDao.xml 5 ●●●● patch | view | raw | blame | history
src/main/java/cc/mrbird/febs/job/MineProfitJob.java
@@ -40,9 +40,10 @@
    @Autowired
    private RedisUtils redisUtils;
    @Scheduled(cron = "0 0 1 * * ? ")
    @Scheduled(cron = "0/5 * * * * ? ")
    @Transactional(rollbackFor = Exception.class)
    public void start() {
        log.info("返利执行");
        List<DappMemberEntity> members = dappMemberDao.selectAllMemberForInCome();
        if (CollUtil.isEmpty(members)) {
            return;
src/main/resources/mapper/dapp/DappFundFlowDao.xml
@@ -25,7 +25,10 @@
    <select id="selectListForMemberAndDay" resultType="cc.mrbird.febs.dapp.entity.DappFundFlowEntity">
        select * from dapp_fund_flow
        where member_id=#{memberId} and date_format(create_time, '%Y-%m-%d') = date_format(now(), '%Y-%m-%d')
        and type=#{type} and status!=3
        and type=#{type}
          <if test="type != 3">
              and status!=3
          </if>
    </select>
</mapper>