| | |
| | | List<DappMemberEntity> selectTotalAmount(); |
| | | |
| | | void addTotalAndaddAvailableByMemberId(@Param("memberId")Long id, @Param("balance")BigDecimal multiply); |
| | | |
| | | List<DappMemberEntity> selectByIdentity(); |
| | | } |
| | |
| | | Log.info("更新用户代理等级"); |
| | | DateTime date = DateUtil.date(); |
| | | //查询账户总金额大于51的有效用户 |
| | | List<DappMemberEntity> dappMemberEntities = dappWalletCoinDao.selectTotalAmount(); |
| | | List<DappMemberEntity> dappMemberEntities = dappWalletCoinDao.selectByIdentity(); |
| | | // List<DappMemberEntity> dappMemberEntities = dappWalletCoinDao.selectTotalAmount(); |
| | | if(CollUtil.isEmpty(dappMemberEntities)){ |
| | | //没有账户金额大于51,则全部为会员 |
| | | dappMemberDao.updateIdentity(); |
| | |
| | | dapp_wallet_coin a |
| | | inner join dapp_member b on a.member_id = b.id |
| | | where a.total_amount <![CDATA[ >= ]]> 51 |
| | | and b.identity != 'LEVEL_TM' |
| | | and b.identity != 'LEVEL_TM' |
| | | </select> |
| | | |
| | | <update id="addTotalAndaddAvailableByMemberId"> |
| | |
| | | where |
| | | member_id = #{memberId} |
| | | </update> |
| | | |
| | | <select id="selectByIdentity" resultType="cc.mrbird.febs.dapp.entity.DappMemberEntity"> |
| | | select |
| | | b.id, |
| | | b.invite_id, |
| | | b.referer_id, |
| | | b.identity, |
| | | b.referer_ids |
| | | from |
| | | dapp_wallet_coin a |
| | | inner join dapp_member b on a.member_id = b.id |
| | | where b.identity != 'LEVEL_TM' |
| | | </select> |
| | | </mapper> |
| | |
| | | Log.info("更新用户代理等级"); |
| | | DateTime date = DateUtil.date(); |
| | | //查询账户总金额大于51的有效用户 |
| | | List<DappMemberEntity> dappMemberEntities = dappWalletCoinDao.selectTotalAmount(); |
| | | List<DappMemberEntity> dappMemberEntities = dappWalletCoinDao.selectByIdentity(); |
| | | // List<DappMemberEntity> dappMemberEntities = dappWalletCoinDao.selectTotalAmount(); |
| | | if(CollUtil.isEmpty(dappMemberEntities)){ |
| | | //没有账户金额大于51,则全部为会员 |
| | | dappMemberDao.updateIdentity(); |