xiaoyong931011
2020-07-20 87381170a51999a7c2314ed9cca14060c3b540a8
20200720  代码提交
3 files modified
25 ■■■■■ changed files
src/main/java/com/xcong/excoin/modules/member/entity/MemberAccountMoneyChangeEntity.java 5 ●●●●● patch | view | raw | blame | history
src/main/java/com/xcong/excoin/modules/trademanage/service/impl/TradeManageServiceImpl.java 15 ●●●●● patch | view | raw | blame | history
src/main/resources/templates/febs/views/modules/trademanage/agentReturnInfosAlone.html 5 ●●●●● patch | view | raw | blame | history
src/main/java/com/xcong/excoin/modules/member/entity/MemberAccountMoneyChangeEntity.java
@@ -81,4 +81,9 @@
     */
    @TableField(exist = false)
    private String  allAmount;
    /**
     * 姓名
     */
    @TableField(exist = false)
    private String  realName;
}
src/main/java/com/xcong/excoin/modules/trademanage/service/impl/TradeManageServiceImpl.java
@@ -15,8 +15,10 @@
import com.xcong.excoin.common.utils.CoinTypeConvert;
import com.xcong.excoin.common.utils.RedisUtils;
import com.xcong.excoin.modules.member.entity.MemberAccountMoneyChangeEntity;
import com.xcong.excoin.modules.member.entity.MemberAuthenticationEntity;
import com.xcong.excoin.modules.member.entity.MemberEntity;
import com.xcong.excoin.modules.member.mapper.MemberAccountMoneyChangeMapper;
import com.xcong.excoin.modules.member.mapper.MemberAuthenticationMapper;
import com.xcong.excoin.modules.member.mapper.MemberMapper;
import com.xcong.excoin.modules.trademanage.entity.AgentReturnEntity;
import com.xcong.excoin.modules.trademanage.entity.ContractHoldOrderEntity;
@@ -45,6 +47,8 @@
    private final ContractOrderMapper contractHoldOrderMapper;
    
    private final AgentReturnMapper agentReturnMapper;
    private final MemberAuthenticationMapper memberAuthenticationMapper;
    
    private final RedisUtils redisUtils;
    
@@ -207,11 +211,22 @@
        Page<MemberAccountMoneyChangeEntity> page = new Page<>(request.getPageNum(), request.getPageSize());
        IPage<MemberAccountMoneyChangeEntity> findMemberAccountInfoListInPage = 
                memberAccountMoneyChangeMapper.findMemberAgentReturnInfoAloneInPage(page, memberAccountMoneyChangeEntity);
        List<MemberAccountMoneyChangeEntity> records = findMemberAccountInfoListInPage.getRecords();
        if(records != null && records.size() > 0) {
            for(MemberAccountMoneyChangeEntity accountMoneyChangeEntity : records) {
                Long memberId = accountMoneyChangeEntity.getMemberId();
                String allAmount = memberAccountMoneyChangeMapper.selectAccountMoneyChangeByMemberId(memberId);
                Map<String, Object> columnMap = new HashMap<>();
                columnMap.put("member_id", memberId);
                List<MemberAuthenticationEntity> selectByMap = memberAuthenticationMapper.selectByMap(columnMap );
                if(selectByMap != null && selectByMap.size() > 0) {
                    MemberAuthenticationEntity memberAuthenticationEntity = selectByMap.get(0);
                    String firstName = memberAuthenticationEntity.getFirstName();
                    String secondName = memberAuthenticationEntity.getSecondName();
                    String realName = firstName + secondName;
                    accountMoneyChangeEntity.setRealName(realName);
                }
                accountMoneyChangeEntity.setAllAmount(allAmount);
            }
        }
src/main/resources/templates/febs/views/modules/trademanage/agentReturnInfosAlone.html
@@ -73,10 +73,11 @@
                cols: [[
                    {field: 'phone', title: '手机号', minWidth: 100,align:'left',totalRowText: '合计'},
                    {field: 'email', title: '邮箱', minWidth: 200,align:'left'},
                    {field: 'realName', title: '姓名', minWidth: 200,align:'left'},
                    {field: 'inviteId', title: '邀请码UID', minWidth: 80,align:'center'},
                    {field: 'symbol', title: '币种', minWidth: 80,align:'center'},
                    {field: 'allAmount', title: '总佣金', minWidth: 80,align:'center',totalRow: true},
                    {field: 'amount', title: '本次金额', minWidth: 80,align:'center',totalRow: true},
                    {field: 'amount', title: '当天返佣', minWidth: 80,align:'center',totalRow: true},
                    {field: 'allAmount', title: '总返佣', minWidth: 80,align:'center',totalRow: true},
                    {field: 'content', title: '记录内容', minWidth: 80,align:'center'},
                    {field: 'createTime', title: '时间', minWidth: 80,align:'center'},
                    {field: 'status', title: '状态',