Commit c21e88860f1c4120772d518023108efa67bbd9aa

Authored by YunaiV
1 parent 467811a4

REVIEW 物流管理相关的表

yudao-module-mall/yudao-module-product-biz/src/main/java/cn/iocoder/yudao/module/product/dal/dataobject/delivery/DeliveryChargeDetailDO.java
... ... @@ -2,11 +2,11 @@ package cn.iocoder.yudao.module.product.dal.dataobject.delivery;
2 2  
3 3 import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
4 4 import com.baomidou.mybatisplus.annotation.KeySequence;
5   -import com.baomidou.mybatisplus.annotation.TableField;
6 5 import com.baomidou.mybatisplus.annotation.TableId;
7 6 import com.baomidou.mybatisplus.annotation.TableName;
8 7 import lombok.Data;
9 8  
  9 +// TODO @Jason:要不就叫 DeliveryExpressTemplateChargeDO;detail 主要用来作为明细,不适合作为条目
10 10 /**
11 11 * 配送费用详情 DO
12 12 *
... ... @@ -16,6 +16,7 @@ import lombok.Data;
16 16 @KeySequence("delivery_charge_detail_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
17 17 @Data
18 18 public class DeliveryChargeDetailDO extends BaseDO {
  19 +
19 20 /**
20 21 * 编号,自增
21 22 */
... ... @@ -24,9 +25,14 @@ public class DeliveryChargeDetailDO extends BaseDO {
24 25  
25 26 /**
26 27 * 配送模板编号, 对应delivery_template表id
  28 + *
  29 + * // TODO @Jason:如果关联,写法如下
  30 + *
  31 + * 关联 {@link DeliveryTemplateDO#getId()}
27 32 */
28 33 private Long templateId;
29 34  
  35 + // TODO @Jason:全国最好使用 0
30 36 /**
31 37 * 配送区域id 1:适用于全国
32 38 */
... ... @@ -34,30 +40,29 @@ public class DeliveryChargeDetailDO extends BaseDO {
34 40  
35 41 /**
36 42 * 配送计费方式 1:按件 2:按重量 3:按体积
  43 + *
  44 + * 冗余 {@link DeliveryTemplateDO#getChargeMode()}
37 45 */
38 46 private Integer chargeMode;
39 47  
  48 + // TODO @Jason:startCount;一般 count 作为数量哈
40 49 /**
41   - * 起步数量(件数,重量,或体积)
  50 + * 首件数量(件数,重量,或体积)
42 51 */
43 52 private Double startQuantity;
44   -
45 53 /**
46   - * 起步价(单位分)
  54 + * 起步价,单位:分
47 55 */
48 56 private Integer startPrice;
49 57  
  58 + // TODO @Jason:startCount;一般 count 作为数量哈
50 59 /**
51   - * 续(件,重量,或体积)
  60 + * 续件数量(件,重量,或体积)
52 61 */
53 62 private Double extraQuantity;
54   -
55 63 /**
56   - * 额外价(单位分)
  64 + * 额外价,单位:分
57 65 */
58 66 private Integer extraPrice;
59 67  
60   -
61   - @TableField(exist = false)
62   - private static final long serialVersionUID = 1L;
63   -}
64 68 \ No newline at end of file
  69 +}
... ...
yudao-module-mall/yudao-module-product-biz/src/main/java/cn/iocoder/yudao/module/product/dal/dataobject/delivery/DeliveryFreeDetailDO.java
... ... @@ -2,11 +2,11 @@ package cn.iocoder.yudao.module.product.dal.dataobject.delivery;
2 2  
3 3 import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
4 4 import com.baomidou.mybatisplus.annotation.KeySequence;
5   -import com.baomidou.mybatisplus.annotation.TableField;
6 5 import com.baomidou.mybatisplus.annotation.TableId;
7 6 import com.baomidou.mybatisplus.annotation.TableName;
8 7 import lombok.Data;
9 8  
  9 +// TODO @Jason:要不就叫 DeliveryExpressTemplateFreeDO;detail 主要用来作为明细,不适合作为条目
10 10 /**
11 11 * 配送包邮详情 DO
12 12 *
... ... @@ -16,6 +16,7 @@ import lombok.Data;
16 16 @KeySequence("delivery_free_detail_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
17 17 @Data
18 18 public class DeliveryFreeDetailDO extends BaseDO {
  19 +
19 20 /**
20 21 * 编号,自增
21 22 */
... ... @@ -23,7 +24,9 @@ public class DeliveryFreeDetailDO extends BaseDO {
23 24 private Long id;
24 25  
25 26 /**
26   - * 配送模板编号, 对应delivery_template表id
  27 + * 配送模板编号
  28 + *
  29 + * 关联 {@link DeliveryTemplateDO#getId()}
27 30 */
28 31 private Long templateId;
29 32  
... ... @@ -33,16 +36,18 @@ public class DeliveryFreeDetailDO extends BaseDO {
33 36 private Integer areaId;
34 37  
35 38 /**
36   - * 包邮金额(单位分) 订单总金额>包邮金额才免运费
  39 + * 包邮金额,单位:分
  40 + *
  41 + * 订单总金额 > 包邮金额时,才免运费
37 42 */
38 43 private Integer freePrice;
39 44  
  45 + // TODO @Jason:freeCount;一般 count 作为数量哈
40 46 /**
41   - * 包邮件数,订单总件数>包邮件数才免运费
  47 + * 包邮件数
  48 + *
  49 + * 订单总件数 > 包邮件数时,才免运费
42 50 */
43 51 private Integer freeNumber;
44 52  
45   -
46   - @TableField(exist = false)
47   - private static final long serialVersionUID = 1L;
48   -}
49 53 \ No newline at end of file
  54 +}
... ...
yudao-module-mall/yudao-module-product-biz/src/main/java/cn/iocoder/yudao/module/product/dal/dataobject/delivery/DeliveryTemplateDO.java
... ... @@ -2,11 +2,16 @@ package cn.iocoder.yudao.module.product.dal.dataobject.delivery;
2 2  
3 3 import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
4 4 import com.baomidou.mybatisplus.annotation.KeySequence;
5   -import com.baomidou.mybatisplus.annotation.TableField;
6 5 import com.baomidou.mybatisplus.annotation.TableId;
7 6 import com.baomidou.mybatisplus.annotation.TableName;
8 7 import lombok.*;
9 8  
  9 +// TODO @Jason:配送放到 trade 里。然后属于 deliver 配送;配送分成两个方式:1)快递 express;2)自提 pickup;
  10 +// 这样的话,实体名字一个是 DeliveryExpressTemplateDO;长一点没关系哈;还有一个 DeliveryPickUpStoreDO 自提门店;
  11 +// 表名的话,还是加上 trade_delivery_ 前缀,主要归属在交易域
  12 +
  13 +// TODO @Jason:额外补充,不是这个类哈。应该还有个快递;DeliveryExpress;需要设计下这个表
  14 +
10 15 /**
11 16 * 配送模板 SPU DO
12 17 *
... ... @@ -33,11 +38,13 @@ public class DeliveryTemplateDO extends BaseDO {
33 38 */
34 39 private String name;
35 40  
  41 + // TODO @Jason 我看了下,crmeb 界面是假的,没有全国包邮、部分包邮、自定义;直接干掉这个字段号了;没啥用。
36 42 /**
37 43 * 配送费用类型 1:全区域包邮 2:非全区域包邮
38 44 */
39 45 private Integer chargeType;
40 46  
  47 + // TODO @Jason:1:按件 2:按重量 3:按体积 枚举,然后关联下
41 48 /**
42 49 * 配送计费方式 1:按件 2:按重量 3:按体积
43 50 */
... ... @@ -48,7 +55,4 @@ public class DeliveryTemplateDO extends BaseDO {
48 55 */
49 56 private Integer sort;
50 57  
51   - @TableField(exist = false)
52   - private static final long serialVersionUID = 1L;
53   -
54 58 }
... ...