refactor(consultation): 为实体类添加缺失的 @TableId 注解并规范导入顺序

- 部分自增主键注解有问题
- 更新信创后置sql
This commit is contained in:
2026-04-03 13:52:06 +08:00
parent 98a06d0c66
commit 10d7a2f908
8 changed files with 16 additions and 12 deletions
@@ -1,6 +1,8 @@
package com.renkang.consultation.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
@@ -27,6 +29,7 @@ public class ConCostLog {
/**
* id
*/
@TableId(type = IdType.AUTO)
@Excel(name = "id", width = 15)
@Schema(title = "id")
private String id;
@@ -31,7 +31,7 @@ public class ConCostStatistics extends ConPage implements Serializable {
/**
* 流水号
*/
@TableId(type = IdType.ASSIGN_ID)
@TableId(type = IdType.AUTO)
@Schema(title = "流水号")
private Integer id;
/**
@@ -32,7 +32,7 @@ public class ConHelperOnline implements Serializable {
/**
* 主键
*/
@TableId(type = IdType.ASSIGN_ID)
@TableId(type = IdType.AUTO)
@Schema(title = "主键")
private Integer id;
/**
@@ -22,7 +22,7 @@ public class ConPhrases extends ConPage implements Serializable {
/**
* 主键id
*/
@TableId(type = IdType.ASSIGN_ID)
@TableId(type = IdType.AUTO)
@Schema(title = "主键id")
private String id;
/**
@@ -32,7 +32,7 @@ public class ConPropose implements Serializable {
/**
* 主键
*/
@TableId(type = IdType.ASSIGN_ID)
@TableId(type = IdType.AUTO)
@Schema(title = "主键")
private Integer id;
/**