|
@@ -13,27 +13,42 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @author lfdc
|
|
* @author lfdc
|
|
|
- * @description 托运订单/承运订单-物流托运Controller
|
|
|
|
|
|
|
+ * @description 采购订单/销售订单-物流托运Controller
|
|
|
* @date 2023-06-28 11:06:06
|
|
* @date 2023-06-28 11:06:06
|
|
|
*/
|
|
*/
|
|
|
@Slf4j
|
|
@Slf4j
|
|
|
@RestController
|
|
@RestController
|
|
|
@RequiredArgsConstructor
|
|
@RequiredArgsConstructor
|
|
|
-@RequestMapping(value = "/logisticsConsignment")
|
|
|
|
|
|
|
+@RequestMapping(value = "/kwtLogisticsConsignment")
|
|
|
public class LogisticsConsignmentController {
|
|
public class LogisticsConsignmentController {
|
|
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
|
LogisticsConsignmentService logisticsConsignmentService;
|
|
LogisticsConsignmentService logisticsConsignmentService;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
- * 托运订单/承运订单-物流托运
|
|
|
|
|
|
|
+ * 采购订单-物流托运
|
|
|
* @param query 查询参数
|
|
* @param query 查询参数
|
|
|
* @return
|
|
* @return
|
|
|
*/
|
|
*/
|
|
|
- @RequestMapping(value = "/subcontractConsignment", method = RequestMethod.POST)
|
|
|
|
|
- public HttpResult subcontractConsignment(AcceptCarriageOrderQuery query) {
|
|
|
|
|
|
|
+ @RequestMapping(value = "/purchaseLogisticsConsignment", method = RequestMethod.POST)
|
|
|
|
|
+ public HttpResult purchaseLogisticsConsignment(AcceptCarriageOrderQuery query) {
|
|
|
try {
|
|
try {
|
|
|
- return logisticsConsignmentService.subcontractConsignment(query);
|
|
|
|
|
|
|
+ return logisticsConsignmentService.purchaseLogisticsConsignment(query);
|
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
|
+ log.error("物流托运 error :{}", e.getMessage(), e);
|
|
|
|
|
+ return HttpResult.error(HttpStatus.GLOBAL_EXCEPTION_CODE, e.getMessage());
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 销售订单-物流托运
|
|
|
|
|
+ * @param query 查询参数
|
|
|
|
|
+ * @return
|
|
|
|
|
+ */
|
|
|
|
|
+ @RequestMapping(value = "/sellLogisticsConsignment", method = RequestMethod.POST)
|
|
|
|
|
+ public HttpResult sellLogisticsConsignment(AcceptCarriageOrderQuery query) {
|
|
|
|
|
+ try {
|
|
|
|
|
+ return logisticsConsignmentService.sellLogisticsConsignment(query);
|
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
|
log.error("物流托运 error :{}", e.getMessage(), e);
|
|
log.error("物流托运 error :{}", e.getMessage(), e);
|
|
|
return HttpResult.error(HttpStatus.GLOBAL_EXCEPTION_CODE, e.getMessage());
|
|
return HttpResult.error(HttpStatus.GLOBAL_EXCEPTION_CODE, e.getMessage());
|