Browse Source

永发 禅道 2025-04-29 bug修改

纪新园 8 months ago
parent
commit
b3d75cc6ea

+ 1 - 0
blade-service-api/blade-los-api/src/main/java/org/springblade/los/box/entity/TradingBox.java

@@ -86,6 +86,7 @@ public class TradingBox implements Serializable {
 	 * 买入时间
 	 */
 	@ApiModelProperty(value = "买入时间")
+	@TableField(updateStrategy = FieldStrategy.IGNORED)
 	private Date purchaseDate;
 	/**
 	 * 备注

+ 1 - 1
blade-service-api/blade-los-api/src/main/java/org/springblade/los/box/entity/TradingBoxItem.java

@@ -456,7 +456,7 @@ public class TradingBoxItem implements Serializable {
 	 * pod场站
 	 */
 	@ApiModelProperty(value = "pod场站")
-	private Integer podStationId;
+	private Long podStationId;
 	/**
 	 * pod场站编码
 	 */

+ 3 - 0
blade-service/blade-los/src/main/java/org/springblade/los/box/controller/ArchivesTrajectoryController.java

@@ -74,6 +74,9 @@ public class ArchivesTrajectoryController extends BladeController {
 		LambdaQueryWrapper<ArchivesTrajectory> lambdaQueryWrapper = new LambdaQueryWrapper<>();
 		lambdaQueryWrapper.eq(ArchivesTrajectory::getTenantId, AuthUtil.getTenantId()).eq(ArchivesTrajectory::getIsDeleted, 0).like(ObjectUtils.isNotNull(archivesTrajectory.getCode()), ArchivesTrajectory::getCode, archivesTrajectory.getCode())//箱号
 			.like(ObjectUtils.isNotNull(archivesTrajectory.getPortCname()), ArchivesTrajectory::getPortCname, archivesTrajectory.getPortCname())//地点
+			.like(ObjectUtils.isNotNull(archivesTrajectory.getStationCname()), ArchivesTrajectory::getStationCname, archivesTrajectory.getStationCname())//地点
+			.like(ObjectUtils.isNotNull(archivesTrajectory.getBoxDynamics()), ArchivesTrajectory::getBoxDynamics, archivesTrajectory.getBoxDynamics())//地点
+			.like(ObjectUtils.isNotNull(archivesTrajectory.getCode()), ArchivesTrajectory::getCode, archivesTrajectory.getCode())//地点
 			.eq(ObjectUtils.isNotNull(archivesTrajectory.getBillType()), ArchivesTrajectory::getBillType, archivesTrajectory.getBillType())//业务类型
 			.eq(ObjectUtils.isNotNull(archivesTrajectory.getStatus()), ArchivesTrajectory::getStatus, archivesTrajectory.getStatus())//状态
 			.eq(ObjectUtils.isNotNull(archivesTrajectory.getCorpId()), ArchivesTrajectory::getCorpId, archivesTrajectory.getCorpId());//客户

+ 1 - 1
blade-service/blade-los/src/main/java/org/springblade/los/box/controller/PutBoxController.java

@@ -118,7 +118,7 @@ public class PutBoxController extends BladeController {
 	}
 
 	/**
-	 * 复制单据OW
+	 * 复制单据
 	 */
 	@GetMapping("/copyDocument")
 	@ApiOperationSupport(order = 1)

+ 3 - 2
blade-service/blade-los/src/main/java/org/springblade/los/box/controller/RouteCostProfitController.java

@@ -17,6 +17,7 @@
 package org.springblade.los.box.controller;
 
 import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.core.toolkit.ObjectUtils;
 import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
@@ -28,8 +29,8 @@ import org.springblade.core.mp.support.Query;
 import org.springblade.core.secure.utils.AuthUtil;
 import org.springblade.core.tool.api.R;
 import org.springblade.los.box.service.IPutBoxService;
-import org.springblade.los.excel.RouteCostProfitExcel;
 import org.springblade.los.box.service.IRouteCostService;
+import org.springblade.los.excel.RouteCostProfitExcel;
 import org.springframework.web.bind.annotation.GetMapping;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RestController;
@@ -71,7 +72,7 @@ public class RouteCostProfitController extends BladeController {
 							&& e.getPodCname().contains(item.getPodCname()) && !"OW(拿)".contains(e.getBusType()))
 						.map(RouteCostProfitExcel::getRemainingNum).reduce(BigDecimal.ZERO, BigDecimal::add));
 					item.setReachPod(profitExcelList.stream().filter(e -> e.getBoxType().equals(item.getBoxType())
-						&& e.getDestinationCname().contains(item.getDestinationCname()) && e.getPodCname().contains(item.getPodCname())
+						&& ObjectUtils.isNotNull(e.getDestinationCname()) && e.getDestinationCname().contains(item.getDestinationCname()) && e.getPodCname().contains(item.getPodCname())
 						&& "OW(拿)".contains(e.getBusType())).map(RouteCostProfitExcel::getRemainingNum).reduce(BigDecimal.ZERO, BigDecimal::add));
 					item.setBoxTotal(item.getOwnBoxStock().add(item.getReachPod()));
 				}

+ 2 - 4
blade-service/blade-los/src/main/java/org/springblade/los/box/mapper/PutBoxMapper.xml

@@ -274,12 +274,11 @@
             count(lpbi.id) as sum
         FROM
             logistics_put_box lpb
-            LEFT JOIN logistics_put_box_items lpbi ON lpb.id = lpbi.pid
+            LEFT JOIN logistics_put_box_items lpbi ON lpb.id = lpbi.pid AND lpbi.is_deleted = '0'
+        AND lpbi.tenant_id = '128478'
         WHERE
             lpb.is_deleted = '0'
           AND lpb.tenant_id = #{data.tenantId}
-          AND lpbi.is_deleted = '0'
-          AND lpbi.tenant_id = #{data.tenantId}
         <if test="data.podCname !=null and data.podCname != ''">
             and lpb.pol_cname like concat(concat('%', #{data.podCname}),'%')
         </if>
@@ -287,7 +286,6 @@
             and lpb.pod_cname like concat(concat('%', #{data.destinationCname}),'%')
         </if>
         GROUP BY lpb.id
-
     </select>
 
 </mapper>

File diff suppressed because it is too large
+ 514 - 327
blade-service/blade-los/src/main/java/org/springblade/los/box/service/impl/PutBoxServiceImpl.java


+ 7 - 8
blade-service/blade-los/src/main/java/org/springblade/los/box/service/impl/TradingBoxItemServiceImpl.java

@@ -141,14 +141,15 @@ public class TradingBoxItemServiceImpl extends ServiceImpl<TradingBoxItemMapper,
 		}
 		String stationName = excelList.stream().map(TradingBoxItemExcel::getRestrictingShippingCompaniesName).filter(Objects::nonNull)
 			.distinct().collect(Collectors.joining(","));
-		List<BCorps> corpsList = new ArrayList<>();
 		if (ObjectUtils.isNotNull(stationName)) {
 			stationName = stationName + ",WFL";
-			corpsList = bCorpsService.list(new LambdaQueryWrapper<BCorps>()
-				.eq(BCorps::getTenantId, AuthUtil.getTenantId())
-				.eq(BCorps::getIsDeleted, 0)
-				.apply("find_in_set(cn_name,'" + stationName + "')"));
+		} else {
+			stationName = "WFL";
 		}
+		List<BCorps> corpsList = bCorpsService.list(new LambdaQueryWrapper<BCorps>()
+			.eq(BCorps::getTenantId, AuthUtil.getTenantId())
+			.eq(BCorps::getIsDeleted, 0)
+			.apply("find_in_set(cn_name,'" + stationName + "')"));
 		Date date;
 		if ("DL,ZR".contains(tradingBox.getType())) {
 			date = tradingBox.getEffectiveDate();
@@ -169,7 +170,7 @@ public class TradingBoxItemServiceImpl extends ServiceImpl<TradingBoxItemMapper,
 			} else {
 				tradingBoxItem = new TradingBoxItem();
 			}
-			if (ObjectUtils.isNotNull(item.getCode())){
+			if (ObjectUtils.isNotNull(item.getCode())) {
 				tradingBoxItem.setCode(item.getCode().trim());
 				tradingBoxItem.setCode(item.getCode().toUpperCase());
 			}
@@ -249,8 +250,6 @@ public class TradingBoxItemServiceImpl extends ServiceImpl<TradingBoxItemMapper,
 				tradingBoxItem.setBoxCategory("自有箱");
 			}
 			tradingBoxItem.setBoxBelongsTo("SOC");
-			tradingBoxItem.setOriginalBoxEastId(tradingBox.getPurchaseCompanyId());
-			tradingBoxItem.setOriginalBoxEastName(tradingBox.getPurchaseCompanyName());
 			tradingBoxItem.setStatus("待使用");
 			tradingBoxItem.setStationId(tradingBox.getStationId());
 			tradingBoxItem.setStationCname(tradingBox.getStationCname());

+ 60 - 56
blade-service/blade-los/src/main/java/org/springblade/los/box/service/impl/TradingBoxServiceImpl.java

@@ -40,9 +40,9 @@ import org.springframework.stereotype.Service;
 import org.springframework.transaction.annotation.Transactional;
 
 import java.math.BigDecimal;
+import java.time.Duration;
 import java.time.Instant;
 import java.time.LocalDate;
-import java.time.Period;
 import java.time.ZoneId;
 import java.util.*;
 import java.util.stream.Collectors;
@@ -129,17 +129,15 @@ public class TradingBoxServiceImpl extends ServiceImpl<TradingBoxMapper, Trading
 	@Transactional(rollbackFor = Exception.class)
 	public TradingBox add(TradingBox tradingBox) {
 		List<TradingBox> tradingBoxList = new ArrayList<>();
-		if (ObjectUtils.isNotNull(tradingBox.getContractNo())) {
-			LambdaQueryWrapper<TradingBox> lambdaQueryWrapper = new LambdaQueryWrapper<>();
-			lambdaQueryWrapper.eq(TradingBox::getIsDeleted, 0)
-				.eq(TradingBox::getTenantId, AuthUtil.getTenantId());
-			if ("OW-N,OW-F".contains(tradingBox.getType())) {
-				lambdaQueryWrapper.eq(TradingBox::getContainerNumber, tradingBox.getContainerNumber());
-			} else {
-				lambdaQueryWrapper.eq(TradingBox::getContractNo, tradingBox.getContractNo());
-			}
-			tradingBoxList = baseMapper.selectList(lambdaQueryWrapper);
+		LambdaQueryWrapper<TradingBox> lambdaQueryWrapper = new LambdaQueryWrapper<>();
+		lambdaQueryWrapper.eq(TradingBox::getIsDeleted, 0)
+			.eq(TradingBox::getTenantId, AuthUtil.getTenantId());
+		if ("OW-N,OW-F".contains(tradingBox.getType())) {
+			lambdaQueryWrapper.eq(TradingBox::getContainerNumber, tradingBox.getContainerNumber());
+		} else {
+			lambdaQueryWrapper.eq(TradingBox::getContractNo, tradingBox.getContractNo());
 		}
+		tradingBoxList = baseMapper.selectList(lambdaQueryWrapper);
 		if (ObjectUtils.isNotNull(tradingBox.getActualBoxNumber())) {
 			tradingBox.setActualBoxNumber(0);
 		}
@@ -229,7 +227,7 @@ public class TradingBoxServiceImpl extends ServiceImpl<TradingBoxMapper, Trading
 		//判断id是否为空
 		if (tradingBox.getId() == null) {
 			if (!tradingBoxList.isEmpty()) {
-				throw new Error(text);
+				throw new RuntimeException(text);
 			}
 			BusinessBillNo businessBillNo = new BusinessBillNo();
 			businessBillNo.setBusinessTypeId(businessType.getId());
@@ -272,14 +270,16 @@ public class TradingBoxServiceImpl extends ServiceImpl<TradingBoxMapper, Trading
 				.map(TradingBoxItem::getAmount).filter(Objects::nonNull).reduce(BigDecimal.ZERO, BigDecimal::add);
 			BigDecimal amountUsd = tradingBox.getTradingBoxItemsList().stream().filter(e -> "USD".equals(e.getCurrency()))
 				.map(TradingBoxItem::getAmount).filter(Objects::nonNull).reduce(BigDecimal.ZERO, BigDecimal::add);
-			if ("BUY".equals(tradingBox.getType()) || "ZR".equals(tradingBox.getType()) || "DL".equals(tradingBox.getType())) {
-				tradingBox.setAmountC(amount);
-				tradingBox.setAmountCUsd(amountUsd);
-				tradingBox.setTotalAmountC(amount.add(amountUsd.multiply(exrateC)));
-			} else if ("SELL".equals(tradingBox.getType()) || "ZC".equals(tradingBox.getType())) {
-				tradingBox.setAmountD(amount);
-				tradingBox.setAmountDUsd(amountUsd);
-				tradingBox.setTotalAmountD(amount.add(amountUsd.multiply(exrateD)));
+			if (!"ZR".equals(tradingBox.getType())) {
+				if ("BUY".equals(tradingBox.getType()) || "DL".equals(tradingBox.getType())) {
+					tradingBox.setAmountC(amount);
+					tradingBox.setAmountCUsd(amountUsd);
+					tradingBox.setTotalAmountC(amount.add(amountUsd.multiply(exrateC)));
+				} else if ("SELL".equals(tradingBox.getType()) || "ZC".equals(tradingBox.getType())) {
+					tradingBox.setAmountD(amount);
+					tradingBox.setAmountDUsd(amountUsd);
+					tradingBox.setTotalAmountD(amount.add(amountUsd.multiply(exrateD)));
+				}
 			}
 			//箱号拼接字符串
 			List<String> codes = tradingBox.getTradingBoxItemsList().stream().map(TradingBoxItem::getCode).distinct().collect(Collectors.toList());
@@ -340,7 +340,6 @@ public class TradingBoxServiceImpl extends ServiceImpl<TradingBoxMapper, Trading
 			tradingBoxItemService.saveOrUpdateBatch(tradingBox.getTradingBoxItemsList());
 			tradingBox.setCode(String.join(",", codes));
 			tradingBox.setTradingBoxItemsList(tradingBox.getTradingBoxItemsList());
-			baseMapper.updateById(tradingBox);
 		}
 		//费用数据
 		if (ObjectUtils.isNotNull(tradingBox.getFeeCenterList()) && !tradingBox.getFeeCenterList().isEmpty()) {
@@ -386,18 +385,19 @@ public class TradingBoxServiceImpl extends ServiceImpl<TradingBoxMapper, Trading
 					item.setUpdateTime(new Date());
 				}
 			}
-			tradingBox.setAmountC(tradingBox.getAmountC().add(amountC));
-			tradingBox.setAmountCUsd(tradingBox.getAmountCUsd().add(amountCUsd));
-			tradingBox.setAmountD(tradingBox.getAmountD().add(amountD));
-			tradingBox.setAmountDUsd(tradingBox.getAmountDUsd().add(amountDUsd));
-			tradingBox.setProfit(amountD.subtract(amountC));
-			tradingBox.setProfitUsd(amountDUsd.subtract(amountCUsd));
-			BigDecimal totalAmountD = amountD.add(amountDUsd.multiply(exrateD));
-			tradingBox.setTotalAmountD(tradingBox.getTotalAmountD().add(totalAmountD));
-			BigDecimal totalAmountC = amountC.add(amountCUsd.multiply(exrateC));
-			tradingBox.setTotalAmountC(tradingBox.getTotalAmountC().add(totalAmountC));
-			tradingBox.setTotalProfit(totalAmountD.subtract(totalAmountC));
-			baseMapper.updateById(tradingBox);
+			if (!"ZR".equals(tradingBox.getType())) {
+				tradingBox.setAmountC(tradingBox.getAmountC().add(amountC));
+				tradingBox.setAmountCUsd(tradingBox.getAmountCUsd().add(amountCUsd));
+				tradingBox.setAmountD(tradingBox.getAmountD().add(amountD));
+				tradingBox.setAmountDUsd(tradingBox.getAmountDUsd().add(amountDUsd));
+				tradingBox.setProfit(amountD.subtract(amountC));
+				tradingBox.setProfitUsd(amountDUsd.subtract(amountCUsd));
+				BigDecimal totalAmountD = amountD.add(amountDUsd.multiply(exrateD));
+				tradingBox.setTotalAmountD(tradingBox.getTotalAmountD().add(totalAmountD));
+				BigDecimal totalAmountC = amountC.add(amountCUsd.multiply(exrateC));
+				tradingBox.setTotalAmountC(tradingBox.getTotalAmountC().add(totalAmountC));
+				tradingBox.setTotalProfit(totalAmountD.subtract(totalAmountC));
+			}
 			feeCenterService.saveOrUpdateBatch(tradingBox.getFeeCenterList());
 		}
 		//主表附件
@@ -466,7 +466,7 @@ public class TradingBoxServiceImpl extends ServiceImpl<TradingBoxMapper, Trading
 			rentTermService.saveOrUpdateBatch(rentTermList);
 			tradingBox.setRentTermList(rentTermList);
 		}
-
+		baseMapper.updateById(tradingBox);
 		return tradingBox;
 	}
 
@@ -505,19 +505,19 @@ public class TradingBoxServiceImpl extends ServiceImpl<TradingBoxMapper, Trading
 			throw new RuntimeException("未查到单据");
 		}
 		if ("1".equals(tradingBox.getRentType())) {
-			tradingBox.setBuxStaus("已启租");
-			tradingBox.setRentEndDate(tradingBox.getRentDate());
-			tradingBox.setPurchaseDate(tradingBox.getRentDate());
+			detail.setBuxStaus("已启租");
+			detail.setRentEndDate(tradingBox.getRentDate());
+			detail.setPurchaseDate(tradingBox.getRentDate());
 			for (TradingBoxItem tradingBoxItem : tradingBoxItemList) {
 				ArchivesTrajectory archivesTrajectory = new ArchivesTrajectory();
 				archivesTrajectory.setPortId(tradingBox.getAddressId());
 				archivesTrajectory.setPortCode(tradingBox.getAddressCode());
 				archivesTrajectory.setPortCname(tradingBox.getAddressCname());
 				archivesTrajectory.setPortEname(tradingBox.getAddressEname());
-				archivesTrajectory.setStationId(tradingBox.getAddressId());
-				archivesTrajectory.setStationCode(tradingBox.getAddressCode());
-				archivesTrajectory.setStationCname(tradingBox.getAddressCname());
-				archivesTrajectory.setStationEname(tradingBox.getAddressEname());
+				archivesTrajectory.setStationId(tradingBox.getStationId());
+				archivesTrajectory.setStationCode(tradingBox.getStationCode());
+				archivesTrajectory.setStationCname(tradingBox.getStationCname());
+				archivesTrajectory.setStationEname(tradingBox.getStationEname());
 				archivesTrajectory.setContainerNumber(tradingBoxItem.getContainerNumber());
 				archivesTrajectory.setBoxType(tradingBoxItem.getBoxType());
 				archivesTrajectory.setBoxCategory(tradingBoxItem.getBoxCategory());
@@ -649,7 +649,7 @@ public class TradingBoxServiceImpl extends ServiceImpl<TradingBoxMapper, Trading
 				feeCenterList.add(feeCenter);
 			}
 		} else {
-			tradingBox.setBuxStaus("已退租");
+			detail.setBuxStaus("已退租");
 			BFees fees = bFeesService.getOne(new LambdaQueryWrapper<BFees>()
 				.eq(BFees::getTenantId, AuthUtil.getTenantId())
 				.eq(BFees::getIsDeleted, 0)
@@ -683,14 +683,14 @@ public class TradingBoxServiceImpl extends ServiceImpl<TradingBoxMapper, Trading
 						Instant instant2 = tradingBox.getRentDate().toInstant();
 						LocalDate date1 = instant1.atZone(ZoneId.systemDefault()).toLocalDate();
 						LocalDate date2 = instant2.atZone(ZoneId.systemDefault()).toLocalDate();
-						Period period = Period.between(date1, date2);
+						Duration duration = Duration.between(date1.atStartOfDay(), date2.atStartOfDay());
 						if (ObjectUtils.isNotNull(tradingBox.getRentEndDate())) {
 							Calendar calendar = Calendar.getInstance();
 							calendar.setTime(tradingBox.getRentEndDate());
 							calendar.add(Calendar.DAY_OF_MONTH, 1);
 							feeCenter.setStorageDate(calendar.getTime());
 						}
-						feeCenter.setDays(period.getDays());
+						feeCenter.setDays(Integer.parseInt(duration.toDays() + ""));
 						feeCenter.setPrice(item.getPrice());
 						feeCenter.setQuantity(new BigDecimal(tradingBoxItems.size() + ""));
 						if ("CNY".equals(feeCenter.getCurCode())) {
@@ -783,8 +783,8 @@ public class TradingBoxServiceImpl extends ServiceImpl<TradingBoxMapper, Trading
 					}
 				}
 			}
-			tradingBox.setRentEndDate(tradingBox.getRentDate());
-			tradingBox.setRentingOutDate(tradingBox.getRentDate());
+			detail.setRentEndDate(tradingBox.getRentDate());
+			detail.setRentingOutDate(tradingBox.getRentDate());
 		}
 		if (!itemList.isEmpty()) {
 			tradingBoxItemService.updateBatchById(itemList);
@@ -798,7 +798,7 @@ public class TradingBoxServiceImpl extends ServiceImpl<TradingBoxMapper, Trading
 		if (!feeCenterList.isEmpty()) {
 			feeCenterService.saveOrUpdateBatch(feeCenterList);
 		}
-		baseMapper.updateById(tradingBox);
+		baseMapper.updateById(detail);
 		tradingBox.setTradingBoxItemsList(tradingBoxItemList);
 		return tradingBox;
 	}
@@ -850,17 +850,17 @@ public class TradingBoxServiceImpl extends ServiceImpl<TradingBoxMapper, Trading
 					Instant instant2 = tradingBox.getRentDate().toInstant();
 					LocalDate date1 = instant1.atZone(ZoneId.systemDefault()).toLocalDate();
 					LocalDate date2 = instant2.atZone(ZoneId.systemDefault()).toLocalDate();
-					Period period = Period.between(date1, date2);
+					Duration duration = Duration.between(date1.atStartOfDay(), date2.atStartOfDay());
 					if (ObjectUtils.isNotNull(tradingBox.getRentEndDate()) &&
 						tradingBoxItems.get(0).getLeaseCommencementDate().compareTo(tradingBox.getRentEndDate()) != 0) {
 						Calendar calendar = Calendar.getInstance();
 						calendar.setTime(tradingBox.getRentEndDate());
 						calendar.add(Calendar.DAY_OF_MONTH, 1);
 						feeCenter.setStorageDate(calendar.getTime());
-						feeCenter.setDays(period.getDays());
+						feeCenter.setDays(Integer.parseInt(duration.toDays() + ""));
 					} else {
 						feeCenter.setStorageDate(tradingBox.getRentEndDate());
-						feeCenter.setDays(period.getDays() + 1);
+						feeCenter.setDays(Integer.parseInt(duration.toDays() + "") + 1);
 					}
 					feeCenter.setPrice(item.getPrice());
 					feeCenter.setQuantity(new BigDecimal(tradingBoxItems.size() + ""));
@@ -1006,6 +1006,8 @@ public class TradingBoxServiceImpl extends ServiceImpl<TradingBoxMapper, Trading
 		details.setBoxNumber(0);
 		details.setActualBoxNumber(0);
 		details.setRemainingBoxNumber(0);
+		details.setRentEndDate(null);
+		details.setPurchaseDate(null);
 		return details;
 	}
 
@@ -1444,6 +1446,8 @@ public class TradingBoxServiceImpl extends ServiceImpl<TradingBoxMapper, Trading
 				putBox.setBoxEastId(tradingBox.getPurchaseCompanyId() + "");
 				putBox.setBoxEastName(tradingBox.getPurchaseCompanyName());
 				putBox.setContainerNumber(detail.getContainerNumber());
+				putBox.setBoxBelongsTo("SOC");
+				putBox.setCabinType("非固定");
 				if ("OW-N".equals(tradingBox.getType())) {
 					putBox.setBusType("OW(拿)");
 					putBox.setBoxClass("OW(拿)");
@@ -1613,8 +1617,8 @@ public class TradingBoxServiceImpl extends ServiceImpl<TradingBoxMapper, Trading
 					archives1.setContainerNumber(detail.getContainerNumber());
 					archives1.setBoxBelongsTo(item.getBoxBelongsTo());
 					archives1.setBoxType(item.getBoxCategory());
-					archives1.setBoxEastId(tradingBox.getPurchaseCompanyId());
-					archives1.setBoxEastName(tradingBox.getPurchaseCompanyName());
+					archives1.setBoxEastId(item.getBoxEastId());
+					archives1.setBoxEastName(item.getBoxEastName());
 					archives1.setOriginalBoxEastId(item.getOriginalBoxEastId());
 					archives1.setOriginalBoxEastName(item.getOriginalBoxEastName());
 					archives1.setRestrictedPortsIds(item.getRestrictedPortsIds());
@@ -1674,10 +1678,10 @@ public class TradingBoxServiceImpl extends ServiceImpl<TradingBoxMapper, Trading
 				archivesTrajectory.setPortCode(tradingBox.getAddressCode());
 				archivesTrajectory.setPortCname(tradingBox.getAddressCname());
 				archivesTrajectory.setPortEname(tradingBox.getAddressEname());
-				archivesTrajectory.setStationId(tradingBox.getAddressId());
-				archivesTrajectory.setStationCode(tradingBox.getAddressCode());
-				archivesTrajectory.setStationCname(tradingBox.getAddressCname());
-				archivesTrajectory.setStationEname(tradingBox.getAddressEname());
+				archivesTrajectory.setStationId(tradingBox.getStationId());
+				archivesTrajectory.setStationCode(tradingBox.getStationCode());
+				archivesTrajectory.setStationCname(tradingBox.getStationCname());
+				archivesTrajectory.setStationEname(tradingBox.getStationEname());
 				archivesTrajectory.setContainerNumber(item.getContainerNumber());
 				archivesTrajectory.setBoxType(item.getBoxType());
 				archivesTrajectory.setBoxCategory(item.getBoxCategory());

Some files were not shown because too many files changed in this diff