| | |
| | | |
| | | Integer selectByMemberIdAndCreateTime(@Param("memberId")Long memberIdOut, @Param("createTime")String createTime, @Param("type")String type); |
| | | |
| | | List<MemberCoinWithdrawEntity> selectListByDate(@Param("date")Date date); |
| | | List<MemberCoinWithdrawEntity> selectListByDate(@Param("memberId")Long memberIdOut,@Param("date")Date date); |
| | | } |
| | |
| | | public void withdraw(WithdrawDto withdrawDto) { |
| | | DappMemberEntity member = LoginUserUtil.getAppUser(); |
| | | |
| | | List<MemberCoinWithdrawEntity> memberCoinWithdrawEntities = memberCoinWithdrawDao.selectListByDate(new Date()); |
| | | List<MemberCoinWithdrawEntity> memberCoinWithdrawEntities = memberCoinWithdrawDao.selectListByDate(member.getId(),new Date()); |
| | | if(CollUtil.isNotEmpty(memberCoinWithdrawEntities)){ |
| | | throw new FebsException("今日已提现"); |
| | | } |
| | |
| | | from |
| | | member_coin_withdraw |
| | | where date_format(create_time, '%Y-%m-%d') = date_format(#{date}, '%Y-%m-%d') |
| | | and member_id = #{memberId} |
| | | </select> |
| | | |
| | | </mapper> |