关务推送增加字段,发测试

This commit is contained in:
秦鸿展
2026-07-06 19:56:54 +08:00
parent 02acda9e23
commit 930894b37e
9 changed files with 26 additions and 37 deletions
@@ -825,6 +825,12 @@ public class OrderWithMaterialDTO {
@ApiModelProperty("贸易国地区")
private String tradeAreaCode;
@ApiModelProperty("境内货源地")
private String domesticSourcePlace;
@ApiModelProperty("最终目的国(地区)")
private String destinationCountry;
@ApiModelProperty("企业总价")
private BigDecimal entTotal;
@@ -210,6 +210,15 @@ public class OriginalImportExportDocumentApi extends BaseController {
// 贸易国地区(发货地 → ErpCountry
dto.setTradeAreaCode(lookupCountryCode(order.getLoadingAreaId(), order.getLoadingName()));
// 最终目的国(优先取订单填写,未填写则取收货地)
if (dto.getDestinationCountry() == null || dto.getDestinationCountry().isEmpty()) {
dto.setDestinationCountry(order.getUnloadName());
}
// 境内货源地(优先取订单填写,未填写则取发货地)
if (dto.getDomesticSourcePlace() == null || dto.getDomesticSourcePlace().isEmpty()) {
dto.setDomesticSourcePlace(order.getLoadingName());
}
// 原产国(直接取originCountry
dto.setCountryCode(dto.getOriginCountry());
@@ -247,6 +256,8 @@ public class OriginalImportExportDocumentApi extends BaseController {
}
@ApiOperation("批量推送")
@PostMapping("/batchPushForReviseApply")
public AjaxResult batchPushForReviseApply(@RequestBody BusinessDocumentOrderDTO businessDocumentOrderDTO){