fix: 0.1.1 修正问题如下:
1. 配置文件添加了生产环境配置文件,根据环境分别配置数据库配置,Swagger配置以及CORS配置。 2. 做了自动填充基础 Entity 配置,且分别对应了新老项目的基础 Entity,自动填充基本的创建信息和更新信息。 3. 修正了一下入库的状态问题和展示问题。 4. 修正了线上数据库表名的大小写和项目不符合的问题。 5. 优化了物料总表的 DTO。
This commit is contained in:
44
src/main/java/com/niuan/erp/common/base/BaseEntity.java
Normal file
44
src/main/java/com/niuan/erp/common/base/BaseEntity.java
Normal file
@@ -0,0 +1,44 @@
|
||||
package com.niuan.erp.common.base;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.FieldFill;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 基础 Entity
|
||||
* <br/>
|
||||
* 需要注意如果是老数据库迁移过来的表结构使用的是大写驼峰法命名,使用的基础类为 {@link com.niuan.erp.common.base.OldBaseEntity}
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class BaseEntity {
|
||||
|
||||
@TableId(value = "id", type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
@TableField(value = "status", fill = FieldFill.INSERT)
|
||||
private Integer status;
|
||||
|
||||
@TableField(value = "create_user_id", fill = FieldFill.INSERT)
|
||||
private Long createUserId;
|
||||
|
||||
@TableField(value = "create_user_name", fill = FieldFill.INSERT)
|
||||
private String createUserName;
|
||||
|
||||
@TableField(value = "create_date", fill = FieldFill.INSERT)
|
||||
private LocalDateTime createDate;
|
||||
|
||||
@TableField(value = "update_user_id", fill = FieldFill.UPDATE)
|
||||
private Long updateUserId;
|
||||
|
||||
@TableField(value = "update_user_name", fill = FieldFill.UPDATE)
|
||||
private String updateUserName;
|
||||
|
||||
@TableField(value = "update_date", fill = FieldFill.UPDATE)
|
||||
private LocalDateTime updateDate;
|
||||
}
|
||||
Reference in New Issue
Block a user