REVIEW 物流管理相关的表

This commit is contained in:
YunaiV 2023-05-14 17:35:17 +08:00
parent 467811a42e
commit c21e88860f
3 changed files with 37 additions and 23 deletions

View File

@ -2,11 +2,11 @@ package cn.iocoder.yudao.module.product.dal.dataobject.delivery;
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO; import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
import com.baomidou.mybatisplus.annotation.KeySequence; import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data; import lombok.Data;
// TODO @Jason要不就叫 DeliveryExpressTemplateChargeDOdetail 主要用来作为明细不适合作为条目
/** /**
* 配送费用详情 DO * 配送费用详情 DO
* *
@ -16,6 +16,7 @@ import lombok.Data;
@KeySequence("delivery_charge_detail_seq") // 用于 OraclePostgreSQLKingbaseDB2H2 数据库的主键自增如果是 MySQL 等数据库可不写 @KeySequence("delivery_charge_detail_seq") // 用于 OraclePostgreSQLKingbaseDB2H2 数据库的主键自增如果是 MySQL 等数据库可不写
@Data @Data
public class DeliveryChargeDetailDO extends BaseDO { public class DeliveryChargeDetailDO extends BaseDO {
/** /**
* 编号自增 * 编号自增
*/ */
@ -24,9 +25,14 @@ public class DeliveryChargeDetailDO extends BaseDO {
/** /**
* 配送模板编号, 对应delivery_template表id * 配送模板编号, 对应delivery_template表id
*
* // TODO @Jason如果关联写法如下
*
* 关联 {@link DeliveryTemplateDO#getId()}
*/ */
private Long templateId; private Long templateId;
// TODO @Jason全国最好使用 0
/** /**
* 配送区域id 1:适用于全国 * 配送区域id 1:适用于全国
*/ */
@ -34,30 +40,29 @@ public class DeliveryChargeDetailDO extends BaseDO {
/** /**
* 配送计费方式 1:按件 2:按重量 3:按体积 * 配送计费方式 1:按件 2:按重量 3:按体积
*
* 冗余 {@link DeliveryTemplateDO#getChargeMode()}
*/ */
private Integer chargeMode; private Integer chargeMode;
// TODO @JasonstartCount一般 count 作为数量哈
/** /**
* 起步数量(件数,重量或体积) * 首件数量(件数,重量或体积)
*/ */
private Double startQuantity; private Double startQuantity;
/** /**
* 起步价(单位分) * 起步价单位
*/ */
private Integer startPrice; private Integer startPrice;
// TODO @JasonstartCount一般 count 作为数量哈
/** /**
* (,重量或体积) * 件数量(,重量或体积)
*/ */
private Double extraQuantity; private Double extraQuantity;
/** /**
* 额外价(单位分) * 额外价单位
*/ */
private Integer extraPrice; private Integer extraPrice;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
} }

View File

@ -2,11 +2,11 @@ package cn.iocoder.yudao.module.product.dal.dataobject.delivery;
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO; import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
import com.baomidou.mybatisplus.annotation.KeySequence; import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data; import lombok.Data;
// TODO @Jason要不就叫 DeliveryExpressTemplateFreeDOdetail 主要用来作为明细不适合作为条目
/** /**
* 配送包邮详情 DO * 配送包邮详情 DO
* *
@ -16,6 +16,7 @@ import lombok.Data;
@KeySequence("delivery_free_detail_seq") // 用于 OraclePostgreSQLKingbaseDB2H2 数据库的主键自增如果是 MySQL 等数据库可不写 @KeySequence("delivery_free_detail_seq") // 用于 OraclePostgreSQLKingbaseDB2H2 数据库的主键自增如果是 MySQL 等数据库可不写
@Data @Data
public class DeliveryFreeDetailDO extends BaseDO { public class DeliveryFreeDetailDO extends BaseDO {
/** /**
* 编号自增 * 编号自增
*/ */
@ -23,7 +24,9 @@ public class DeliveryFreeDetailDO extends BaseDO {
private Long id; private Long id;
/** /**
* 配送模板编号, 对应delivery_template表id * 配送模板编号
*
* 关联 {@link DeliveryTemplateDO#getId()}
*/ */
private Long templateId; private Long templateId;
@ -33,16 +36,18 @@ public class DeliveryFreeDetailDO extends BaseDO {
private Integer areaId; private Integer areaId;
/** /**
* 包邮金额(单位分) 订单总金额>包邮金额才免运费 * 包邮金额单位
*
* 订单总金额 > 包邮金额时才免运费
*/ */
private Integer freePrice; private Integer freePrice;
// TODO @JasonfreeCount一般 count 作为数量哈
/** /**
* 包邮件数,订单总件数>包邮件数才免运费 * 包邮件数
*
* 订单总件数 > 包邮件数时才免运费
*/ */
private Integer freeNumber; private Integer freeNumber;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
} }

View File

@ -2,11 +2,16 @@ package cn.iocoder.yudao.module.product.dal.dataobject.delivery;
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO; import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
import com.baomidou.mybatisplus.annotation.KeySequence; import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*; import lombok.*;
// TODO @Jason配送放到 trade 然后属于 deliver 配送配送分成两个方式1快递 express2自提 pickup
// 这样的话实体名字一个是 DeliveryExpressTemplateDO长一点没关系哈还有一个 DeliveryPickUpStoreDO 自提门店
// 表名的话还是加上 trade_delivery_ 前缀主要归属在交易域
// TODO @Jason额外补充不是这个类哈应该还有个快递DeliveryExpress需要设计下这个表
/** /**
* 配送模板 SPU DO * 配送模板 SPU DO
* *
@ -33,11 +38,13 @@ public class DeliveryTemplateDO extends BaseDO {
*/ */
private String name; private String name;
// TODO @Jason 我看了下crmeb 界面是假的没有全国包邮部分包邮自定义直接干掉这个字段号了没啥用
/** /**
* 配送费用类型 1:全区域包邮 2非全区域包邮 * 配送费用类型 1:全区域包邮 2非全区域包邮
*/ */
private Integer chargeType; private Integer chargeType;
// TODO @Jason1:按件 2:按重量 3:按体积 枚举然后关联下
/** /**
* 配送计费方式 1:按件 2:按重量 3:按体积 * 配送计费方式 1:按件 2:按重量 3:按体积
*/ */
@ -48,7 +55,4 @@ public class DeliveryTemplateDO extends BaseDO {
*/ */
private Integer sort; private Integer sort;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
} }