diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardFule/entity/CardFuelRecord.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardFule/entity/CardFuelRecord.java index b5e29cded..21ffe6883 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardFule/entity/CardFuelRecord.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardFule/entity/CardFuelRecord.java @@ -2,6 +2,8 @@ package com.fuint.business.marketingActivity.cardFule.entity; import java.util.Date; +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; import com.fasterxml.jackson.annotation.JsonFormat; import com.fuint.repository.model.base.BaseEntity; import lombok.Data; @@ -18,6 +20,7 @@ public class CardFuelRecord extends BaseEntity { /** * 主键id */ + @TableId(type = IdType.AUTO) private Integer id; private Integer oilNumberId;