gao
2020-05-25 caef53a16aff2baadad1c5f49e80a915ba97f674
src/main/java/com/xcong/excoin/configurations/interceptor/MybatisInterceptor.java
@@ -79,8 +79,9 @@
        if (o instanceof BaseEntity) {
            BaseEntity baseEntity = (BaseEntity) o;
            if (member != null) {
                baseEntity.setCreateBy(member.getUsername());
                baseEntity.setUpdateBy(member.getUsername());
                String by = member.getPhone() != null ? member.getPhone() : member.getEmail();
                baseEntity.setCreateBy(by);
                baseEntity.setUpdateBy(by);
            } else {
                baseEntity.setCreateBy(AppContants.SYSTEM_USER);
                baseEntity.setUpdateBy(AppContants.SYSTEM_USER);
@@ -95,7 +96,8 @@
        if (o instanceof BaseEntity) {
            BaseEntity baseEntity = (BaseEntity) o;
            if (member != null) {
                baseEntity.setUpdateBy(member.getUsername());
                String by = member.getPhone() != null ? member.getPhone() : member.getEmail();
                baseEntity.setUpdateBy(by);
            } else {
                baseEntity.setUpdateBy(AppContants.SYSTEM_USER);
            }