...
|
...
|
@@ -104,11 +104,38 @@ public class SellerDepositOrderController { |
|
|
@RequestParam(name = "depotNum")int depotNum,
|
|
|
@RequestParam(name = "addressId") String addressId){
|
|
|
|
|
|
|
|
|
sellerDepositOrderService.deliverToDepot();
|
|
|
return new ApiResponse.ApiResponseBuilder()
|
|
|
.code(200)
|
|
|
.data(null)
|
|
|
.message("寄存订单发货录入成功")
|
|
|
.build();
|
|
|
}
|
|
|
|
|
|
@RequestMapping(params = "method=ufo.depositOrder.skuList")
|
|
|
public ApiResponse skuList(@RequestParam(name = "uid")int uid,
|
|
|
@RequestParam(name = "orderCode")long orderCode){
|
|
|
SellerDepositOrderDetailReq req = SellerDepositOrderDetailReq.builder()
|
|
|
.uid(uid).orderCode(orderCode).build();
|
|
|
PageResp<SellerDepositOrderSkuListResp> resp = sellerDepositOrderService.getSkuList(req);
|
|
|
return new ApiResponse.ApiResponseBuilder()
|
|
|
.code(200)
|
|
|
.data(resp)
|
|
|
.message("寄存订单商品详情查询成功")
|
|
|
.build();
|
|
|
}
|
|
|
|
|
|
|
|
|
@RequestMapping(params = "method=ufo.depositOrder.cancel")
|
|
|
public ApiResponse cancel(@RequestParam(name = "uid")int uid,
|
|
|
@RequestParam(name = "orderCode")long orderCode){
|
|
|
SellerDepositOrderDetailReq req = SellerDepositOrderDetailReq.builder()
|
|
|
.uid(uid).orderCode(orderCode).build();
|
|
|
logger.info("in ufo.depositOrder.cancel req {}", req);
|
|
|
sellerDepositOrderService.cancel(req);
|
|
|
return new ApiResponse.ApiResponseBuilder()
|
|
|
.code(200)
|
|
|
.message("寄存订单取消成功")
|
|
|
.build();
|
|
|
}
|
|
|
|
|
|
} |
...
|
...
|
|