1.迁移order service 代码

2.先注释掉提示错误的代码,后续相关人员开发功能时自行解开
pull/2/MERGE
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;
import cn.iocoder.mall.product.api.bo.ProductSkuDetailBO;
import cn.iocoder.mall.promotion.api.bo.PromotionActivityBO;
import lombok.Data;
import lombok.experimental.Accessors;
import java.util.List;
/**
* BO
*/
@ -14,167 +10,167 @@ import java.util.List;
@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;
// /**
// * 商品分组数组
// */
// 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 芋艿这里先偷懒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;
}
// // 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

@ -1,11 +1,9 @@
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.experimental.Accessors;
import java.io.Serializable;
/**
* SKU BO
*/
@ -13,21 +11,21 @@ import java.io.Serializable;
@Accessors(chain = true)
public class CalcSkuPriceBO implements Serializable {
/**
*
*/
private PromotionActivityBO fullPrivilege;
/**
*
*/
private PromotionActivityBO timeLimitedDiscount;
/**
*
*/
private Integer originalPrice;
/**
*
*/
private Integer buyPrice;
// /**
// * 满减送促销活动
// */
// private PromotionActivityBO fullPrivilege;
// /**
// * 限时折扣促销活动
// */
// private PromotionActivityBO timeLimitedDiscount;
// /**
// * 原价格,单位:分。
// */
// private Integer originalPrice;
// /**
// * 购买价格,单位:分。
// */
// private Integer buyPrice;
}

View File

@ -1,6 +1,6 @@
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.experimental.Accessors;

View File

@ -1,6 +1,6 @@
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.experimental.Accessors;

View File

@ -1,12 +1,10 @@
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.util.Date;
import java.util.List;
import lombok.Data;
import lombok.experimental.Accessors;
/**
* 退 list

View File

@ -1,12 +1,7 @@
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 java.util.List;
/**
* 退 mapper
*
@ -16,53 +11,53 @@ import java.util.List;
@Repository
public interface OrderReturnMapper {
/**
* - 退
*
* @param orderReturnDO
* @return
*/
int insert(OrderReturnDO orderReturnDO);
/**
* - orderId
*
* @param orderReturnDO
* @return
*/
int updateById(OrderReturnDO orderReturnDO);
/**
* - orderId
*
* @param orderId
* @return
*/
OrderReturnDO selectByOrderId(
@Param("orderId") Integer orderId
);
/**
* - queryDTO
*
* @param queryDTO
* @return
*/
int selectListCount(OrderReturnQueryDTO queryDTO);
/**
* - queryDTO
*
* @param queryDTO
* @return
*/
List<OrderReturnDO> selectList(OrderReturnQueryDTO queryDTO);
/**
* - id
*
* @param id
* @return
*/
OrderReturnDO selectById(Integer id);
// /**
// * 插入 - 退货信息
// *
// * @param orderReturnDO
// * @return
// */
// int insert(OrderReturnDO orderReturnDO);
//
// /**
// * 更新 - 根据 orderId
// *
// * @param orderReturnDO
// * @return
// */
// int updateById(OrderReturnDO orderReturnDO);
//
// /**
// * 查询 - 根据 orderId
// *
// * @param orderId
// * @return
// */
// OrderReturnDO selectByOrderId(
// @Param("orderId") Integer orderId
// );
//
// /**
// * 列表查询 - queryDTO
// *
// * @param queryDTO
// * @return
// */
// int selectListCount(OrderReturnQueryDTO queryDTO);
//
// /**
// * 列表查询 - queryDTO
// *
// * @param queryDTO
// * @return
// */
// List<OrderReturnDO> selectList(OrderReturnQueryDTO queryDTO);
//
// /**
// * 查询 - 根据 id 查询
// *
// * @param id
// * @return
// */
// OrderReturnDO selectById(Integer id);
}

View File

@ -25,12 +25,6 @@
<!-- <module>search</module>-->
<!-- <module>demo</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>
</modules>
<packaging>pom</packaging>