|
|
|
@ -200,17 +200,28 @@ public class LhzyyClient extends CommonHttpClient {
|
|
|
|
|
dsOrderRequest.setCorpName(corpName);
|
|
|
|
|
} else if (basicBussinessTypeEntity.getCorpType().equals(Constants.CORP_INTTERNAL)) {
|
|
|
|
|
//内部科室
|
|
|
|
|
AuthWarehouseEntity warehouseEntity = authWarehouseDao.selectOne(new LambdaQueryWrapper<AuthWarehouseEntity>().eq(AuthWarehouseEntity::getCode, udiwmsOrderRequest.getCorpId()));
|
|
|
|
|
try {
|
|
|
|
|
//根据第三方系统标识,获取对应字段的值
|
|
|
|
|
ThrInvWarehouseEntity thrInvWarehouseEntity = thrInvWarehouseDao.selectOne(new LambdaQueryWrapper<ThrInvWarehouseEntity>()
|
|
|
|
|
.eq(ThrInvWarehouseEntity::getCode, authWarehouseService.getThirdInvCode(warehouseEntity))
|
|
|
|
|
.eq(ThrInvWarehouseEntity::getThirdSysFk, thirdSysConfig.getThirdId()));
|
|
|
|
|
|
|
|
|
|
dsOrderRequest.setCorpId(thrInvWarehouseEntity.getCode());
|
|
|
|
|
dsOrderRequest.setCorpName(thrInvWarehouseEntity.getName());
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
log.error("查询单据对应往来单位的第三方仓库信息异常", e);
|
|
|
|
|
|
|
|
|
|
//内部科室
|
|
|
|
|
BasicCorpEntity basicCorpEntity = null;
|
|
|
|
|
if (StrUtil.isNotEmpty(orderEntity.getFromCorp())) {
|
|
|
|
|
basicCorpEntity = basicCorpDao.selectByErpId(orderEntity.getFromCorp());
|
|
|
|
|
}
|
|
|
|
|
if (basicCorpEntity != null) {
|
|
|
|
|
dsOrderRequest.setCorpId(basicCorpEntity.getThirdId());
|
|
|
|
|
dsOrderRequest.setCorpName(basicCorpEntity.getName());
|
|
|
|
|
} else{
|
|
|
|
|
AuthWarehouseEntity warehouseEntity = authWarehouseDao.selectOne(new LambdaQueryWrapper<AuthWarehouseEntity>().eq(AuthWarehouseEntity::getCode, udiwmsOrderRequest.getCorpId()));
|
|
|
|
|
try {
|
|
|
|
|
//根据第三方系统标识,获取对应字段的值
|
|
|
|
|
ThrInvWarehouseEntity thrInvWarehouseEntity = thrInvWarehouseDao.selectOne(new LambdaQueryWrapper<ThrInvWarehouseEntity>()
|
|
|
|
|
.eq(ThrInvWarehouseEntity::getCode, authWarehouseService.getThirdInvCode(warehouseEntity))
|
|
|
|
|
.eq(ThrInvWarehouseEntity::getThirdSysFk, thirdSysConfig.getThirdId()));
|
|
|
|
|
|
|
|
|
|
dsOrderRequest.setCorpId(thrInvWarehouseEntity.getCode());
|
|
|
|
|
dsOrderRequest.setCorpName(thrInvWarehouseEntity.getName());
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
log.error("查询单据对应往来单位的第三方仓库信息异常", e);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
} else if (basicBussinessTypeEntity.getCorpType().equals(Constants.CORP_SP)) {
|
|
|
|
|
//供应商
|
|
|
|
|