xiaoyong931011
2022-12-13 87cd3ee733c4658880de4ea4888d8414beb6dff4
20221213转币
3 files modified
12 ■■■■■ changed files
src/main/java/cc/mrbird/febs/dapp/contract/ContractMain.java 2 ●●● patch | view | raw | blame | history
src/main/java/cc/mrbird/febs/dapp/mapper/DappFundFlowDao.java 2 ●●● patch | view | raw | blame | history
src/main/resources/mapper/dapp/DappFundFlowDao.xml 8 ●●●●● patch | view | raw | blame | history
src/main/java/cc/mrbird/febs/dapp/contract/ContractMain.java
@@ -109,7 +109,7 @@
                //投注人是否加入
                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){
src/main/java/cc/mrbird/febs/dapp/mapper/DappFundFlowDao.java
@@ -37,5 +37,5 @@
    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);
}
src/main/resources/mapper/dapp/DappFundFlowDao.xml
@@ -120,10 +120,12 @@
          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>