xiaoyong931011
2021-03-11 699d88f5e4b4b8a00a023013fa543a86dae3cd74
20210311 审核时跟新一个审核时间字段
2 files modified
6 ■■■■■ changed files
src/main/java/com/xcong/excoin/modules/documentary/entity/FollowTraderInfoEntity.java 4 ●●●● patch | view | raw | blame | history
src/main/java/com/xcong/excoin/modules/documentary/service/impl/DocumentaryServiceImpl.java 2 ●●●●● patch | view | raw | blame | history
src/main/java/com/xcong/excoin/modules/documentary/entity/FollowTraderInfoEntity.java
@@ -1,9 +1,11 @@
package com.xcong.excoin.modules.documentary.entity;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.xcong.excoin.common.entity.BaseEntity;
import lombok.Data;
@@ -19,6 +21,8 @@
     */
    private static final long serialVersionUID = 1L;
    
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date entryTime;
     /**
     * 会员ID
     */
src/main/java/com/xcong/excoin/modules/documentary/service/impl/DocumentaryServiceImpl.java
@@ -158,6 +158,7 @@
            memberMapper.updateById(memberEntity);
            //更新【交易员信息表】数据
            selectById.setProfitRatio(profitRatio);
            selectById.setEntryTime(new Date());
            selectById.setVerifyStatus(FollowTraderInfoEntity.VERIFYSTATUS_Y);
            followTraderInfoMapper.updateById(selectById);
            //新增【交易员收益信息 】数据
@@ -180,6 +181,7 @@
            redisUtils.set("app_" + token, JSONObject.toJSONString(memberEntity), 36000);
        }else {
            //更新【交易员信息表】数据
            selectById.setEntryTime(new Date());
            selectById.setVerifyStatus(FollowTraderInfoEntity.VERIFYSTATUS_N);
            followTraderInfoMapper.updateById(selectById);
        }