- 零零碎碎的
- 退货申请,物流信息
This commit is contained in:
@@ -1,10 +1,9 @@
|
||||
package cn.iocoder.mall.order.api;
|
||||
|
||||
import cn.iocoder.common.framework.vo.CommonResult;
|
||||
import cn.iocoder.mall.order.api.bo.OrderLogisticsBO;
|
||||
import cn.iocoder.mall.order.api.bo.OrderLastLogisticsInfoBO;
|
||||
import cn.iocoder.mall.order.api.bo.OrderLogisticsInfoBO;
|
||||
|
||||
import java.util.List;
|
||||
import cn.iocoder.mall.order.api.bo.OrderLogisticsInfoWithOrderBO;
|
||||
|
||||
/**
|
||||
* 订单物流信息
|
||||
@@ -14,13 +13,31 @@ import java.util.List;
|
||||
*/
|
||||
public interface OrderLogisticsService {
|
||||
|
||||
|
||||
/**
|
||||
* 物流信息
|
||||
* 获取物流信息 - 根据id
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
CommonResult<OrderLogisticsInfoBO> getLogisticsInfo(Integer id);
|
||||
|
||||
|
||||
/**
|
||||
* 获取 last 物流信息 - 根据id
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
CommonResult<OrderLastLogisticsInfoBO> getLastLogisticsInfo(Integer id);
|
||||
|
||||
/**
|
||||
* 获取物流信息 - 根据 orderId
|
||||
*
|
||||
* @param userId
|
||||
* @param orderId
|
||||
* @return
|
||||
*/
|
||||
CommonResult<OrderLogisticsInfoBO> logisticsInfo(Integer userId, Integer orderId);
|
||||
CommonResult<OrderLogisticsInfoWithOrderBO> getOrderLogisticsInfo(Integer userId, Integer orderId);
|
||||
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package cn.iocoder.mall.order.api;
|
||||
|
||||
import cn.iocoder.common.framework.vo.CommonResult;
|
||||
import cn.iocoder.mall.order.api.bo.OrderReturnInfoBO;
|
||||
import cn.iocoder.mall.order.api.dto.OrderReturnApplyDTO;
|
||||
|
||||
/**
|
||||
@@ -38,5 +39,5 @@ public interface OrderReturnService {
|
||||
* @param orderId
|
||||
* @return
|
||||
*/
|
||||
CommonResult orderApplyInfo(Integer orderId);
|
||||
CommonResult<OrderReturnInfoBO> orderApplyInfo(Integer orderId);
|
||||
}
|
||||
|
||||
@@ -18,60 +18,42 @@ import java.util.List;
|
||||
public class OrderLogisticsInfoBO implements Serializable {
|
||||
|
||||
/**
|
||||
* 订单id
|
||||
* id
|
||||
*/
|
||||
private Integer orderId;
|
||||
private Integer id;
|
||||
/**
|
||||
* 订单编号
|
||||
* 收件区域编号
|
||||
*/
|
||||
private String orderNo;
|
||||
private String areaNo;
|
||||
/**
|
||||
* 物流信息
|
||||
* 收件人名称
|
||||
*/
|
||||
private List<Logistics> logistics;
|
||||
private String name;
|
||||
/**
|
||||
* 收件手机号
|
||||
*/
|
||||
private String mobile;
|
||||
/**
|
||||
* 收件详细地址
|
||||
*/
|
||||
private String address;
|
||||
/**
|
||||
* 物流 (字典)
|
||||
*/
|
||||
private Integer logistics;
|
||||
/**
|
||||
* 物流 (字典) 转换后的值
|
||||
*/
|
||||
private String logisticsText;
|
||||
/**
|
||||
* 物流编号
|
||||
*/
|
||||
private String logisticsNo;
|
||||
|
||||
@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;
|
||||
}
|
||||
private List<LogisticsDetail> details;
|
||||
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
|
||||
@@ -25,6 +25,10 @@ public class OrderReturnInfoBO implements Serializable {
|
||||
* 订单 item
|
||||
*/
|
||||
private List<OrderItem> orderItems;
|
||||
/**
|
||||
* 最后一个物流信息/最新物流信息
|
||||
*/
|
||||
private OrderLastLogisticsInfoBO lastLogisticsInfo;
|
||||
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
@@ -80,6 +84,10 @@ public class OrderReturnInfoBO implements Serializable {
|
||||
///
|
||||
/// 退货原因
|
||||
|
||||
/**
|
||||
* 退货金额
|
||||
*/
|
||||
private Integer refundPrice;
|
||||
/**
|
||||
* 退货原因(字典值)
|
||||
*/
|
||||
|
||||
@@ -42,6 +42,7 @@ public enum OrderErrorCodeEnum {
|
||||
|
||||
// 工具类服务 1008004000
|
||||
DICT_SERVER_INVOKING_FAIL(1008004000, "字典服务调用失败!"),
|
||||
ORDER_LOGISTICS_INVOKING_FAIL(1008004001, "订单物流调用失败!"),
|
||||
|
||||
|
||||
;
|
||||
|
||||
Reference in New Issue
Block a user