1.迁移order service 代码

2.先注释掉提示错误的代码,后续相关人员开发功能时自行解开
This commit is contained in:
xiaofeng 2020-05-11 23:57:16 +08:00
parent bea0228357
commit e04798d48a
24 changed files with 1728 additions and 249 deletions

View File

@ -0,0 +1,176 @@
package cn.iocoder.mall.order.biz.bo;
import lombok.Data;
import lombok.experimental.Accessors;
/**
* 计算订单价格结果 BO
*/
@Data
@Accessors(chain = true)
public class CalcOrderPriceBO {
// /**
// * 商品分组数组
// */
// private List<ItemGroup> itemGroups;
// /**
// * 优惠劵编号
// */
// private Integer couponCardId;
// /**
// * 优惠劵减少的金额
// *
// * 1. 若未使用优惠劵返回 null
// * 2. 该金额已经分摊到每个 Item discountTotal 需要注意
// */
// private Integer couponCardDiscountTotal;
// /**
// * 邮费信息
// *
// * TODO 芋艿暂时未弄
// */
// private Postage postage;
// /**
// * 费用
// */
// private Fee fee;
//
// /**
// * 商品分组
// *
// * 多个商品参加同一个活动从而形成分组
// */
// @Data
// @Accessors(chain = true)
// public static class ItemGroup {
//
// /**
// * 优惠活动
// */
// // TODO 芋艿目前只会有满减送的情况未来有新的促销方式可能需要改成数组
// private PromotionActivityBO activity;
// /**
// * 促销减少的金额
// *
// * 1. 若未参与促销活动或不满足促销条件返回 null
// * 2. 该金额已经分摊到每个 Item discountTotal 需要注意
// */
// private Integer activityDiscountTotal;
// /**
// * 商品数组
// */
// private List<Item> items;
//// /**
//// * 费用
//// *
//// * TODO 芋艿这里先偷懒postageTotal 字段用不到
//// */
//// private Fee fee; // 注释原因不用这里了
//
// }
//
// @Data
// @Accessors(chain = true)
// public static class Item extends ProductSkuDetailBO { // TODO 芋艿此处先偷懒继承
//
// /**
// * 是否选中
// */
// private Boolean selected;
// /**
// * 购买数量
// */
// private Integer buyQuantity;
// /**
// * 优惠活动
// */
// private PromotionActivityBO activity;
// /**
// * 原始单价单位
// */
// private Integer originPrice;
// /**
// * 购买单价单位
// */
// private Integer buyPrice;
// /**
// * 最终价格单位
// */
// private Integer presentPrice;
// /**
// * 购买总金额单位
// *
// * 用途类似 {@link #presentTotal}
// */
// private Integer buyTotal;
// /**
// * 优惠总金额单位
// */
// private Integer discountTotal;
// /**
// * 最终总金额单位
// *
// * 注意presentPrice * quantity 不一定等于 presentTotal
// * 因为存在无法整除的情况
// * 举个例子presentPrice = 8.33 quantity = 3 的情况presentTotal 有可能是 24.99 也可能是 25
// * 所以需要存储一个该字段
// */
// private Integer presentTotal;
//
// }
//
// /**
// * 费用合计
// */
// @Data
// @Accessors(chain = true)
// public static class Fee {
//
// /**
// * 购买总价
// */
// private Integer buyTotal;
// /**
// * 优惠总价
// *
// * 注意满多少元包邮不算在优惠中
// */
// private Integer discountTotal;
// /**
// * 邮费 TODO 芋艿 postage 改成 logistics
// */
// private Integer postageTotal;
// /**
// * 最终价格
// *
// * 计算公式 = 总价 - 优惠总价 + 邮费
// */
// private Integer presentTotal;
//
// public Fee() {
// }
//
// public Fee(Integer buyTotal, Integer discountTotal, Integer postageTotal, Integer presentTotal) {
// this.buyTotal = buyTotal;
// this.discountTotal = discountTotal;
// this.postageTotal = postageTotal;
// this.presentTotal = presentTotal;
// }
// }
//
// /**
// * 邮费信息
// */
// @Data
// @Accessors(chain = true)
// public static class Postage {
//
// /**
// * 需要满足多少钱可以包邮单位
// */
// private Integer threshold;
//
// }
}

View File

@ -0,0 +1,31 @@
package cn.iocoder.mall.order.biz.bo;
import java.io.Serializable;
import lombok.Data;
import lombok.experimental.Accessors;
/**
* 计算商品 SKU 价格结果 BO
*/
@Data
@Accessors(chain = true)
public class CalcSkuPriceBO implements Serializable {
// /**
// * 满减送促销活动
// */
// private PromotionActivityBO fullPrivilege;
// /**
// * 限时折扣促销活动
// */
// private PromotionActivityBO timeLimitedDiscount;
// /**
// * 原价格单位
// */
// private Integer originalPrice;
// /**
// * 购买价格单位
// */
// private Integer buyPrice;
}

View File

@ -0,0 +1,100 @@
package cn.iocoder.mall.order.biz.bo;
import lombok.Data;
import lombok.experimental.Accessors;
import java.util.Date;
/**
* 购物车的商品信息 DO
*/
@Data
@Accessors(chain = true)
public class CartItemBO {
// ========= 基础字段 BEGIN =========
/**
* 编号唯一自增
*/
private Integer id;
/**
* 状态
*
* 1-正常
* 2-主动删除
* 3-下单删除
*/
private Integer status;
/**
* 是否选中
*/
private Boolean selected;
// ========= 基础字段 END =========
// ========= 买家信息 BEGIN =========
/**
* 用户编号
*/
private Integer userId;
// /**
// * 会话 key
// */
// private String nobody;
// ========= 买家信息 END =========
// ========= 商品信息 BEGIN =========
/**
* 商品 SPU 编号
*/
private Integer spuId;
/**
* 商品 SKU 编号
*/
private Integer skuId;
/**
* 商品购买数量
*/
private Integer quantity;
// TODO 冗余字段
// ========= 商品信息 END =========
// ========= 交易信息 BEGIN =========
/**
* 订单编号
*/
private Integer orderId;
/**
* 订单创建时间
*/
private Date orderCreateTime;
// ========= 交易信息 BEGIN =========
// ========= 优惠信息 BEGIN =========
// /**
// * 商品营销活动编号
// */
// private Integer activityId;
// /**
// * 商品营销活动类型
// */
// private Integer activityType;
// ========= 优惠信息 END =========
/**
* 创建时间
*/
private Date createTime;
}

View File

@ -0,0 +1,115 @@
package cn.iocoder.mall.order.biz.bo;
import lombok.Data;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
/**
* 订单 page
*
* @author Sin
* @time 2019-03-23 14:30
*/
@Data
@Accessors(chain = true)
public class OrderBO implements Serializable {
/**
* id
*/
private Integer id;
/**
* 用户编号
*/
private Integer userId;
/**
* 订单编号
*/
private String orderNo;
/**
* 购买商品总金额单位
*/
private Integer buyPrice;
/**
* 优惠总金额单位
*/
private Integer discountPrice;
/**
* 物流金额 ()
*/
private Integer logisticsPrice;
/**
* 最终金额单位
*
* buyPrice + logisticsPrice - discountPrice = presentPrice
*/
private Integer presentPrice;
/**
* 实际已支付金额单位
*
* 初始时金额为 0 等到支付成功后会进行更新
*/
private Integer payAmount;
///
/// 时间信息
/**
* 付款时间待发货
*/
private Date paymentTime;
/**
* 发货时间待收货
*/
private Date deliveryTime;
/**
* 收货时间已签收
*/
private Date receiverTime;
/**
* 成交时间用户确认收货 -> status = 已完成
*/
private Date closingTime;
///
/// 其他
/**
* 是否退货
*
* - 0没有
* - 1换货
* - 2退货
* - 3换货 + 退货
*/
private Integer hasReturnExchange;
/**
* 状态(如果有多个商品分开发货需要全部商品发完才会改变状态)
*
* - 0待付款
* - 1待发货
* - 2待收获
* - 3已完成
* - 4已关闭
*/
private Integer status;
/**
* 备注
*/
private String remark;
///
/// 关联信息
/**
* orderItem
*/
private List<OrderItemBO> orderItems;
/**
* 订单物流信息
*/
private OrderRecipientBO orderRecipient;
}

View File

@ -0,0 +1,30 @@
package cn.iocoder.mall.order.biz.bo;
import lombok.Data;
import lombok.experimental.Accessors;
import java.io.Serializable;
/**
* 订单创建 BO
*
* @author Sin
* @time 2019-03-16 14:38
*/
@Data
@Accessors(chain = true)
public class OrderCreateBO implements Serializable {
/**
* 编号
*/
private Integer id;
/**
* 订单编号
*/
private String orderNo;
/**
* 订单金额
*/
private Integer payAmount;
}

View File

@ -0,0 +1,233 @@
package cn.iocoder.mall.order.biz.bo;
import lombok.Data;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
/**
* 订单 info
*
* @author Sin
* @time 2019-04-14 15:36
*/
@Data
@Accessors(chain = true)
public class OrderInfoBO implements Serializable {
/**
* id
*/
private Integer id;
/**
* 订单编号
*/
private String orderNo;
/**
* 购买商品总金额单位
*/
private Integer buyPrice;
/**
* 优惠总金额单位
*/
private Integer discountPrice;
/**
* 物流金额 ()
*/
private Integer logisticsPrice;
/**
* 最终金额单位
*
* buyPrice + logisticsPrice - discountPrice = presentPrice
*/
private Integer presentPrice;
/**
* 实际已支付金额单位
*
* 初始时金额为 0 等到支付成功后会进行更新
*/
private Integer payAmount;
/**
* 付款时间待发货
*/
private Date paymentTime;
/**
* 发货时间待收货
*/
private Date deliveryTime;
/**
* 收货时间已签收
*/
private Date receiverTime;
/**
* 成交时间用户确认收货 -> status = 已完成
*/
private Date closingTime;
/**
* 是否退货
*
* - 1没有
* - 2换货
* - 3退货
* - 4换货 + 退货
*/
private Integer hasReturnExchange;
/**
* 状态(如果有多个商品分开发货需要全部商品发完才会改变状态)
*
* - 1待付款
* - 2待发货
* - 3待收获
* - 4已完成
* - 5已关闭
*/
private Integer status;
/**
* 转换的字典值
*/
private String statusText;
/**
* 备注
*/
private String remark;
///
/// 其他信息
/**
* 手机人信息
*/
private Recipient recipient;
/**
* 最新物流信息
*/
private LogisticsDetail latestLogisticsDetail;
/**
* 订单 item
*/
private List<OrderItem> orderItems;
///
/// 其他字段
/**
* 是否退货
*/
private Integer hasOrderReturn;
@Data
@Accessors(chain = true)
public static class OrderItem {
/**
* 商品编号
*/
private Integer skuId;
/**
* 商品名称
*/
private String skuName;
/**
* 商品图片
*/
private String skuImage;
/**
* 数量
*/
private Integer quantity;
/**
* 原始单价单位
*/
private Integer originPrice;
/**
* 购买单价单位
*/
private Integer buyPrice;
/**
* 最终价格单位
*/
private Integer presentPrice;
/**
* 购买总金额单位
*
* 用途类似 {@link #presentTotal}
*/
private Integer buyTotal;
/**
* 优惠总金额单位
*/
private Integer discountTotal;
/**
* 最终总金额单位
*
* 注意presentPrice * quantity 不一定等于 presentTotal
* 因为存在无法整除的情况
* 举个例子presentPrice = 8.33 quantity = 3 的情况presentTotal 有可能是 24.99 也可能是 25
* 所以需要存储一个该字段
*/
private Integer presentTotal;
}
@Data
@Accessors(chain = true)
public static class Recipient {
/**
* 编号
*/
private Integer id;
/**
* 订单id
*/
private Integer orderId;
/**
* 收件区域编号
*/
private String areaNo;
/**
* 收件人名称
*/
private String name;
/**
* 收件手机号
*/
private String mobile;
/**
* 配送类型
*
* - 1 快递
*/
private Integer type;
/**
* 收件详细地址
*/
private String address;
}
@Data
@Accessors(chain = true)
public static class LogisticsDetail {
/**
* id
*/
private Integer id;
/**
* 物流id
*/
private Integer orderLogisticsId;
/**
* 物流时间
*/
private Date logisticsTime;
/**
* 物流信息
*/
private String logisticsInformation;
}
}

View File

@ -0,0 +1,143 @@
package cn.iocoder.mall.order.biz.bo;
import lombok.Data;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
/**
* 订单 item
*
* @author Sin
* @time 2019-03-28 21:11
*/
@Data
@Accessors(chain = true)
public class OrderItemBO implements Serializable {
/**
* 编号
*/
private Integer id;
/**
* 订单编号
*/
private Integer orderId;
/**
* 订单号
*/
private String orderNo;
/**
* 商品编号
*/
private Integer skuId;
/**
* 商品名称
*/
private String skuName;
/**
* 商品图片
*/
private String skuImage;
/**
* 数量
*/
private Integer quantity;
/**
* 原始单价单位
*/
private Integer originPrice;
/**
* 购买单价单位
*/
private Integer buyPrice;
/**
* 最终价格单位
*/
private Integer presentPrice;
/**
* 购买总金额单位
*
* 用途类似 {@link #presentTotal}
*/
private Integer buyTotal;
/**
* 优惠总金额单位
*/
private Integer discountTotal;
/**
* 最终总金额单位
*
* 注意presentPrice * quantity 不一定等于 presentTotal
* 因为存在无法整除的情况
* 举个例子presentPrice = 8.33 quantity = 3 的情况presentTotal 有可能是 24.99 也可能是 25
* 所以需要存储一个该字段
*/
private Integer presentTotal;
///
/// 时间信息
/**
* 付款时间
*/
private Date paymentTime;
/**
* 发货时间
*/
private Date deliveryTime;
/**
* 收货时间
*/
private Date receiverTime;
/**
* 成交时间
*/
private Date closingTime;
///
/// 其他
/**
* 是否退货
*
* - 1没有
* - 2换货
* - 3退货
* - 4换货 + 退货
*/
private Integer hasReturnExchange;
/**
* 发货方式
*
* - 1 未选择
* - 2 在线下单
* - 3 自己联系快递
* - 4 无物流
*/
private Integer deliveryType;
/**
* 状态
*
* - 1待付款
* - 2待发货
* - 3已发货
* - 4已完成
* - 5已关闭
*/
private Integer status;
/**
* 创建时间
*/
private Date createTime;
/**
* 更新时间
*/
private Date updateTime;
/**
* 删除状态
*/
private Integer deleted;
}

View File

@ -0,0 +1,85 @@
package cn.iocoder.mall.order.biz.bo;
import lombok.Data;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
/**
* 订单物流 - 最后一个物流信息
*
* @author Sin
* @time 2019-04-12 22:03
*/
@Data
@Accessors(chain = true)
public class OrderLastLogisticsInfoBO implements Serializable {
/**
* id
*/
private Integer id;
/**
* 收件区域编号
*/
private String areaNo;
/**
* 收件人名称
*/
private String name;
/**
* 收件手机号
*/
private String mobile;
/**
* 收件详细地址
*/
private String address;
/**
* 物流 (字典)
*/
private Integer logistics;
/**
* 物流 (字典) 转换后的值
*/
private String logisticsText;
/**
* 物流编号
*/
private String logisticsNo;
///
/// 物流信息
/**
* 最后一个物流信息
*/
private LogisticsDetail lastLogisticsDetail;
@Data
@Accessors(chain = true)
public static class LogisticsDetail {
/**
* id
*/
private Integer id;
/**
* 物流id
*/
private Integer orderLogisticsId;
/**
* 物流时间
*/
private Date logisticsTime;
/**
* 物流时间 text
*/
private String logisticsTimeText;
/**
* 物流信息
*/
private String logisticsInformation;
}
}

View File

@ -0,0 +1,41 @@
package cn.iocoder.mall.order.biz.bo;
import cn.iocoder.mall.mybatis.dataobject.BaseDO;
import lombok.Data;
import lombok.experimental.Accessors;
/**
* 订单物流信息
*
* @author Sin
* @time 2019-03-19 20:47
*/
@Data
@Accessors(chain = true)
public class OrderLogisticsBO extends BaseDO {
/**
* id
*/
private Integer id;
/**
* 收件区域编号
*/
private String areaNo;
/**
* 收件人名称
*/
private String name;
/**
* 收件手机号
*/
private String mobile;
/**
* 收件详细地址
*/
private String address;
/**
* 物流编号
*/
private String logisticsNo;
}

View File

@ -0,0 +1,82 @@
package cn.iocoder.mall.order.biz.bo;
import lombok.Data;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
/**
* 订单物流 - 详细信息
*
* @author Sin
* @time 2019-04-12 22:03
*/
@Data
@Accessors(chain = true)
public class OrderLogisticsInfoBO implements Serializable {
/**
* id
*/
private Integer id;
/**
* 收件区域编号
*/
private String areaNo;
/**
* 收件人名称
*/
private String name;
/**
* 收件手机号
*/
private String mobile;
/**
* 收件详细地址
*/
private String address;
/**
* 物流 (字典)
*/
private Integer logistics;
/**
* 物流 (字典) 转换后的值
*/
private String logisticsText;
/**
* 物流编号
*/
private String logisticsNo;
///
/// 物流信息
private List<LogisticsDetail> details;
@Data
@Accessors(chain = true)
public static class LogisticsDetail {
/**
* id
*/
private Integer id;
/**
* 物流id
*/
private Integer orderLogisticsId;
/**
* 物流时间
*/
private Date logisticsTime;
/**
* 物流时间 text
*/
private String logisticsTimeText;
/**
* 物流信息
*/
private String logisticsInformation;
}
}

View File

@ -0,0 +1,100 @@
package cn.iocoder.mall.order.biz.bo;
import lombok.Data;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
/**
* 订单物流 - 详细信息
*
* @author Sin
* @time 2019-04-12 22:03
*/
@Data
@Accessors(chain = true)
public class OrderLogisticsInfoWithOrderBO implements Serializable {
/**
* 订单id
*/
private Integer orderId;
/**
* 订单编号
*/
private String orderNo;
/**
* 物流信息
*/
private List<Logistics> logistics;
@Data
@Accessors(chain = true)
public static class Logistics {
/**
* id
*/
private Integer id;
/**
* 收件区域编号
*/
private String areaNo;
/**
* 收件人名称
*/
private String name;
/**
* 收件手机号
*/
private String mobile;
/**
* 收件详细地址
*/
private String address;
/**
* 物流 (字典)
*/
private Integer logistics;
/**
* 物流 (字典) 转换后的值
*/
private String logisticsText;
/**
* 物流编号
*/
private String logisticsNo;
///
/// 物流信息
private List<LogisticsDetail> details;
}
@Data
@Accessors(chain = true)
public static class LogisticsDetail {
/**
* id
*/
private Integer id;
/**
* 物流id
*/
private Integer orderLogisticsId;
/**
* 物流时间
*/
private Date logisticsTime;
/**
* 物流时间 text
*/
private String logisticsTimeText;
/**
* 物流信息
*/
private String logisticsInformation;
}
}

View File

@ -0,0 +1,28 @@
package cn.iocoder.mall.order.biz.bo;
import lombok.Data;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.List;
/**
* 订单分页
*
* @author Sin
* @time 2019-03-27 21:27
*/
@Data
@Accessors(chain = true)
public class OrderPageBO implements Serializable {
/**
* 总条数
*/
private Integer total;
/**
* 订单列表
*/
private List<OrderBO> orders;
}

View File

@ -0,0 +1,12 @@
package cn.iocoder.mall.order.biz.bo;
import java.io.Serializable;
/**
* 订单支付信息返回
*
* @author Sin
* @time 2019-04-08 19:39
*/
public class OrderPayBO implements Serializable {
}

View File

@ -0,0 +1,45 @@
package cn.iocoder.mall.order.biz.bo;
import cn.iocoder.mall.mybatis.dataobject.BaseDO;
import lombok.Data;
import lombok.experimental.Accessors;
/**
* 订单收件人信息 order_recipient
*
* @author Sin
* @time 2019-03-31 11:37
*/
@Data
@Accessors(chain = true)
public class OrderRecipientBO extends BaseDO { // TODO FROM 芋艿 TO 小范不要继承 BaseDO
/**
* 编号
*/
private Integer id;
/**
* 订单id
*/
private Integer orderId;
/**
* 收件区域编号
*/
private String areaNo;
/**
* 收件人名称
*/
private String name;
/**
* 收件手机号
*/
private String mobile;
/**
* 手机方式
*/
private Integer type;
/**
* 收件详细地址
*/
private String address;
}

View File

@ -0,0 +1,141 @@
package cn.iocoder.mall.order.biz.bo;
import lombok.Data;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
/**
* 订单退货 info
*
* @author Sin
* @time 2019-04-27 10:19
*/
@Data
@Accessors(chain = true)
public class OrderReturnInfoBO implements Serializable {
/**
* 退货信息
*/
private ReturnInfo returnInfo;
/**
* 订单 item
*/
private List<OrderItem> orderItems;
/**
* 最后一个物流信息/最新物流信息
*/
private OrderLastLogisticsInfoBO lastLogisticsInfo;
@Data
@Accessors(chain = true)
public static class OrderItem {
/**
* 商品编号
*/
private Integer skuId;
/**
* 商品名称
*/
private String skuName;
/**
* 商品图片
*/
private String skuImage;
/**
* 数量
*/
private Integer quantity;
/**
* 最终总金额单位
*/
private Integer presentTotal;
}
@Data
@Accessors(chain = true)
public static class ReturnInfo {
/**
* 编号自动增长
*/
private Integer id;
/**
* 服务号
*/
private String serviceNumber;
/**
* 订单编号
*/
private Integer orderId;
/**
* 订单号 保存一个冗余
*/
private String orderNo;
/**
* 物流id
*/
private Integer orderLogisticsId;
///
/// 退货原因
/**
* 退货金额
*/
private Integer refundPrice;
/**
* 退货原因(字典值)
*/
private Integer reason;
/**
* 问题描述
*/
private String describe;
///
/// 时间信息
/**
* 同意时间
*/
private Date approvalTime;
/**
* 物流时间填写物流单号时间
*/
private Date logisticsTime;
/**
* 收货时间
*/
private Date receiverTime;
/**
* 成交时间确认时间
*/
private Date closingTime;
/**
* 退款类型
*
* - 1退货退款
* - 2退款
*/
private Integer serviceType;
/**
* 退款类型 转换值
*/
private String serviceTypeText;
/**
* 状态
*
* - 1退货申请
* - 2申请成功
* - 3申请失败
* - 4退货中
* - 5退货成功
*/
private Integer status;
}
}

View File

@ -0,0 +1,122 @@
package cn.iocoder.mall.order.biz.bo;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import lombok.Data;
import lombok.experimental.Accessors;
/**
* 订单退货 list
*
* @author Sin
* @time 2019-05-06 21:54
*/
@Data
@Accessors(chain = true)
public class OrderReturnListBO implements Serializable {
/**
* 分页当前 index
*/
private Integer index;
/**
* pageSize
*/
private Integer pageSize;
/**
* totalCount
*/
private Integer totalCount;
/**
* data
*/
private List<OrderReturn> data;
@Data
@Accessors(chain = true)
public static class OrderReturn {
/**
* 编号自动增长
*/
private Integer id;
/**
* 服务号
*/
private String serviceNumber;
/**
* 订单编号
*/
private Integer orderId;
/**
* 订单号 保存一个冗余
*/
private String orderNo;
/**
* 物流id
*/
private Integer orderLogisticsId;
///
/// 退货原因
/**
* 退货金额
*/
private Integer refundPrice;
/**
* 退货原因(字典值)
*/
private Integer reason;
/**
* 问题描述
*/
private String describe;
///
/// 时间信息
/**
* 同意时间
*/
private Date approvalTime;
/**
* 物流时间填写物流单号时间
*/
private Date logisticsTime;
/**
* 收货时间
*/
private Date receiverTime;
/**
* 成交时间确认时间
*/
private Date closingTime;
/**
* 服务类型
*
* - 1退货退款
* - 2退款
*/
private Integer serviceType;
/**
* 状态
*
* - 1退货申请
* - 2申请成功
* - 3申请失败
* - 4退货中
* - 5退货成功
*/
private Integer status;
/**
* 创建时间
*/
private Date createTime;
/**
* 更新时间
*/
private Date updateTime;
}
}

View File

@ -0,0 +1,14 @@
package cn.iocoder.mall.order.biz.bo;
public class PostageDetailBO {
// "description": "有品甄选商品即有品配送和第三方商家发货的商品2018年1月1日起单笔订单满99元免运费不满99元收10元运费。",
// "leftTotal": "0.00",
// "merchantName": "有品配送",
// "postFee": "0.00",
// "postage": "10.00",
// "postageType": 0,
// "selCount": 14,
// "threshold": "99.00"
}

View File

@ -1,12 +1,8 @@
package cn.iocoder.mall.order.biz.bo.order; package cn.iocoder.mall.order.biz.bo.order;
import cn.iocoder.mall.product.api.bo.ProductSkuDetailBO;
import cn.iocoder.mall.promotion.api.bo.PromotionActivityBO;
import lombok.Data; import lombok.Data;
import lombok.experimental.Accessors; import lombok.experimental.Accessors;
import java.util.List;
/** /**
* 计算订单价格结果 BO * 计算订单价格结果 BO
*/ */
@ -14,167 +10,167 @@ import java.util.List;
@Accessors(chain = true) @Accessors(chain = true)
public class CalcOrderPriceBO { public class CalcOrderPriceBO {
/** // /**
* 商品分组数组 // * 商品分组数组
*/ // */
private List<ItemGroup> itemGroups; // private List<ItemGroup> itemGroups;
/** // /**
* 优惠劵编号 // * 优惠劵编号
*/ // */
private Integer couponCardId; // private Integer couponCardId;
/** // /**
* 优惠劵减少的金额 // * 优惠劵减少的金额
* // *
* 1. 若未使用优惠劵返回 null // * 1. 若未使用优惠劵返回 null
* 2. 该金额已经分摊到每个 Item discountTotal 需要注意 // * 2. 该金额已经分摊到每个 Item discountTotal 需要注意
*/ // */
private Integer couponCardDiscountTotal; // private Integer couponCardDiscountTotal;
/** // /**
* 邮费信息 // * 邮费信息
* // *
* TODO 芋艿暂时未弄 // * TODO 芋艿暂时未弄
*/ // */
private Postage postage; // private Postage postage;
/** // /**
* 费用 // * 费用
*/ // */
private Fee fee; // private Fee fee;
//
/** // /**
* 商品分组 // * 商品分组
* // *
* 多个商品参加同一个活动从而形成分组 // * 多个商品参加同一个活动从而形成分组
*/ // */
@Data // @Data
@Accessors(chain = true) // @Accessors(chain = true)
public static class ItemGroup { // public static class ItemGroup {
//
/**
* 优惠活动
*/
// TODO 芋艿目前只会有满减送的情况未来有新的促销方式可能需要改成数组
private PromotionActivityBO activity;
/**
* 促销减少的金额
*
* 1. 若未参与促销活动或不满足促销条件返回 null
* 2. 该金额已经分摊到每个 Item discountTotal 需要注意
*/
private Integer activityDiscountTotal;
/**
* 商品数组
*/
private List<Item> items;
// /** // /**
// * 费用 // * 优惠活动
// *
// * TODO 芋艿这里先偷懒postageTotal 字段用不到
// */ // */
// private Fee fee; // 注释原因不用这里了 // // TODO 芋艿目前只会有满减送的情况未来有新的促销方式可能需要改成数组
// private PromotionActivityBO activity;
} // /**
// * 促销减少的金额
@Data // *
@Accessors(chain = true) // * 1. 若未参与促销活动或不满足促销条件返回 null
public static class Item extends ProductSkuDetailBO { // TODO 芋艿此处先偷懒继承 // * 2. 该金额已经分摊到每个 Item discountTotal 需要注意
// */
/** // private Integer activityDiscountTotal;
* 是否选中 // /**
*/ // * 商品数组
private Boolean selected; // */
/** // private List<Item> items;
* 购买数量 //// /**
*/ //// * 费用
private Integer buyQuantity; //// *
/** //// * TODO 芋艿这里先偷懒postageTotal 字段用不到
* 优惠活动 //// */
*/ //// private Fee fee; // 注释原因不用这里了
private PromotionActivityBO activity; //
/** // }
* 原始单价单位 //
*/ // @Data
private Integer originPrice; // @Accessors(chain = true)
/** // public static class Item extends ProductSkuDetailBO { // TODO 芋艿此处先偷懒继承
* 购买单价单位 //
*/ // /**
private Integer buyPrice; // * 是否选中
/** // */
* 最终价格单位 // private Boolean selected;
*/ // /**
private Integer presentPrice; // * 购买数量
/** // */
* 购买总金额单位 // private Integer buyQuantity;
* // /**
* 用途类似 {@link #presentTotal} // * 优惠活动
*/ // */
private Integer buyTotal; // private PromotionActivityBO activity;
/** // /**
* 优惠总金额单位 // * 原始单价单位
*/ // */
private Integer discountTotal; // private Integer originPrice;
/** // /**
* 最终总金额单位 // * 购买单价单位
* // */
* 注意presentPrice * quantity 不一定等于 presentTotal // private Integer buyPrice;
* 因为存在无法整除的情况 // /**
* 举个例子presentPrice = 8.33 quantity = 3 的情况presentTotal 有可能是 24.99 也可能是 25 // * 最终价格单位
* 所以需要存储一个该字段 // */
*/ // private Integer presentPrice;
private Integer presentTotal; // /**
// * 购买总金额单位
} // *
// * 用途类似 {@link #presentTotal}
/** // */
* 费用合计 // private Integer buyTotal;
*/ // /**
@Data // * 优惠总金额单位
@Accessors(chain = true) // */
public static class Fee { // private Integer discountTotal;
// /**
/** // * 最终总金额单位
* 购买总价 // *
*/ // * 注意presentPrice * quantity 不一定等于 presentTotal
private Integer buyTotal; // * 因为存在无法整除的情况
/** // * 举个例子presentPrice = 8.33 quantity = 3 的情况presentTotal 有可能是 24.99 也可能是 25
* 优惠总价 // * 所以需要存储一个该字段
* // */
* 注意满多少元包邮不算在优惠中 // private Integer presentTotal;
*/ //
private Integer discountTotal; // }
/** //
* 邮费 TODO 芋艿 postage 改成 logistics // /**
*/ // * 费用合计
private Integer postageTotal; // */
/** // @Data
* 最终价格 // @Accessors(chain = true)
* // public static class Fee {
* 计算公式 = 总价 - 优惠总价 + 邮费 //
*/ // /**
private Integer presentTotal; // * 购买总价
// */
public Fee() { // private Integer buyTotal;
} // /**
// * 优惠总价
public Fee(Integer buyTotal, Integer discountTotal, Integer postageTotal, Integer presentTotal) { // *
this.buyTotal = buyTotal; // * 注意满多少元包邮不算在优惠中
this.discountTotal = discountTotal; // */
this.postageTotal = postageTotal; // private Integer discountTotal;
this.presentTotal = presentTotal; // /**
} // * 邮费 TODO 芋艿 postage 改成 logistics
} // */
// private Integer postageTotal;
/** // /**
* 邮费信息 // * 最终价格
*/ // *
@Data // * 计算公式 = 总价 - 优惠总价 + 邮费
@Accessors(chain = true) // */
public static class Postage { // private Integer presentTotal;
//
/** // public Fee() {
* 需要满足多少钱可以包邮单位 // }
*/ //
private Integer threshold; // public Fee(Integer buyTotal, Integer discountTotal, Integer postageTotal, Integer presentTotal) {
// this.buyTotal = buyTotal;
} // this.discountTotal = discountTotal;
// this.postageTotal = postageTotal;
// this.presentTotal = presentTotal;
// }
// }
//
// /**
// * 邮费信息
// */
// @Data
// @Accessors(chain = true)
// public static class Postage {
//
// /**
// * 需要满足多少钱可以包邮单位
// */
// private Integer threshold;
//
// }
} }

View File

@ -1,11 +1,9 @@
package cn.iocoder.mall.order.biz.bo.order; package cn.iocoder.mall.order.biz.bo.order;
import cn.iocoder.mall.promotion.api.bo.PromotionActivityBO; import java.io.Serializable;
import lombok.Data; import lombok.Data;
import lombok.experimental.Accessors; import lombok.experimental.Accessors;
import java.io.Serializable;
/** /**
* 计算商品 SKU 价格结果 BO * 计算商品 SKU 价格结果 BO
*/ */
@ -13,21 +11,21 @@ import java.io.Serializable;
@Accessors(chain = true) @Accessors(chain = true)
public class CalcSkuPriceBO implements Serializable { public class CalcSkuPriceBO implements Serializable {
/** // /**
* 满减送促销活动 // * 满减送促销活动
*/ // */
private PromotionActivityBO fullPrivilege; // private PromotionActivityBO fullPrivilege;
/** // /**
* 限时折扣促销活动 // * 限时折扣促销活动
*/ // */
private PromotionActivityBO timeLimitedDiscount; // private PromotionActivityBO timeLimitedDiscount;
/** // /**
* 原价格单位 // * 原价格单位
*/ // */
private Integer originalPrice; // private Integer originalPrice;
/** // /**
* 购买价格单位 // * 购买价格单位
*/ // */
private Integer buyPrice; // private Integer buyPrice;
} }

View File

@ -1,6 +1,6 @@
package cn.iocoder.mall.order.biz.bo.order; package cn.iocoder.mall.order.biz.bo.order;
import cn.iocoder.common.framework.dataobject.BaseDO; import cn.iocoder.mall.mybatis.dataobject.BaseDO;
import lombok.Data; import lombok.Data;
import lombok.experimental.Accessors; import lombok.experimental.Accessors;

View File

@ -1,6 +1,6 @@
package cn.iocoder.mall.order.biz.bo.order; package cn.iocoder.mall.order.biz.bo.order;
import cn.iocoder.common.framework.dataobject.BaseDO; import cn.iocoder.mall.mybatis.dataobject.BaseDO;
import lombok.Data; import lombok.Data;
import lombok.experimental.Accessors; import lombok.experimental.Accessors;

View File

@ -1,12 +1,10 @@
package cn.iocoder.mall.order.biz.bo.order; package cn.iocoder.mall.order.biz.bo.order;
import cn.iocoder.common.framework.dataobject.BaseDO;
import lombok.Data;
import lombok.experimental.Accessors;
import java.io.Serializable; import java.io.Serializable;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
import lombok.Data;
import lombok.experimental.Accessors;
/** /**
* 订单退货 list * 订单退货 list

View File

@ -1,12 +1,7 @@
package cn.iocoder.mall.order.biz.dao.order; package cn.iocoder.mall.order.biz.dao.order;
import cn.iocoder.mall.order.api.dto.OrderReturnQueryDTO;
import cn.iocoder.mall.order.biz.dataobject.OrderReturnDO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository; import org.springframework.stereotype.Repository;
import java.util.List;
/** /**
* 订单退货 mapper * 订单退货 mapper
* *
@ -16,53 +11,53 @@ import java.util.List;
@Repository @Repository
public interface OrderReturnMapper { public interface OrderReturnMapper {
/** // /**
* 插入 - 退货信息 // * 插入 - 退货信息
* // *
* @param orderReturnDO // * @param orderReturnDO
* @return // * @return
*/ // */
int insert(OrderReturnDO orderReturnDO); // int insert(OrderReturnDO orderReturnDO);
//
/** // /**
* 更新 - 根据 orderId // * 更新 - 根据 orderId
* // *
* @param orderReturnDO // * @param orderReturnDO
* @return // * @return
*/ // */
int updateById(OrderReturnDO orderReturnDO); // int updateById(OrderReturnDO orderReturnDO);
//
/** // /**
* 查询 - 根据 orderId // * 查询 - 根据 orderId
* // *
* @param orderId // * @param orderId
* @return // * @return
*/ // */
OrderReturnDO selectByOrderId( // OrderReturnDO selectByOrderId(
@Param("orderId") Integer orderId // @Param("orderId") Integer orderId
); // );
//
/** // /**
* 列表查询 - queryDTO // * 列表查询 - queryDTO
* // *
* @param queryDTO // * @param queryDTO
* @return // * @return
*/ // */
int selectListCount(OrderReturnQueryDTO queryDTO); // int selectListCount(OrderReturnQueryDTO queryDTO);
//
/** // /**
* 列表查询 - queryDTO // * 列表查询 - queryDTO
* // *
* @param queryDTO // * @param queryDTO
* @return // * @return
*/ // */
List<OrderReturnDO> selectList(OrderReturnQueryDTO queryDTO); // List<OrderReturnDO> selectList(OrderReturnQueryDTO queryDTO);
//
/** // /**
* 查询 - 根据 id 查询 // * 查询 - 根据 id 查询
* // *
* @param id // * @param id
* @return // * @return
*/ // */
OrderReturnDO selectById(Integer id); // OrderReturnDO selectById(Integer id);
} }

View File

@ -25,12 +25,6 @@
<!-- <module>search</module>--> <!-- <module>search</module>-->
<!-- <module>demo</module>--> <!-- <module>demo</module>-->
<module>mall-dependencies</module> <module>mall-dependencies</module>
<module>order-biz</module>
<module>order/order-biz</module>
<module>order/order-biz-api</module>
<module>order/order-rpc</module>
<module>order/order-rpc-api</module>
<module>order-rest</module>
<module>mall-spring-boot-starter-cache</module> <module>mall-spring-boot-starter-cache</module>
</modules> </modules>
<packaging>pom</packaging> <packaging>pom</packaging>