This commit is contained in:
dute7liang
2024-01-19 21:07:46 +08:00
parent 890304a88e
commit e280d631d6
6 changed files with 62 additions and 9 deletions

View File

@@ -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());