You've already forked FrameTour-BE
refactor(entity): 重构实体类并优化券码生成逻辑
- 移除 BaseEntity 类,将通用字段直接集成到各实体类中 - 更新实体类字段名称,如 createdTime 改为 createTime- 在 PriceVoucherCode 实体中添加生成安全券码的逻辑 - 更新相关服务类中的方法调用,以适应新的字段名称
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
package com.ycwl.basic.pricing.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 lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
@@ -12,9 +12,8 @@ import java.util.Date;
|
||||
* 券码实体
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@TableName("price_voucher_code")
|
||||
public class PriceVoucherCode extends BaseEntity {
|
||||
public class PriceVoucherCode {
|
||||
|
||||
@TableId(value = "id", type = IdType.AUTO)
|
||||
private Long id;
|
||||
@@ -58,4 +57,14 @@ public class PriceVoucherCode extends BaseEntity {
|
||||
* 使用备注
|
||||
*/
|
||||
private String remark;
|
||||
|
||||
@TableField("create_time")
|
||||
private Date createTime;
|
||||
|
||||
@TableField("update_time")
|
||||
private Date updateTime;
|
||||
|
||||
private Integer deleted;
|
||||
|
||||
private Date deletedAt;
|
||||
}
|
||||
Reference in New Issue
Block a user