REVIEW 物流管理相关的表

plp
YunaiV 3 years ago
parent 467811a42e
commit c21e88860f

@ -2,11 +2,11 @@ package cn.iocoder.yudao.module.product.dal.dataobject.delivery;
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
// TODO @Jason要不就叫 DeliveryExpressTemplateChargeDOdetail 主要用来作为明细,不适合作为条目
/**
* DO
*
@ -16,6 +16,7 @@ import lombok.Data;
@KeySequence("delivery_charge_detail_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
@Data
public class DeliveryChargeDetailDO extends BaseDO {
/**
*
*/
@ -24,9 +25,14 @@ public class DeliveryChargeDetailDO extends BaseDO {
/**
* , delivery_templateid
*
* // TODO @Jason如果关联写法如下
*
* {@link DeliveryTemplateDO#getId()}
*/
private Long templateId;
// TODO @Jason全国最好使用 0
/**
* id 1:
*/
@ -34,30 +40,29 @@ public class DeliveryChargeDetailDO extends BaseDO {
/**
* 1: 2: 3:
*
* {@link DeliveryTemplateDO#getChargeMode()}
*/
private Integer chargeMode;
// TODO @JasonstartCount一般 count 作为数量哈
/**
* (,)
* (,)
*/
private Double startQuantity;
/**
* ()
*
*/
private Integer startPrice;
// TODO @JasonstartCount一般 count 作为数量哈
/**
* (,)
* (,)
*/
private Double extraQuantity;
/**
* ()
*
*/
private Integer extraPrice;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
}
}

@ -2,11 +2,11 @@ package cn.iocoder.yudao.module.product.dal.dataobject.delivery;
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
// TODO @Jason要不就叫 DeliveryExpressTemplateFreeDOdetail 主要用来作为明细,不适合作为条目
/**
* DO
*
@ -16,6 +16,7 @@ import lombok.Data;
@KeySequence("delivery_free_detail_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
@Data
public class DeliveryFreeDetailDO extends BaseDO {
/**
*
*/
@ -23,7 +24,9 @@ public class DeliveryFreeDetailDO extends BaseDO {
private Long id;
/**
* , delivery_templateid
*
*
* {@link DeliveryTemplateDO#getId()}
*/
private Long templateId;
@ -33,16 +36,18 @@ public class DeliveryFreeDetailDO extends BaseDO {
private Integer areaId;
/**
* () >
*
*
* >
*/
private Integer freePrice;
// TODO @JasonfreeCount一般 count 作为数量哈
/**
* ,>
*
*
* >
*/
private Integer freeNumber;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
}
}

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

Loading…
Cancel
Save