GenTable增加remark属性

This commit is contained in:
dataprince 2023-09-16 11:26:19 +08:00
parent 4edd8fa101
commit 7e1b977b0c
4 changed files with 21 additions and 9 deletions

Binary file not shown.

View File

@ -116,7 +116,7 @@ management:
logfile:
external-file: ./logs/ruoyi-monitor.log
--- # 监控中心配置
--- # 监控中心客户端配置
spring.boot.admin.client:
# 增加客户端开关
enabled: true

View File

@ -11,14 +11,15 @@ import com.mybatisflex.core.datasource.DataSourceProperty;
public class Decipher implements DataSourceDecipher {
@Override
public String decrypt(DataSourceProperty property, String value) {
//解密用户名通过编码支持任意加密方式的解密
if (property == DataSourceProperty.USERNAME) {
return value.substring(0, 4);
//解密数据源URL用户名密码通过编码支持任意加密方式的解密
String result = "";
switch (property) {
case URL -> result = value;
case USERNAME -> result = value.substring(0, 4);
case PASSWORD -> result = value.substring(0, 8);
}
//解密密码
else if (property == DataSourceProperty.PASSWORD) {
return value.substring(0, 8);
}
return value;
return result;
}
}

View File

@ -97,6 +97,9 @@ public class GenTable extends BaseEntity
/** 上级菜单名称字段 */
private String parentMenuName;
/** 备注 */
private String remark;
public Long getTableId()
{
return tableId;
@ -371,4 +374,12 @@ public class GenTable extends BaseEntity
}
return StringUtils.equalsAnyIgnoreCase(javaField, GenConstants.BASE_ENTITY);
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
}