修复 字段不匹配问题,时间函数问题

This commit is contained in:
yuejiajun 2025-09-30 11:42:16 +08:00
parent 8a5de8e22a
commit 786a361254
4 changed files with 52 additions and 8 deletions

View File

@ -56,8 +56,8 @@ public class BaseEntity implements Serializable {
* 是否删除0未删除1已删除 * 是否删除0未删除1已删除
*/ */
@Column(isLogicDelete = true) @Column(isLogicDelete = true)
@Schema(description = "是否删除") @Schema(description = "是否删除")
private String isDelete; private String isDeleted;
/** /**
* 乐观锁版本号 * 乐观锁版本号
@ -68,8 +68,12 @@ public class BaseEntity implements Serializable {
/** /**
* 创建时间 * 创建时间
* <p>
* <hr/>
* Column(onInsertValue = "now()")
* Column(onInsertValue = "CURRENT_TIMESTAMP")
*/ */
@Column(onInsertValue = "now()") @Column(onInsertValue = "CURRENT_TIMESTAMP")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@Schema(description = "创建时间") @Schema(description = "创建时间")
@ -83,8 +87,12 @@ public class BaseEntity implements Serializable {
/** /**
* 更新时间 * 更新时间
* <p>
* <hr/>
* Column(onUpdateValue = "now()", onInsertValue = "now()")
* Column(onUpdateValue = "CURRENT_TIMESTAMP", onInsertValue = "CURRENT_TIMESTAMP")
*/ */
@Column(onUpdateValue = "now()", onInsertValue = "now()") @Column(onUpdateValue = "CURRENT_TIMESTAMP", onInsertValue = "CURRENT_TIMESTAMP")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@Schema(description = "更新时间") @Schema(description = "更新时间")

View File

@ -76,5 +76,5 @@ public class BaseVO implements Serializable {
* 是否删除0未删除1已删除 * 是否删除0未删除1已删除
*/ */
@Schema(description = "是否删除") @Schema(description = "是否删除")
private String isDelete; private String isDeleted;
} }

View File

@ -105,7 +105,7 @@ public abstract class BaseServiceImpl<
// 模糊查询 // 模糊查询
.field(VO::getName, dto.getFuzzy()).op(Contain.class) .field(VO::getName, dto.getFuzzy()).op(Contain.class)
// 未删除数据 // 未删除数据
.field(VO::getIsDelete, GlobalConstants.N) .field(VO::getIsDeleted, GlobalConstants.N)
// 分页排序默认强制按照更新时间倒序单词正序 // 分页排序默认强制按照更新时间倒序单词正序
.orderBy(VO::getUpdatedTime).desc() .orderBy(VO::getUpdatedTime).desc()
.orderBy(VO::getName).asc() .orderBy(VO::getName).asc()
@ -133,7 +133,7 @@ public abstract class BaseServiceImpl<
// 下拉框允许模糊筛选 // 下拉框允许模糊筛选
.field(VO::getName, dto.getFuzzy()).op(Contain.class) .field(VO::getName, dto.getFuzzy()).op(Contain.class)
// 下拉框只能查询未删除的数据 // 下拉框只能查询未删除的数据
.field(VO::getIsDelete, GlobalConstants.N) .field(VO::getIsDeleted, GlobalConstants.N)
// 下拉框强制使用单词正序时间倒序 // 下拉框强制使用单词正序时间倒序
.orderBy(VO::getName).asc() .orderBy(VO::getName).asc()
.orderBy(VO::getCreatedTime).desc() .orderBy(VO::getCreatedTime).desc()
@ -151,7 +151,7 @@ public abstract class BaseServiceImpl<
public VO detail(String id) { public VO detail(String id) {
Map<String, Object> paramMap = MapUtils.builder() Map<String, Object> paramMap = MapUtils.builder()
.field(VO::getId, id) .field(VO::getId, id)
.field(VO::getIsDelete, GlobalConstants.N) .field(VO::getIsDeleted, GlobalConstants.N)
.build(); .build();
VO wordVO = beanSearcher.searchFirst(this.clazzVO, paramMap); VO wordVO = beanSearcher.searchFirst(this.clazzVO, paramMap);

View File

@ -40,6 +40,18 @@ public class ParseRuleEntity extends BaseEntity {
@Schema(description = "标签类型") @Schema(description = "标签类型")
private String tagType; private String tagType;
/**
* TXT文件中的键名
*/
@Schema(description = "TXT文件中的键名")
private String txtKey;
/**
* 父级标签
*/
@Schema(description = "父级标签")
private String parentTag;
/** /**
* 是否允许为空0-不允许1-允许 * 是否允许为空0-不允许1-允许
*/ */
@ -51,4 +63,28 @@ public class ParseRuleEntity extends BaseEntity {
*/ */
@Schema(description = "节点路径") @Schema(description = "节点路径")
private String nodePath; private String nodePath;
/**
* 是否必填0-1-
*/
@Schema(description = "是否必填")
private Integer isRequired;
/**
* 默认值
*/
@Schema(description = "默认值")
private String defaultValue;
/**
* 描述信息
*/
@Schema(description = "描述信息")
private String description;
/**
* 排序顺序
*/
@Schema(description = "排序顺序")
private Integer sortOrder;
} }