教职工出生日期格式化;类型相关表主键优化

This commit is contained in:
cjw 2024-05-30 14:38:07 +08:00
parent 769de3cf6a
commit af496fcb33
3 changed files with 6 additions and 2 deletions

View File

@ -7,6 +7,7 @@ import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.tenant.core.TenantEntity;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serial;
import java.util.Date;
@ -84,6 +85,7 @@ public class SysTeacher extends TenantEntity {
/**
* 出生日期
*/
@DateTimeFormat(pattern = "yyyy-MM-dd")
private Date birthday;
/**

View File

@ -1,5 +1,6 @@
package org.dromara.system.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.dromara.common.core.constant.UserConstants;
@ -21,7 +22,7 @@ public class SysDictData extends TenantEntity {
/**
* 字典编码
*/
@TableId(value = "dict_code")
@TableId(value = "dict_code",type = IdType.AUTO)
private Long dictCode;
/**

View File

@ -1,5 +1,6 @@
package org.dromara.system.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.dromara.common.tenant.core.TenantEntity;
@ -20,7 +21,7 @@ public class SysDictType extends TenantEntity {
/**
* 字典主键
*/
@TableId(value = "dict_id")
@TableId(value = "dict_id",type = IdType.AUTO)
private Long dictId;
/**