|
|
@@ -3,6 +3,7 @@ package com.sckw.transport.controller;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.sckw.core.web.constant.HttpStatus;
|
|
|
import com.sckw.core.web.response.HttpResult;
|
|
|
+import com.sckw.transport.model.dto.OrderFinishDTO;
|
|
|
import com.sckw.transport.model.param.LogisticsConsignmentParam;
|
|
|
import com.sckw.transport.service.LogisticsConsignmentService;
|
|
|
import jakarta.validation.Valid;
|
|
|
@@ -108,6 +109,22 @@ public class LogisticsConsignmentController {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 采购订单-托运订单列表-完结订单
|
|
|
+ * @param OrderFinishDTO
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @Validated
|
|
|
+ @RequestMapping(value = "/purchaseOrderFinish", method = RequestMethod.POST)
|
|
|
+ public HttpResult purchaseOrderFinish(@RequestBody @Validated OrderFinishDTO OrderFinishDTO) {
|
|
|
+ log.info("采购订单-托运订单列表-完结订单 传递参数信息:{}", JSONObject.toJSONString(OrderFinishDTO));
|
|
|
+ try {
|
|
|
+ return logisticsConsignmentService.orderFinish(OrderFinishDTO, "1");
|
|
|
+ } catch (Exception e) {
|
|
|
+ log.error("采购订单-托运订单列表-完结订单 error :{}", e.getMessage(), e);
|
|
|
+ return HttpResult.error(HttpStatus.GLOBAL_EXCEPTION_CODE, e.getMessage());
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
|
|
|
/**
|
|
|
@@ -183,4 +200,20 @@ public class LogisticsConsignmentController {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 销售订单-托运订单列表-完结订单
|
|
|
+ * @param orderFinishDTO
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @Validated
|
|
|
+ @RequestMapping(value = "/sellOrderFinish", method = RequestMethod.POST)
|
|
|
+ public HttpResult sellOrderFinish(@RequestBody @Validated OrderFinishDTO orderFinishDTO) {
|
|
|
+ log.info("采购订单-托运订单列表-完结订单 传递参数信息:{}", JSONObject.toJSONString(orderFinishDTO));
|
|
|
+ try {
|
|
|
+ return logisticsConsignmentService.orderFinish(orderFinishDTO, "2");
|
|
|
+ } catch (Exception e) {
|
|
|
+ log.error("采购订单-托运订单列表-完结订单 error :{}", e.getMessage(), e);
|
|
|
+ return HttpResult.error(HttpStatus.GLOBAL_EXCEPTION_CODE, e.getMessage());
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|