define order status of deposit
Showing
3 changed files
with
49 additions
and
8 deletions
@@ -104,11 +104,38 @@ public class SellerDepositOrderController { | @@ -104,11 +104,38 @@ public class SellerDepositOrderController { | ||
104 | @RequestParam(name = "depotNum")int depotNum, | 104 | @RequestParam(name = "depotNum")int depotNum, |
105 | @RequestParam(name = "addressId") String addressId){ | 105 | @RequestParam(name = "addressId") String addressId){ |
106 | 106 | ||
107 | - | 107 | + sellerDepositOrderService.deliverToDepot(); |
108 | return new ApiResponse.ApiResponseBuilder() | 108 | return new ApiResponse.ApiResponseBuilder() |
109 | .code(200) | 109 | .code(200) |
110 | - .data(null) | ||
111 | .message("寄存订单发货录入成功") | 110 | .message("寄存订单发货录入成功") |
112 | .build(); | 111 | .build(); |
113 | } | 112 | } |
113 | + | ||
114 | + @RequestMapping(params = "method=ufo.depositOrder.skuList") | ||
115 | + public ApiResponse skuList(@RequestParam(name = "uid")int uid, | ||
116 | + @RequestParam(name = "orderCode")long orderCode){ | ||
117 | + SellerDepositOrderDetailReq req = SellerDepositOrderDetailReq.builder() | ||
118 | + .uid(uid).orderCode(orderCode).build(); | ||
119 | + PageResp<SellerDepositOrderSkuListResp> resp = sellerDepositOrderService.getSkuList(req); | ||
120 | + return new ApiResponse.ApiResponseBuilder() | ||
121 | + .code(200) | ||
122 | + .data(resp) | ||
123 | + .message("寄存订单商品详情查询成功") | ||
124 | + .build(); | ||
125 | + } | ||
126 | + | ||
127 | + | ||
128 | + @RequestMapping(params = "method=ufo.depositOrder.cancel") | ||
129 | + public ApiResponse cancel(@RequestParam(name = "uid")int uid, | ||
130 | + @RequestParam(name = "orderCode")long orderCode){ | ||
131 | + SellerDepositOrderDetailReq req = SellerDepositOrderDetailReq.builder() | ||
132 | + .uid(uid).orderCode(orderCode).build(); | ||
133 | + logger.info("in ufo.depositOrder.cancel req {}", req); | ||
134 | + sellerDepositOrderService.cancel(req); | ||
135 | + return new ApiResponse.ApiResponseBuilder() | ||
136 | + .code(200) | ||
137 | + .message("寄存订单取消成功") | ||
138 | + .build(); | ||
139 | + } | ||
140 | + | ||
114 | } | 141 | } |
@@ -242,15 +242,14 @@ public class AppraiseOrderService { | @@ -242,15 +242,14 @@ public class AppraiseOrderService { | ||
242 | Integer status = pao.getStatus(); | 242 | Integer status = pao.getStatus(); |
243 | 243 | ||
244 | AppraiseOrderStatus aos = AppraiseOrderStatus.getByCode(status); | 244 | AppraiseOrderStatus aos = AppraiseOrderStatus.getByCode(status); |
245 | - | ||
246 | - | 245 | + OrderAttributes oa = OrderAttributes.getOrderAttributes(pao.getAttributes()); |
247 | 246 | ||
248 | AppraiseOrderListResp resp = AppraiseOrderListResp.builder() | 247 | AppraiseOrderListResp resp = AppraiseOrderListResp.builder() |
249 | .uid(uid) | 248 | .uid(uid) |
250 | .orderCode(orderCode) | 249 | .orderCode(orderCode) |
251 | .goodsInfo(AppraiseOrderGoodsConvertor.do2Bo(paog)) | 250 | .goodsInfo(AppraiseOrderGoodsConvertor.do2Bo(paog)) |
252 | - .buttons(Objects.nonNull(aos) ? aos.listButtons() : null) | ||
253 | - .statuStr(Objects.nonNull(aos) ? aos.statusStr() : "") | 251 | + .buttons(Objects.nonNull(aos) ? aos.listButtons(oa) : null) |
252 | + .statuStr(Objects.nonNull(aos) ? aos.statusStr(oa) : "") | ||
254 | .status(status) | 253 | .status(status) |
255 | .build(); | 254 | .build(); |
256 | return resp; | 255 | return resp; |
@@ -282,8 +281,8 @@ public class AppraiseOrderService { | @@ -282,8 +281,8 @@ public class AppraiseOrderService { | ||
282 | // | 281 | // |
283 | OrderDetailInfo.StatusDetail statusDetail = OrderDetailInfo.StatusDetail | 282 | OrderDetailInfo.StatusDetail statusDetail = OrderDetailInfo.StatusDetail |
284 | .builder().status(status) | 283 | .builder().status(status) |
285 | - .statuStr(aos.statusStr()) | ||
286 | - .detailDesc(aos.detailDesc()).build(); | 284 | + .statuStr(aos.statusStr(oa)) |
285 | + .detailDesc(aos.detailDesc(oa)).build(); | ||
287 | // | 286 | // |
288 | String hidden_key = MetaKey.BUYER_DELIVERY_HIDDEN_ADDRESS; | 287 | String hidden_key = MetaKey.BUYER_DELIVERY_HIDDEN_ADDRESS; |
289 | AppraiseOrderMeta aomc = new AppraiseOrderMeta(); | 288 | AppraiseOrderMeta aomc = new AppraiseOrderMeta(); |
@@ -29,4 +29,19 @@ public class SellerDepositOrderService { | @@ -29,4 +29,19 @@ public class SellerDepositOrderService { | ||
29 | public SellerDepositOrderDetailResp getOrderDetail(SellerDepositOrderDetailReq req){ | 29 | public SellerDepositOrderDetailResp getOrderDetail(SellerDepositOrderDetailReq req){ |
30 | return null; | 30 | return null; |
31 | } | 31 | } |
32 | + | ||
33 | + | ||
34 | + public PageResp<SellerDepositOrderSkuListResp> getSkuList(SellerDepositOrderDetailReq req){ | ||
35 | + | ||
36 | + return null; | ||
37 | + } | ||
38 | + | ||
39 | + public void deliverToDepot(){ | ||
40 | + | ||
41 | + } | ||
42 | + | ||
43 | + | ||
44 | + public void cancel(SellerDepositOrderDetailReq req){ | ||
45 | + | ||
46 | + } | ||
32 | } | 47 | } |
-
Please register or login to post a comment