| | |
| | | //投注人是否加入 |
| | | DappSystemProfit dappSystemProfit = dappSystemProfitDao.selectByMemberIdAndState(dappMemberEntity.getId(), DappSystemProfit.STATE_IN); |
| | | if(ObjectUtil.isNotEmpty(dappSystemProfit)){ |
| | | List<DappFundFlowEntity> dappFundFlowEntities = dappFundFlowDao.selectListBySystemProfitIdAndState(dappSystemProfit.getId(),DappFundFlowEntity.WITHDRAW_STATUS_ING); |
| | | List<DappFundFlowEntity> dappFundFlowEntities = dappFundFlowDao.selectListByState(DappFundFlowEntity.WITHDRAW_STATUS_ING); |
| | | if(CollUtil.isNotEmpty(dappFundFlowEntities)){ |
| | | for(DappFundFlowEntity dappFundFlowEntity : dappFundFlowEntities){ |
| | | |
| | |
| | | |
| | | DappFundFlowEntity selectBymemberIdAndType(@Param("memberId")Long id, @Param("type")int type); |
| | | |
| | | List<DappFundFlowEntity> selectListBySystemProfitIdAndState(@Param("systemProfitId")Long id, @Param("status")int status); |
| | | List<DappFundFlowEntity> selectListByState(@Param("status")int status); |
| | | } |
| | |
| | | and type = #{type} |
| | | </select> |
| | | |
| | | <select id="selectListBySystemProfitIdAndState" resultType="cc.mrbird.febs.dapp.entity.DappFundFlowEntity"> |
| | | <select id="selectListByState" resultType="cc.mrbird.febs.dapp.entity.DappFundFlowEntity"> |
| | | select * |
| | | from dapp_fund_flow |
| | | where system_profit_id = #{systemProfitId} |
| | | and status = #{status} |
| | | where status = #{status} |
| | | and version = 1 |
| | | and type != 1 |
| | | and type != 6 |
| | | </select> |
| | | </mapper> |