|
|
@@ -0,0 +1,396 @@
|
|
|
+package org.springblade.los.Util;
|
|
|
+
|
|
|
+import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
+import lombok.AllArgsConstructor;
|
|
|
+import org.springblade.core.secure.utils.AuthUtil;
|
|
|
+import org.springblade.core.tool.api.R;
|
|
|
+import org.springblade.los.basic.corps.entity.BCorps;
|
|
|
+import org.springblade.los.basic.corps.service.IBCorpsService;
|
|
|
+import org.springblade.los.basic.cur.service.IBCurExrateService;
|
|
|
+import org.springblade.los.box.entity.PutBox;
|
|
|
+import org.springblade.los.box.entity.PutBoxItems;
|
|
|
+import org.springblade.los.box.entity.TradingBox;
|
|
|
+import org.springblade.los.box.entity.TradingBoxItem;
|
|
|
+import org.springblade.los.box.mapper.TradingBoxMapper;
|
|
|
+import org.springblade.los.box.service.IPutBoxItemsService;
|
|
|
+import org.springblade.los.box.service.IPutBoxService;
|
|
|
+import org.springblade.los.box.service.ITradingBoxItemService;
|
|
|
+import org.springblade.los.box.service.ITradingBoxService;
|
|
|
+import org.springblade.los.business.amends.entity.Amends;
|
|
|
+import org.springblade.los.business.amends.service.IAmendsService;
|
|
|
+import org.springblade.los.business.sea.entity.Bills;
|
|
|
+import org.springblade.los.business.sea.mapper.BillsMapper;
|
|
|
+import org.springblade.los.business.sea.service.IBillsService;
|
|
|
+import org.springblade.los.finance.fee.entity.FeeCenter;
|
|
|
+import org.springblade.los.finance.fee.entity.FinAccBills;
|
|
|
+import org.springblade.los.finance.fee.service.ICostProfitCalculationService;
|
|
|
+import org.springblade.los.finance.fee.service.IFeeCenterService;
|
|
|
+import org.springblade.los.finance.fee.service.IFinAccBillsService;
|
|
|
+import org.springblade.los.finance.invoices.entity.FinInvoices;
|
|
|
+import org.springblade.los.finance.invoices.entity.FinInvoicesItems;
|
|
|
+import org.springblade.los.finance.invoices.mapper.FinInvoicesMapper;
|
|
|
+import org.springblade.los.finance.invoices.service.IFinInvoicesItemsService;
|
|
|
+import org.springblade.los.finance.invoices.service.IFinInvoicesService;
|
|
|
+import org.springblade.los.finance.stl.entity.FinStlBills;
|
|
|
+import org.springblade.los.finance.stl.entity.FinStlBillsItems;
|
|
|
+import org.springblade.los.finance.stl.mapper.FinStlBillsMapper;
|
|
|
+import org.springblade.los.finance.stl.service.IFinStlBillsItemsService;
|
|
|
+import org.springblade.los.finance.stl.service.IFinStlBillsService;
|
|
|
+import org.springframework.stereotype.Component;
|
|
|
+
|
|
|
+import java.util.Date;
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+/**
|
|
|
+ * @author :jixinyuan
|
|
|
+ * @date : 2026/3/25
|
|
|
+ */
|
|
|
+@Component
|
|
|
+@AllArgsConstructor
|
|
|
+public class MergeCorpsUtils {
|
|
|
+
|
|
|
+ private final IFeeCenterService feeCenterService;
|
|
|
+
|
|
|
+ private final IFinAccBillsService finAccBillsService;
|
|
|
+
|
|
|
+ private final IBillsService billsService;
|
|
|
+
|
|
|
+ private final IAmendsService amendsService;
|
|
|
+
|
|
|
+ private final IBCorpsService bCorpsService;
|
|
|
+
|
|
|
+ private final ITradingBoxService tradingBoxService;
|
|
|
+
|
|
|
+ private final ITradingBoxItemService tradingBoxItemService;
|
|
|
+
|
|
|
+ private final IPutBoxService putBoxService;
|
|
|
+
|
|
|
+ private final IPutBoxItemsService putBoxItemsService;
|
|
|
+
|
|
|
+ private final IFinStlBillsService finStlBillsService;
|
|
|
+
|
|
|
+ private final IFinStlBillsItemsService finStlBillsItemsService;
|
|
|
+
|
|
|
+ private final IFinInvoicesService finInvoicesService;
|
|
|
+
|
|
|
+ private final IFinInvoicesItemsService finInvoicesItemsService;
|
|
|
+
|
|
|
+
|
|
|
+ public R mergeCorps(Long id, Long mergeId) {
|
|
|
+ BCorps corps = bCorpsService.getById(id);
|
|
|
+
|
|
|
+ BCorps mergeCorps = bCorpsService.getById(mergeId);
|
|
|
+ mergeCorps.setStatus(1);
|
|
|
+ mergeCorps.setUpdateTime(new Date());
|
|
|
+ mergeCorps.setUpdateUser(AuthUtil.getUserId());
|
|
|
+ mergeCorps.setUpdateUserName(AuthUtil.getUserName());
|
|
|
+ bCorpsService.updateById(mergeCorps);
|
|
|
+
|
|
|
+ List<FeeCenter> feeCenterList = feeCenterService.list(new LambdaQueryWrapper<FeeCenter>()
|
|
|
+ .eq(FeeCenter::getTenantId, AuthUtil.getTenantId())
|
|
|
+ .eq(FeeCenter::getIsDeleted, 0)
|
|
|
+ .and(i -> i.eq(FeeCenter::getCorpId, mergeId).or()
|
|
|
+ .eq(FeeCenter::getBillCorpId, mergeId).or()
|
|
|
+ .eq(FeeCenter::getBookingAgentId, mergeId).or()
|
|
|
+ .eq(FeeCenter::getGenerationCorpId, mergeId)));
|
|
|
+ if (!feeCenterList.isEmpty()){
|
|
|
+ for (FeeCenter item : feeCenterList){
|
|
|
+ item.setUpdateTime(new Date());
|
|
|
+ item.setUpdateUserName(AuthUtil.getUserName());
|
|
|
+ item.setUpdateUser(AuthUtil.getUserId());
|
|
|
+ if (mergeId.equals(item.getCorpId())){
|
|
|
+ item.setCorpId(corps.getId());
|
|
|
+ item.setCorpCnName(corps.getCnName());
|
|
|
+ item.setCorpEnName(corps.getEnName());
|
|
|
+ item.setShortName(corps.getShortName());
|
|
|
+ }
|
|
|
+ if (mergeId.equals(item.getBillCorpId())){
|
|
|
+ item.setBillCorpId(corps.getId());
|
|
|
+ item.setBillCorpCnName(corps.getCnName());
|
|
|
+ item.setBillCorpEnName(corps.getEnName());
|
|
|
+ item.setBillShortName(corps.getShortName());
|
|
|
+ }
|
|
|
+ if (mergeId.equals(item.getBookingAgentId())){
|
|
|
+ item.setBookingAgentId(corps.getId());
|
|
|
+ item.setBookingAgentCnName(corps.getCnName());
|
|
|
+ item.setBookingAgentEnName(corps.getEnName());
|
|
|
+ }
|
|
|
+ if (mergeId.equals(item.getGenerationCorpId())){
|
|
|
+ item.setGenerationCorpId(corps.getId());
|
|
|
+ item.setGenerationCorpCnName(corps.getCnName());
|
|
|
+ item.setGenerationCorpEnName(corps.getEnName());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ feeCenterService.updateBatchById(feeCenterList);
|
|
|
+ }
|
|
|
+ List<FinAccBills> finAccBillsList = finAccBillsService.list(new LambdaQueryWrapper<FinAccBills>()
|
|
|
+ .eq(FinAccBills::getTenantId, AuthUtil.getTenantId())
|
|
|
+ .eq(FinAccBills::getIsDeleted, 0)
|
|
|
+ .and(i -> i.eq(FinAccBills::getCorpId, mergeId).or()
|
|
|
+ .eq(FinAccBills::getBillCorpId, mergeId).or()
|
|
|
+ .eq(FinAccBills::getBookingAgentId, mergeId).or()
|
|
|
+ .eq(FinAccBills::getGenerationCorpId, mergeId)));
|
|
|
+ if (!finAccBillsList.isEmpty()){
|
|
|
+ for (FinAccBills item : finAccBillsList){
|
|
|
+ item.setUpdateTime(new Date());
|
|
|
+ item.setUpdateUserName(AuthUtil.getUserName());
|
|
|
+ item.setUpdateUser(AuthUtil.getUserId());
|
|
|
+ if (mergeId.equals(item.getCorpId())){
|
|
|
+ item.setCorpId(corps.getId());
|
|
|
+ item.setCorpCnName(corps.getCnName());
|
|
|
+ item.setCorpEnName(corps.getEnName());
|
|
|
+ }
|
|
|
+ if (mergeId.equals(item.getBillCorpId())){
|
|
|
+ item.setBillCorpId(corps.getId());
|
|
|
+ item.setBillCorpCnName(corps.getCnName());
|
|
|
+ item.setBillCorpEnName(corps.getEnName());
|
|
|
+ }
|
|
|
+ if (mergeId.equals(item.getBookingAgentId())){
|
|
|
+ item.setBookingAgentId(corps.getId());
|
|
|
+ item.setBookingAgentCnName(corps.getCnName());
|
|
|
+ item.setBookingAgentEnName(corps.getEnName());
|
|
|
+ }
|
|
|
+ if (mergeId.equals(item.getGenerationCorpId())){
|
|
|
+ item.setGenerationCorpId(corps.getId());
|
|
|
+ item.setGenerationCorpCnName(corps.getCnName());
|
|
|
+ item.setGenerationCorpEnName(corps.getEnName());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ finAccBillsService.updateBatchById(finAccBillsList);
|
|
|
+ }
|
|
|
+ List<Bills> billsList = billsService.list(new LambdaQueryWrapper<Bills>()
|
|
|
+ .eq(Bills::getTenantId, AuthUtil.getTenantId())
|
|
|
+ .eq(Bills::getIsDeleted, 0)
|
|
|
+ .and(i -> i.eq(Bills::getCorpId, mergeId).or()
|
|
|
+ .eq(Bills::getForeignAgencyId, mergeId).or()
|
|
|
+ .eq(Bills::getBookingAgentId, mergeId).or()
|
|
|
+ .eq(Bills::getCyId, mergeId).or()
|
|
|
+ .eq(Bills::getCarrierId, mergeId)));
|
|
|
+ if (!billsList.isEmpty()){
|
|
|
+ for (Bills item : billsList){
|
|
|
+ item.setUpdateTime(new Date());
|
|
|
+ item.setUpdateUserName(AuthUtil.getUserName());
|
|
|
+ item.setUpdateUser(AuthUtil.getUserId());
|
|
|
+ if (mergeId.equals(item.getCorpId())){
|
|
|
+ item.setCorpId(corps.getId());
|
|
|
+ item.setCorpCnName(corps.getCnName());
|
|
|
+ item.setCorpEnName(corps.getEnName());
|
|
|
+ item.setShortName(corps.getShortName());
|
|
|
+ }
|
|
|
+ if (mergeId.equals(item.getForeignAgencyId())){
|
|
|
+ item.setForeignAgencyId(corps.getId());
|
|
|
+ item.setForeignAgencyCnName(corps.getCnName());
|
|
|
+ item.setForeignAgencyEnName(corps.getEnName());
|
|
|
+ item.setForeignAgencyCode(corps.getCode());
|
|
|
+ }
|
|
|
+ if (mergeId.equals(item.getBookingAgentId())){
|
|
|
+ item.setBookingAgentId(corps.getId());
|
|
|
+ item.setBookingAgentCnName(corps.getCnName());
|
|
|
+ item.setBookingAgentEnName(corps.getEnName());
|
|
|
+ }
|
|
|
+ if (mergeId.equals(item.getCyId())){
|
|
|
+ item.setCyId(corps.getId());
|
|
|
+ item.setCyCnName(corps.getCnName());
|
|
|
+ item.setCyEnName(corps.getEnName());
|
|
|
+ item.setCyCode(corps.getCode());
|
|
|
+ }
|
|
|
+ if (mergeId.equals(item.getCarrierId())){
|
|
|
+ item.setCarrierId(corps.getId());
|
|
|
+ item.setCarrierCnName(corps.getCnName());
|
|
|
+ item.setCarrierEnName(corps.getEnName());
|
|
|
+ item.setCarrierShortName(corps.getShortName());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ billsService.updateBatchById(billsList);
|
|
|
+ }
|
|
|
+ List<Amends> amendsList = amendsService.list(new LambdaQueryWrapper<Amends>()
|
|
|
+ .eq(Amends::getTenantId, AuthUtil.getTenantId())
|
|
|
+ .eq(Amends::getIsDeleted, 0)
|
|
|
+ .eq(Amends::getCorpId, mergeId));
|
|
|
+ if (!amendsList.isEmpty()){
|
|
|
+ for (Amends item : amendsList){
|
|
|
+ item.setUpdateTime(new Date());
|
|
|
+ item.setUpdateUserName(AuthUtil.getUserName());
|
|
|
+ item.setUpdateUser(AuthUtil.getUserId());
|
|
|
+ item.setCorpId(corps.getId());
|
|
|
+ item.setCorpCnName(corps.getCnName());
|
|
|
+ item.setCorpEnName(corps.getEnName());
|
|
|
+ }
|
|
|
+ amendsService.updateBatchById(amendsList);
|
|
|
+ }
|
|
|
+ List<FinStlBills> finStlBillsList = finStlBillsService.list(new LambdaQueryWrapper<FinStlBills>()
|
|
|
+ .eq(FinStlBills::getTenantId, AuthUtil.getTenantId())
|
|
|
+ .eq(FinStlBills::getIsDeleted, 0)
|
|
|
+ .eq(FinStlBills::getCorpId, mergeId));
|
|
|
+ if (!finStlBillsList.isEmpty()){
|
|
|
+ for (FinStlBills item : finStlBillsList){
|
|
|
+ item.setUpdateTime(new Date());
|
|
|
+ item.setUpdateUserName(AuthUtil.getUserName());
|
|
|
+ item.setUpdateUser(AuthUtil.getUserId());
|
|
|
+ item.setCorpId(corps.getId());
|
|
|
+ item.setCorpCnName(corps.getCnName());
|
|
|
+ item.setCorpEnName(corps.getEnName());
|
|
|
+ }
|
|
|
+ finStlBillsService.updateBatchById(finStlBillsList);
|
|
|
+ }
|
|
|
+ List<FinStlBillsItems> finStlBillsItemsList = finStlBillsItemsService.list(new LambdaQueryWrapper<FinStlBillsItems>()
|
|
|
+ .eq(FinStlBillsItems::getTenantId, AuthUtil.getTenantId())
|
|
|
+ .eq(FinStlBillsItems::getIsDeleted, 0)
|
|
|
+ .eq(FinStlBillsItems::getCorpId, mergeId));
|
|
|
+ if (!finStlBillsItemsList.isEmpty()){
|
|
|
+ for (FinStlBillsItems item : finStlBillsItemsList){
|
|
|
+ item.setUpdateTime(new Date());
|
|
|
+ item.setUpdateUserName(AuthUtil.getUserName());
|
|
|
+ item.setUpdateUser(AuthUtil.getUserId());
|
|
|
+ item.setCorpId(corps.getId());
|
|
|
+ item.setCorpCnName(corps.getCnName());
|
|
|
+ item.setCorpEnName(corps.getEnName());
|
|
|
+ }
|
|
|
+ finStlBillsItemsService.updateBatchById(finStlBillsItemsList);
|
|
|
+ }
|
|
|
+ List<FinInvoices> finInvoicesList = finInvoicesService.list(new LambdaQueryWrapper<FinInvoices>()
|
|
|
+ .eq(FinInvoices::getTenantId, AuthUtil.getTenantId())
|
|
|
+ .eq(FinInvoices::getIsDeleted, 0)
|
|
|
+ .eq(FinInvoices::getCorpId, mergeId));
|
|
|
+ if (!finInvoicesList.isEmpty()){
|
|
|
+ for (FinInvoices item : finInvoicesList){
|
|
|
+ item.setUpdateTime(new Date());
|
|
|
+ item.setUpdateUserName(AuthUtil.getUserName());
|
|
|
+ item.setUpdateUser(AuthUtil.getUserId());
|
|
|
+ item.setCorpId(corps.getId());
|
|
|
+ item.setCorpCnName(corps.getCnName());
|
|
|
+ item.setCorpEnName(corps.getEnName());
|
|
|
+ }
|
|
|
+ finInvoicesService.updateBatchById(finInvoicesList);
|
|
|
+ }
|
|
|
+ List<FinInvoicesItems> finInvoicesItemsList = finInvoicesItemsService.list(new LambdaQueryWrapper<FinInvoicesItems>()
|
|
|
+ .eq(FinInvoicesItems::getTenantId, AuthUtil.getTenantId())
|
|
|
+ .eq(FinInvoicesItems::getIsDeleted, 0)
|
|
|
+ .eq(FinInvoicesItems::getCorpId, mergeId));
|
|
|
+ if (!finInvoicesItemsList.isEmpty()){
|
|
|
+ for (FinInvoicesItems item : finInvoicesItemsList){
|
|
|
+ item.setUpdateTime(new Date());
|
|
|
+ item.setUpdateUserName(AuthUtil.getUserName());
|
|
|
+ item.setUpdateUser(AuthUtil.getUserId());
|
|
|
+ item.setCorpId(corps.getId());
|
|
|
+ item.setCorpCnName(corps.getCnName());
|
|
|
+ item.setCorpEnName(corps.getEnName());
|
|
|
+ }
|
|
|
+ finInvoicesItemsService.updateBatchById(finInvoicesItemsList);
|
|
|
+ }
|
|
|
+ List<TradingBox> tradingBoxList = tradingBoxService.list(new LambdaQueryWrapper<TradingBox>()
|
|
|
+ .eq(TradingBox::getTenantId, AuthUtil.getTenantId())
|
|
|
+ .eq(TradingBox::getIsDeleted, 0)
|
|
|
+ .and(i -> i.eq(TradingBox::getPurchaseCompanyId, mergeId).or()
|
|
|
+ .eq(TradingBox::getOwnerId, mergeId)));
|
|
|
+ if (!tradingBoxList.isEmpty()){
|
|
|
+ for (TradingBox item : tradingBoxList){
|
|
|
+ item.setUpdateTime(new Date());
|
|
|
+ item.setUpdateUserName(AuthUtil.getUserName());
|
|
|
+ item.setUpdateUser(AuthUtil.getUserId());
|
|
|
+ if (mergeId.equals(item.getPurchaseCompanyId())){
|
|
|
+ item.setPurchaseCompanyId(corps.getId());
|
|
|
+ item.setPurchaseCompanyName(corps.getCnName());
|
|
|
+ }
|
|
|
+ if (mergeId.equals(item.getOwnerId())){
|
|
|
+ item.setOwnerId(corps.getId());
|
|
|
+ item.setOwnerName(corps.getCnName());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ tradingBoxService.updateBatchById(tradingBoxList);
|
|
|
+ }
|
|
|
+ List<TradingBoxItem> tradingBoxItemList = tradingBoxItemService.list(new LambdaQueryWrapper<TradingBoxItem>()
|
|
|
+ .eq(TradingBoxItem::getTenantId, AuthUtil.getTenantId())
|
|
|
+ .eq(TradingBoxItem::getIsDeleted, 0)
|
|
|
+ .and(i -> i.eq(TradingBoxItem::getCorpId, mergeId).or()
|
|
|
+ .eq(TradingBoxItem::getBoxEastId, mergeId).or()
|
|
|
+ .eq(TradingBoxItem::getStationId, mergeId).or()
|
|
|
+ .eq(TradingBoxItem::getPolCyId, mergeId).or()
|
|
|
+ .eq(TradingBoxItem::getPodStationId, mergeId).or()
|
|
|
+ ));
|
|
|
+ if (!tradingBoxItemList.isEmpty()){
|
|
|
+ for (TradingBoxItem item : tradingBoxItemList){
|
|
|
+ item.setUpdateTime(new Date());
|
|
|
+ item.setUpdateUserName(AuthUtil.getUserName());
|
|
|
+ item.setUpdateUser(AuthUtil.getUserId());
|
|
|
+ if (mergeId.equals(item.getCorpId())){
|
|
|
+ item.setCorpId(corps.getId());
|
|
|
+ item.setCorpName(corps.getCnName());
|
|
|
+ }
|
|
|
+ if (mergeId.equals(item.getBoxEastId())){
|
|
|
+ item.setBoxEastId(corps.getId());
|
|
|
+ item.setBoxEastName(corps.getCnName());
|
|
|
+ }
|
|
|
+ if (mergeId.equals(item.getStationId())){
|
|
|
+ item.setStationId(corps.getId());
|
|
|
+ item.setStationCname(corps.getCnName());
|
|
|
+ }
|
|
|
+ if (mergeId.equals(item.getPolCyId())){
|
|
|
+ item.setPolCyId(corps.getId());
|
|
|
+ item.setPolCyCname(corps.getCnName());
|
|
|
+ }
|
|
|
+ if (mergeId.equals(item.getPodStationId())){
|
|
|
+ item.setPodStationId(corps.getId());
|
|
|
+ item.setPodStationCname(corps.getCnName());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ tradingBoxItemService.updateBatchById(tradingBoxItemList);
|
|
|
+ }
|
|
|
+ List<PutBox> putBoxList = putBoxService.list(new LambdaQueryWrapper<PutBox>()
|
|
|
+ .eq(PutBox::getTenantId, AuthUtil.getTenantId())
|
|
|
+ .eq(PutBox::getIsDeleted, 0)
|
|
|
+ .and(i -> i.eq(PutBox::getPolStationId, mergeId).or()
|
|
|
+ .eq(PutBox::getPodStationId, mergeId).or()));
|
|
|
+ if (!putBoxList.isEmpty()){
|
|
|
+ for (PutBox item : putBoxList){
|
|
|
+ item.setUpdateTime(new Date());
|
|
|
+ item.setUpdateUserName(AuthUtil.getUserName());
|
|
|
+ item.setUpdateUser(AuthUtil.getUserId());
|
|
|
+ if (mergeId.equals(item.getPolStationId())){
|
|
|
+ item.setPolStationId(corps.getId());
|
|
|
+ item.setPolStationCname(corps.getCnName());
|
|
|
+ }
|
|
|
+ if (mergeId.equals(item.getPodStationId())){
|
|
|
+ item.setPodStationId(corps.getId());
|
|
|
+ item.setPodStationCname(corps.getCnName());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ putBoxService.updateBatchById(putBoxList);
|
|
|
+ }
|
|
|
+ List<PutBoxItems> putBoxItemsList = putBoxItemsService.list(new LambdaQueryWrapper<PutBoxItems>()
|
|
|
+ .eq(PutBoxItems::getTenantId, AuthUtil.getTenantId())
|
|
|
+ .eq(PutBoxItems::getIsDeleted, 0)
|
|
|
+ .and(i -> i.eq(PutBoxItems::getPolCyId, mergeId).or()
|
|
|
+ .eq(PutBoxItems::getPodStationId, mergeId).or()
|
|
|
+ .eq(PutBoxItems::getCorpId, mergeId).or()
|
|
|
+ .eq(PutBoxItems::getBoxEastId, mergeId).or()));
|
|
|
+ if (!putBoxItemsList.isEmpty()){
|
|
|
+ for (PutBoxItems item : putBoxItemsList){
|
|
|
+ item.setUpdateTime(new Date());
|
|
|
+ item.setUpdateUserName(AuthUtil.getUserName());
|
|
|
+ item.setUpdateUser(AuthUtil.getUserId());
|
|
|
+ if (mergeId.equals(item.getPolCyId())){
|
|
|
+ item.setPolCyId(corps.getId());
|
|
|
+ item.setPolCyCname(corps.getCnName());
|
|
|
+ }
|
|
|
+ if (mergeId.equals(item.getPodStationId())){
|
|
|
+ item.setPodStationId(corps.getId());
|
|
|
+ item.setPodStationCname(corps.getCnName());
|
|
|
+ }
|
|
|
+ if (mergeId.equals(item.getCorpId())){
|
|
|
+ item.setCorpId(corps.getId());
|
|
|
+ item.setCorpName(corps.getCnName());
|
|
|
+ }
|
|
|
+ if (mergeId.equals(item.getBoxEastId())){
|
|
|
+ item.setBoxEastId(corps.getId());
|
|
|
+ item.setBoxEastName(corps.getCnName());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ putBoxItemsService.updateBatchById(putBoxItemsList);
|
|
|
+ }
|
|
|
+
|
|
|
+ return R.data(null);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+}
|