...
|
...
|
@@ -4,10 +4,7 @@ import com.yohobuy.ufo.model.order.req.SellerDepositOrderComputeReq; |
|
|
import com.yohobuy.ufo.model.order.req.SellerDepositOrderDetailReq;
|
|
|
import com.yohobuy.ufo.model.order.req.SellerDepositOrderListReq;
|
|
|
import com.yohobuy.ufo.model.order.req.SellerDepositOrderSubmitReq;
|
|
|
import com.yohobuy.ufo.model.order.resp.SellerDepositOrderComputeResp;
|
|
|
import com.yohobuy.ufo.model.order.resp.SellerDepositOrderDetailResp;
|
|
|
import com.yohobuy.ufo.model.order.resp.SellerDepositOrderListResp;
|
|
|
import com.yohobuy.ufo.model.order.resp.SellerDepositOrderSubmitResp;
|
|
|
import com.yohobuy.ufo.model.order.resp.*;
|
|
|
import com.yohoufo.common.ApiResponse;
|
|
|
import com.yohoufo.order.service.seller.deposit.SellerDepositOrderService;
|
|
|
import com.yohoufo.order.utils.LoggerUtils;
|
...
|
...
|
@@ -42,10 +39,9 @@ public class SellerDepositOrderController { |
|
|
|
|
|
@RequestMapping(params = "method=ufo.depositOrder.submit")
|
|
|
public ApiResponse submit(@RequestParam(name = "uid")int uid,
|
|
|
@RequestParam(name = "goodsList")String goodsList,
|
|
|
@RequestParam(name = "addressId") String addressId){
|
|
|
@RequestParam(name = "goodsList")String goodsList){
|
|
|
SellerDepositOrderSubmitReq req = SellerDepositOrderSubmitReq.builder()
|
|
|
.uid(uid).goodsList(goodsList).addressId(addressId).build();
|
|
|
.uid(uid).goodsList(goodsList).build();
|
|
|
logger.info("in ufo.depositOrder.submit req {}", req);
|
|
|
SellerDepositOrderSubmitResp resp = sellerDepositOrderService.submit(req);
|
|
|
return new ApiResponse.ApiResponseBuilder()
|
...
|
...
|
@@ -63,14 +59,15 @@ public class SellerDepositOrderController { |
|
|
*/
|
|
|
@RequestMapping(params = "method=ufo.depositOrder.list")
|
|
|
public ApiResponse list(@RequestParam(name = "uid")int uid,
|
|
|
@RequestParam(name = "listType")int listType,
|
|
|
@RequestParam(value = "page", required = false, defaultValue = "1") int page,
|
|
|
@RequestParam(value = "limit", required = false, defaultValue = "10") int limit){
|
|
|
|
|
|
SellerDepositOrderListReq req = SellerDepositOrderListReq.builder()
|
|
|
.uid(uid).limit(limit).page(page).build();
|
|
|
.uid(uid).listType(listType).limit(limit).page(page).build();
|
|
|
|
|
|
logger.info("in ufo.depositOrder.list req {}", req);
|
|
|
SellerDepositOrderListResp resp = sellerDepositOrderService.getOrderList(req);
|
|
|
PageResp<SellerDepositOrderListResp> resp = sellerDepositOrderService.getOrderList(req);
|
|
|
return new ApiResponse.ApiResponseBuilder()
|
|
|
.code(200)
|
|
|
.data(resp)
|
...
|
...
|
@@ -92,4 +89,26 @@ public class SellerDepositOrderController { |
|
|
.message("寄存订单详情查询成功")
|
|
|
.build();
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 发货
|
|
|
* @param uid
|
|
|
* @param orderCode
|
|
|
* @param depotNum
|
|
|
* @param addressId
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping(params = "method=ufo.depositOrder.deliverToDepot")
|
|
|
public ApiResponse deliverToDepot(@RequestParam(name = "uid")int uid,
|
|
|
@RequestParam(name = "orderCode")long orderCode,
|
|
|
@RequestParam(name = "depotNum")int depotNum,
|
|
|
@RequestParam(name = "addressId") String addressId){
|
|
|
|
|
|
|
|
|
return new ApiResponse.ApiResponseBuilder()
|
|
|
.code(200)
|
|
|
.data(null)
|
|
|
.message("寄存订单发货录入成功")
|
|
|
.build();
|
|
|
}
|
|
|
} |
...
|
...
|
|