...
|
...
|
@@ -428,12 +428,16 @@ public class BuyerOrderController { |
|
|
}
|
|
|
|
|
|
@RequestMapping(value = "/getSfWaybillCode")
|
|
|
public ApiResponse getSfWaybillCode(BuyerOrderReq req) {
|
|
|
public ApiResponse generateSfWaybillCode(BuyerOrderReq req) {
|
|
|
LOGGER.info("getSfWaybillCode in. param is {}", req);
|
|
|
if(StringUtils.isEmpty(req.getOrderCode()) || null == req.getPayMethod()) {
|
|
|
return new ApiResponse.ApiResponseBuilder().code(400).data("").message("订单号或付款方式不能为空").build();
|
|
|
}
|
|
|
JSONObject result = buyerOrderService.getSfWaybillCode(req);
|
|
|
|
|
|
|
|
|
LOGGER.info("getSfWaybillCode out. param is {}, result is {}", req, result);
|
|
|
|
|
|
if(null == result) {
|
|
|
return new ApiResponse.ApiResponseBuilder().code(500).message("查询失败").data(result).build();
|
|
|
}else if(null != result.getInteger("code") && result.getIntValue("code") != 200) {
|
...
|
...
|
|