Helius
2020-07-13 1567adaf3f1fbe265b933081281c0d568786b3b2
modify
4 files modified
25 ■■■■ changed files
src/main/resources/application-dev.yml 4 ●●●● patch | view | raw | blame | history
src/main/resources/mapper/modules/MemberMapper.xml 12 ●●●● patch | view | raw | blame | history
src/main/resources/templates/febs/views/modules/agent/member.html 3 ●●●●● patch | view | raw | blame | history
src/main/resources/templates/febs/views/modules/contract/assets-list.html 6 ●●●● patch | view | raw | blame | history
src/main/resources/application-dev.yml
@@ -19,6 +19,10 @@
          password: 123456
          driver-class-name: com.mysql.cj.jdbc.Driver
          url: jdbc:mysql://120.27.238.55:3306/kss_framework?useUnicode=true&characterEncoding=UTF-8&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2b8
#          username: ctcoin_data
#          password: ctcoin_123
#          driver-class-name: com.mysql.cj.jdbc.Driver
#          url: jdbc:mysql://rm-bp151tw8er79ig9kb5o.mysql.rds.aliyuncs.com:3306/db_biue?useUnicode=true&characterEncoding=UTF-8&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2b8
  redis:
    # Redis数据库索引(默认为 0)
src/main/resources/mapper/modules/MemberMapper.xml
@@ -4,7 +4,15 @@
    <select id="selectMemberListInPage" resultType="com.xcong.excoin.modules.agent.entity.MemberEntity">
        select * from member
        select
            a.*,
            b.total_balance contractTotal,
            c.available_balance coinTotal,
            d.total_balance agentTotal
        from member a
        left join member_wallet_contract b on a.id=b.member_id
        left join member_wallet_coin c on a.id=c.member_id and c.wallet_code='USDT'
        left join member_wallet_agent d on a.id=d.member_id
        <where>
            <if test="record != null">
                <if test="record.inviteId !=null and record.inviteId!=''">
@@ -79,7 +87,7 @@
            a.invite_id,
            a.referer_id,
            b.total_balance contractTotal,
            c.total_balance coinTotal,
            c.available_balance coinTotal,
            d.total_balance agentTotal
        from member a
        left join member_wallet_contract b on a.id=b.member_id
src/main/resources/templates/febs/views/modules/agent/member.html
@@ -283,6 +283,9 @@
                    {field: 'email', title: '邮箱', minWidth: 200},
                    {field: 'inviteId', title: '邀请码'},
                    {field: 'refererId', title: '上级邀请码'},
                    {field: 'contractTotal', title: '合约资产', minWidth: 120},
                    {field: 'coinTotal', title: '币币资产', minWidth: 120},
                    {field: 'agentTotal', title: '佣金资产', minWidth: 120},
                    {title: '账号类型', templet: '#account-type'},
                    {title: '账号状态', templet: '#account-status'},
                    {title: '审核状态', templet: '#certify-status'},
src/main/resources/templates/febs/views/modules/contract/assets-list.html
@@ -100,9 +100,9 @@
                    {field: 'refererId', title: '上级UID', minWidth: 100, align: 'center'},
                    {field: 'phone', title: '联系方式', minWidth: 130, align: 'center'},
                    {field: 'email', title: '邮箱', minWidth: 100, align: 'center'},
                    {field: 'contractTotal', title: '开仓手续费', minWidth: 140, align: 'center'},
                    {field: 'coinTotal', title: '平仓手续费', minWidth: 140, align: 'center'},
                    {field: 'agentTotal', title: '持仓手续费', minWidth: 140, align: 'center'}
                    {field: 'contractTotal', title: '合约资产', minWidth: 140, align: 'center'},
                    {field: 'coinTotal', title: '币币资产', minWidth: 140, align: 'center'},
                    {field: 'agentTotal', title: '佣金资产', minWidth: 140, align: 'center'}
                ]]
            });
        }