调整
This commit is contained in:
parent
03d7f90b9d
commit
e76ba43dab
@ -1,5 +1,6 @@
|
|||||||
package com.example.demo.common.domain;
|
package com.example.demo.common.domain;
|
||||||
|
|
||||||
|
import com.mybatisflex.annotation.Column;
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import lombok.*;
|
import lombok.*;
|
||||||
import lombok.experimental.SuperBuilder;
|
import lombok.experimental.SuperBuilder;
|
||||||
@ -33,26 +34,59 @@ public class BaseDTO implements Serializable {
|
|||||||
private String id;
|
private String id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建时间
|
* 命名空间
|
||||||
*/
|
*/
|
||||||
@Schema(description = "创建时间")
|
@Schema(description = "命名空间")
|
||||||
private Date createdTime;
|
private String nameSpace;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建人ID
|
* 排序字段
|
||||||
*/
|
*/
|
||||||
@Schema(description = "创建人ID")
|
@Schema(description = "排序字段")
|
||||||
private String createdId;
|
private String sortName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新时间
|
* 是否删除(0:未删除,1:已删除)
|
||||||
*/
|
*/
|
||||||
@Schema(description = "更新时间")
|
@Column(isLogicDelete = true)
|
||||||
private Date updatedTime;
|
@Schema(description = "是否删除")
|
||||||
|
private String isDelete;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新人ID
|
* 乐观锁版本号
|
||||||
*/
|
*/
|
||||||
@Schema(description = "更新人ID")
|
@Column(version = true)
|
||||||
private String updatedId;
|
@Schema(description = "乐观锁版本号")
|
||||||
|
private Integer revision;
|
||||||
|
|
||||||
|
// 创建时间、创建ID、更新时间、更新ID,不允许前端或API直接控制
|
||||||
|
// /**
|
||||||
|
// * 创建时间
|
||||||
|
// */
|
||||||
|
// @Schema(description = "创建时间")
|
||||||
|
// private Date createdTime;
|
||||||
|
//
|
||||||
|
// /**
|
||||||
|
// * 创建人ID
|
||||||
|
// */
|
||||||
|
// @Schema(description = "创建人ID")
|
||||||
|
// private String createdId;
|
||||||
|
//
|
||||||
|
// /**
|
||||||
|
// * 更新时间
|
||||||
|
// */
|
||||||
|
// @Schema(description = "更新时间")
|
||||||
|
// private Date updatedTime;
|
||||||
|
//
|
||||||
|
// /**
|
||||||
|
// * 更新人ID
|
||||||
|
// */
|
||||||
|
// @Schema(description = "更新人ID")
|
||||||
|
// private String updatedId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 租户ID
|
||||||
|
*/
|
||||||
|
@Schema(description = "租户ID")
|
||||||
|
private String tenantId;
|
||||||
}
|
}
|
@ -65,6 +65,8 @@ public class MapperRuleController {
|
|||||||
@PutMapping("/{ruleId}")
|
@PutMapping("/{ruleId}")
|
||||||
@Operation(summary = "更新映射规则", description = "更新指定的映射规则")
|
@Operation(summary = "更新映射规则", description = "更新指定的映射规则")
|
||||||
public Wrapper<MapperRuleVO> updateRule(
|
public Wrapper<MapperRuleVO> updateRule(
|
||||||
|
@Parameter(description = "规则ID", required = true)
|
||||||
|
@PathVariable String ruleId,
|
||||||
@Parameter(description = "映射规则数据", required = true)
|
@Parameter(description = "映射规则数据", required = true)
|
||||||
@RequestBody MapperRuleDTO rule) {
|
@RequestBody MapperRuleDTO rule) {
|
||||||
try {
|
try {
|
||||||
|
@ -65,6 +65,8 @@ public class ParseRuleController {
|
|||||||
@PutMapping("/{ruleId}")
|
@PutMapping("/{ruleId}")
|
||||||
@Operation(summary = "更新解析规则", description = "更新指定的解析规则")
|
@Operation(summary = "更新解析规则", description = "更新指定的解析规则")
|
||||||
public Wrapper<ParseRuleVO> updateRule(
|
public Wrapper<ParseRuleVO> updateRule(
|
||||||
|
@Parameter(description = "规则ID", required = true)
|
||||||
|
@PathVariable String ruleId,
|
||||||
@Parameter(description = "解析规则数据", required = true)
|
@Parameter(description = "解析规则数据", required = true)
|
||||||
@RequestBody ParseRuleDTO rule) {
|
@RequestBody ParseRuleDTO rule) {
|
||||||
try {
|
try {
|
||||||
|
@ -27,6 +27,12 @@ public class FileRecordServiceImpl
|
|||||||
extends BaseServiceImpl<FileRecordEntity, FileRecordVO, FileRecordDTO, FileRecordQueryDTO, FileRecordMapper>
|
extends BaseServiceImpl<FileRecordEntity, FileRecordVO, FileRecordDTO, FileRecordQueryDTO, FileRecordMapper>
|
||||||
implements FileRecordService {
|
implements FileRecordService {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 构造函数
|
||||||
|
*
|
||||||
|
* @param beanSearcher BeanSearcher实例,用于高级查询
|
||||||
|
* @param transService 翻译服务实例,用于字段翻译
|
||||||
|
*/
|
||||||
public FileRecordServiceImpl(
|
public FileRecordServiceImpl(
|
||||||
BeanSearcher beanSearcher,
|
BeanSearcher beanSearcher,
|
||||||
TransService transService
|
TransService transService
|
||||||
|
Loading…
x
Reference in New Issue
Block a user