- 添加订单 info

This commit is contained in:
sin
2019-04-14 18:15:53 +08:00
parent 204452c9d0
commit 0ca854587e
18 changed files with 362 additions and 22 deletions

View File

@@ -38,6 +38,15 @@ public interface OrderService {
*/
CommonResult<OrderRecipientBO> getOrderRecipientBO(Integer orderId);
/**
* 订单info
*
* @param userId
* @param orderId
* @return
*/
CommonResult<OrderInfoBO> info(Integer userId, Integer orderId);
/**
* 订单 - 创建
*

View File

@@ -0,0 +1,148 @@
package cn.iocoder.mall.order.api.bo;
import lombok.Data;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
/**
* 订单 info
*
* @author Sin
* @time 2019-04-14 15:36
*/
@Data
@Accessors(chain = true)
public class OrderInfoBO implements Serializable {
/**
* 订单编号
*/
private String orderNo;
/**
* 价格(分)
*/
private Integer price;
/**
* 交易金额
*/
private Integer payAmount;
/**
* 物流金额 (分)
*/
private Integer logisticsPrice;
/**
* 付款时间(待发货)
*/
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;
@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,15 @@
package cn.iocoder.mall.order.api.constant;
/**
* 字典 keys 定义
*
* @author Sin
* @time 2019-04-14 17:46
*/
public class DictKeysConstants {
/**
* 订单 - status
*/
public static final String ORDER_STATUS_KEY = "order_status";
}