feat: 调整枚举表SQL为PostgreSQL格式

This commit is contained in:
2026-05-18 20:51:53 +08:00
parent 939590855b
commit 4419ede05f
4 changed files with 167 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
package com.bruce.common.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.util.Date;
@Data
@Schema(description = "实体公共基类")
public class BaseEntity {
@Schema(description = "主键ID")
@TableId(type = IdType.ASSIGN_ID)
private Long id;
@Schema(description = "创建者")
@TableField(value = "create_by")
private String createBy;
@Schema(description = "创建时间", example = "2026-05-18 20:00:00")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@TableField(value = "create_time")
private Date createTime;
@Schema(description = "更新者")
@TableField(value = "update_by")
private String updateBy;
@Schema(description = "更新时间", example = "2026-05-18 20:00:00")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@TableField(value = "update_time")
private Date updateTime;
}

View File

@@ -0,0 +1,39 @@
package com.bruce.common.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName("sys_setting")
@Schema(description = "系统枚举配置")
public class SysEnum extends BaseEntity {
@Schema(description = "模块")
private String catalog;
@Schema(description = "类型")
private String type;
@Schema(description = "名称")
private String name;
@Schema(description = "")
private Integer value;
@Schema(description = "字符串值")
private String strvalue;
@Schema(description = "排序")
private Integer sort;
@Schema(description = "版本")
private Integer version;
@Schema(description = "备注")
private String remark;
}