init
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package com.ruoyi.cai.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.ruoyi.cai.enums.account.AccountChangeCodeEnum;
|
||||
@@ -47,7 +48,6 @@ public class AccountChangeLog implements Serializable {
|
||||
* 名称
|
||||
*/
|
||||
private String cateAdminName;
|
||||
private String cateAppName;
|
||||
private Long traceId;
|
||||
private String traceLinkType;
|
||||
/**
|
||||
@@ -70,11 +70,13 @@ public class AccountChangeLog implements Serializable {
|
||||
|
||||
private LocalDateTime createTime;
|
||||
|
||||
@TableField(exist = false)
|
||||
private String showMessage;
|
||||
|
||||
|
||||
public void init(AccountChangeCodeEnum change){
|
||||
this.setAccountType(change.getAccountType().getCode());
|
||||
this.setCateId(change.getCate().getCode());
|
||||
this.setCateAppName(change.getText());
|
||||
this.setCateAdminName(change.getText());
|
||||
this.setTraceLinkType(change.getCate().name());
|
||||
this.setRemark(change.getDesc());
|
||||
|
||||
Reference in New Issue
Block a user