|
|
|
@ -6,9 +6,11 @@ import com.logpm.basic.entity.BasicMaterialEntity;
|
|
|
|
|
import com.logpm.basic.feign.IBasicMaterialClient; |
|
|
|
|
import com.logpm.basicdata.entity.BasicdataClientEntity; |
|
|
|
|
import com.logpm.basicdata.entity.BasicdataStoreBusinessEntity; |
|
|
|
|
import com.logpm.basicdata.entity.BasicdataTrayEntity; |
|
|
|
|
import com.logpm.basicdata.entity.BasicdataWarehouseEntity; |
|
|
|
|
import com.logpm.basicdata.feign.IBasicdataClientClient; |
|
|
|
|
import com.logpm.basicdata.feign.IBasicdataStoreBusinessClient; |
|
|
|
|
import com.logpm.basicdata.feign.IBasicdataTrayClient; |
|
|
|
|
import com.logpm.basicdata.feign.IBasicdataWarehouseClient; |
|
|
|
|
import com.logpm.distribution.entity.DistributionParcelListEntity; |
|
|
|
|
import com.logpm.distribution.entity.DistributionParcelNumberEntity; |
|
|
|
@ -65,6 +67,8 @@ public class SyncOrderInfoServiceImpl implements ISyncOrderInfoService {
|
|
|
|
|
private final ITrayScanClient trayScanClient; |
|
|
|
|
private final IWarehouseTrayTypeClient warehouseTrayTypeClient; |
|
|
|
|
private final IInventoryDetailClient inventoryDetailClient; |
|
|
|
|
private final IBasicdataTrayClient basicdataTrayClient; |
|
|
|
|
private final ITrayClient trayClient; |
|
|
|
|
|
|
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
|
@Override |
|
|
|
@ -1349,6 +1353,27 @@ public class SyncOrderInfoServiceImpl implements ISyncOrderInfoService {
|
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//判断托盘是否已经存在
|
|
|
|
|
BasicdataTrayEntity basicdataTrayEntity = basicdataTrayClient.getTrayByTrayCode("T" + trayId); |
|
|
|
|
if(Objects.isNull(basicdataTrayEntity)){ |
|
|
|
|
log.info("############syncTrayTypeData: 托盘信息不存在"); |
|
|
|
|
//如果托盘不存在就去同步该托盘
|
|
|
|
|
TrayEntity trayEntity = trayClient.getTrayById(trayId); |
|
|
|
|
basicdataTrayEntity = new BasicdataTrayEntity(); |
|
|
|
|
basicdataTrayEntity.setTenantId("627683"); |
|
|
|
|
basicdataTrayEntity.setCreateUser(1714696768639311873L); |
|
|
|
|
basicdataTrayEntity.setUpdateUser(1714696768639311873L); |
|
|
|
|
basicdataTrayEntity.setCreateDept(1649331096241836033L); |
|
|
|
|
basicdataTrayEntity.setPalletName(trayEntity.getTrayNo()); |
|
|
|
|
basicdataTrayEntity.setPalletCode("T"+trayEntity.getId()); |
|
|
|
|
basicdataTrayEntity.setWarehouseId(newWarehouseId); |
|
|
|
|
basicdataTrayEntity.setTrayStatus(trayEntity.getStatus()+""); |
|
|
|
|
basicdataTrayEntity.setType(1); |
|
|
|
|
basicdataTrayEntity.setOldId(trayId); |
|
|
|
|
// basicdataTrayEntity.setNowWarehouseId(nowNewWarehouseId);
|
|
|
|
|
basicdataTrayClient.addTray(basicdataTrayEntity); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//方式:1=仓,2=商场,3=客户,4=其他,5=服务号,6=合同号
|
|
|
|
|
//方式:60=仓,30=商场,50=客户,100=其他,10=服务号,20=合同号
|
|
|
|
|
String newTrayType = "100"; |
|
|
|
|