Commit 5632c515271943200f4b189204947632bf77ccc9
1 parent
a8aead30
fix: 修复创建 DeliveryExpressDO 时提示 id 过大的问题
Showing
1 changed file
with
2 additions
and
1 deletions
yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/dal/dataobject/delivery/DeliveryExpressDO.java
| ... | ... | @@ -2,6 +2,7 @@ package cn.iocoder.yudao.module.trade.dal.dataobject.delivery; |
| 2 | 2 | |
| 3 | 3 | import cn.iocoder.yudao.framework.common.enums.CommonStatusEnum; |
| 4 | 4 | import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO; |
| 5 | +import com.baomidou.mybatisplus.annotation.IdType; | |
| 5 | 6 | import com.baomidou.mybatisplus.annotation.KeySequence; |
| 6 | 7 | import com.baomidou.mybatisplus.annotation.TableId; |
| 7 | 8 | import com.baomidou.mybatisplus.annotation.TableName; |
| ... | ... | @@ -20,7 +21,7 @@ public class DeliveryExpressDO extends BaseDO { |
| 20 | 21 | /** |
| 21 | 22 | * 编号,自增 |
| 22 | 23 | */ |
| 23 | - @TableId | |
| 24 | + @TableId(type = IdType.AUTO) | |
| 24 | 25 | private Long id; |
| 25 | 26 | |
| 26 | 27 | /** | ... | ... |