|
@@ -9,6 +9,8 @@ import com.sckw.contract.model.vo.res.QueryLogisticListResp;
|
|
|
import com.sckw.contract.service.operateService.KwcContractLogisticsService;
|
|
import com.sckw.contract.service.operateService.KwcContractLogisticsService;
|
|
|
import com.sckw.core.web.response.BaseResult;
|
|
import com.sckw.core.web.response.BaseResult;
|
|
|
import com.sckw.core.web.response.result.PageDataResult;
|
|
import com.sckw.core.web.response.result.PageDataResult;
|
|
|
|
|
+import io.swagger.v3.oas.annotations.Operation;
|
|
|
|
|
+import io.swagger.v3.oas.annotations.tags.Tag;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
import lombok.RequiredArgsConstructor;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
@@ -24,6 +26,7 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
@RestController
|
|
@RestController
|
|
|
@RequestMapping("logisticsContract")
|
|
@RequestMapping("logisticsContract")
|
|
|
@RequiredArgsConstructor
|
|
@RequiredArgsConstructor
|
|
|
|
|
+@Tag(name = "物流合同接口")
|
|
|
public class KwcLogisticsContractController {
|
|
public class KwcLogisticsContractController {
|
|
|
private final KwcContractLogisticsService kwcContractLogisticsService;
|
|
private final KwcContractLogisticsService kwcContractLogisticsService;
|
|
|
|
|
|
|
@@ -35,12 +38,14 @@ public class KwcLogisticsContractController {
|
|
|
* @return HttpResult
|
|
* @return HttpResult
|
|
|
*/
|
|
*/
|
|
|
@PostMapping("/queryListByPage")
|
|
@PostMapping("/queryListByPage")
|
|
|
|
|
+ @Operation(summary = "分页查询物流合同")
|
|
|
public BaseResult<PageDataResult<QueryLogisticListResp>> queryListByPage(@RequestBody QueryLogisticListReq req) {
|
|
public BaseResult<PageDataResult<QueryLogisticListResp>> queryListByPage(@RequestBody QueryLogisticListReq req) {
|
|
|
return BaseResult.success(kwcContractLogisticsService.queryLogisticsContractListByPage(req));
|
|
return BaseResult.success(kwcContractLogisticsService.queryLogisticsContractListByPage(req));
|
|
|
}
|
|
}
|
|
|
/**
|
|
/**
|
|
|
* 新增物流合同
|
|
* 新增物流合同
|
|
|
*/
|
|
*/
|
|
|
|
|
+ @Operation(summary = "新增或者修改物流合同")
|
|
|
@PostMapping("/addOrUpdateLogisticsContract")
|
|
@PostMapping("/addOrUpdateLogisticsContract")
|
|
|
public BaseResult<Boolean> addOrUpdateLogisticsContract(@RequestBody LogisticListReq req) {
|
|
public BaseResult<Boolean> addOrUpdateLogisticsContract(@RequestBody LogisticListReq req) {
|
|
|
return BaseResult.success(kwcContractLogisticsService.addOrUpdateLogisticsContract(req));
|
|
return BaseResult.success(kwcContractLogisticsService.addOrUpdateLogisticsContract(req));
|
|
@@ -50,6 +55,7 @@ public class KwcLogisticsContractController {
|
|
|
* 查询物流合同明细
|
|
* 查询物流合同明细
|
|
|
*/
|
|
*/
|
|
|
@PostMapping("/queryLogisticsContractDetail")
|
|
@PostMapping("/queryLogisticsContractDetail")
|
|
|
|
|
+ @Operation(summary = "查询物流合同明细")
|
|
|
public BaseResult<QueryLogisticDetailResp> queryLogisticsContractDetail(@RequestBody ContractDetailReq req) {
|
|
public BaseResult<QueryLogisticDetailResp> queryLogisticsContractDetail(@RequestBody ContractDetailReq req) {
|
|
|
return BaseResult.success(kwcContractLogisticsService.queryLogisticsContractDetail(req)) ;
|
|
return BaseResult.success(kwcContractLogisticsService.queryLogisticsContractDetail(req)) ;
|
|
|
}
|
|
}
|
|
@@ -58,6 +64,7 @@ public class KwcLogisticsContractController {
|
|
|
* 修改合同状态
|
|
* 修改合同状态
|
|
|
*/
|
|
*/
|
|
|
@PostMapping("/updateLogistics")
|
|
@PostMapping("/updateLogistics")
|
|
|
|
|
+ @Operation(summary = "手动完结")
|
|
|
public BaseResult<Boolean> updateLogistics(@RequestBody UpdateLogisticsReq req) {
|
|
public BaseResult<Boolean> updateLogistics(@RequestBody UpdateLogisticsReq req) {
|
|
|
return BaseResult.success(kwcContractLogisticsService.updateLogistics(req));
|
|
return BaseResult.success(kwcContractLogisticsService.updateLogistics(req));
|
|
|
}
|
|
}
|