KKSU
2024-04-18 bcb00e8735f149cc5c5b37a2311cc0a7ceb4a18b
src/main/resources/mapper/dapp/DappFundFlowDao.xml
@@ -100,17 +100,30 @@
        </if>
    </select>
    <select id="selectAmountTotalByTypeAndMemberIdAndDateAndState" resultType="cc.mrbird.febs.dapp.entity.DappFundFlowEntity">
        select
        *
        from
        dapp_fund_flow
        where
        member_id = #{memberId}
        and type = #{type}
          and status = #{status}
        <if test="date != null">
            and date_format(create_time, '%Y-%m-%d') = date_format(#{date}, '%Y-%m-%d');
        </if>
    </select>
    <select id="findMoneyFlowVos" resultType="cc.mrbird.febs.dapp.vo.MoneyFlowVo">
        select
            concat(left(a.from_hash,5), '******', right(a.from_hash,5)) address,
        a.amount amount,
        a.content content,
        a.type type,
        a.create_time createTime
        from dapp_fund_flow a
        where
            a.type in (2,3,6)
            a.type in (2,3,5,6,9)
                and a.member_id=#{record.memberId}
        order by a.create_time desc
    </select>