|
|
|
@ -1,11 +1,13 @@
|
|
|
|
|
package com.logpm.patch.service.impl; |
|
|
|
|
|
|
|
|
|
import cn.hutool.core.bean.BeanUtil; |
|
|
|
|
import com.alibaba.nacos.shaded.com.google.common.collect.Lists; |
|
|
|
|
import com.baomidou.mybatisplus.core.toolkit.ObjectUtils; |
|
|
|
|
import com.logpm.basic.entity.BasicMaterialEntity; |
|
|
|
|
import com.logpm.basic.feign.IBasicMaterialClient; |
|
|
|
|
import com.logpm.basicdata.entity.*; |
|
|
|
|
import com.logpm.basicdata.feign.*; |
|
|
|
|
import com.logpm.distribution.dto.UpdatePackageDTO; |
|
|
|
|
import com.logpm.distribution.entity.DistributionParcelListEntity; |
|
|
|
|
import com.logpm.distribution.entity.DistributionParcelNumberEntity; |
|
|
|
|
import com.logpm.distribution.entity.DistributionStockArticleEntity; |
|
|
|
@ -387,6 +389,20 @@ public class SyncOrderInfoServiceImpl implements ISyncOrderInfoService {
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void updatePackageStatusList(List<String> orderPackageCodes, Long warehouseId, String number) { |
|
|
|
|
//把orderPackageCodes 每1000条进行分组
|
|
|
|
|
List<List<String>> partition = Lists.partition(orderPackageCodes, 1000); |
|
|
|
|
partition.forEach(list -> { |
|
|
|
|
UpdatePackageDTO updatePackageDTO = new UpdatePackageDTO(); |
|
|
|
|
updatePackageDTO.setOrderPackageCodes(list); |
|
|
|
|
updatePackageDTO.setWarehouseId(warehouseId); |
|
|
|
|
updatePackageDTO.setPackageStatus(number); |
|
|
|
|
distributionParcelListClient.updatePackageStatus(updatePackageDTO); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
|
@Override |
|
|
|
|