|
|
|
@ -228,8 +228,9 @@ public class StockOrderServiceImpl implements StockOrderService {
|
|
|
|
|
InvWarehouseEntity invWarehouseEntity = invWarehouseService.selectByCode(stockOrderEntity.getCorpId());
|
|
|
|
|
try {
|
|
|
|
|
//根据第三方系统标识,获取对应字段的值
|
|
|
|
|
String thirdSysFk = (String) ReflectUtil.getFieldValue(invWarehouseEntity, invWarehouseEntity.getClass().getField(thirdId));
|
|
|
|
|
ThrInvWarehouseEntity thrInvWarehouseEntity = thrInvWarehouseService.selectByCode(invWarehouseEntity.getThirdId(), thirdSysFk);
|
|
|
|
|
// String invWaThirdId = invWarehouseEntity.getClass().getField(thirdId);
|
|
|
|
|
String thirdSysFk = (String) ReflectUtil.getFieldValue(invWarehouseEntity, thirdId);
|
|
|
|
|
ThrInvWarehouseEntity thrInvWarehouseEntity = thrInvWarehouseService.selectByCode(invWarehouseEntity.getThirdId(), thirdId);
|
|
|
|
|
udiwmsOrderRequest.setCorpId(thrInvWarehouseEntity.getCode()); //往来单位编码,需转换为第三方系统的ID
|
|
|
|
|
udiwmsOrderRequest.setCorpName(thrInvWarehouseEntity.getName()); //往来单位名称,需转换为第三方系统的名称
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
@ -252,8 +253,8 @@ public class StockOrderServiceImpl implements StockOrderService {
|
|
|
|
|
|
|
|
|
|
InvWarehouseEntity invWarehouseEntity = invWarehouseService.selectByCode(stockOrderEntity.getLocStorageCode());
|
|
|
|
|
try {
|
|
|
|
|
String thirdSysFk = (String) ReflectUtil.getFieldValue(invWarehouseEntity, invWarehouseEntity.getClass().getField(thirdId));
|
|
|
|
|
ThrInvWarehouseEntity thrInvWarehouseEntity = thrInvWarehouseService.selectByCode(invWarehouseEntity.getThirdId(), thirdSysFk);
|
|
|
|
|
// String thirdSysFk = (String) ReflectUtil.getFieldValue(invWarehouseEntity, invWarehouseEntity.getClass().getField(thirdId));
|
|
|
|
|
ThrInvWarehouseEntity thrInvWarehouseEntity = thrInvWarehouseService.selectByCode(invWarehouseEntity.getThirdId(), thirdId);
|
|
|
|
|
udiwmsOrderRequest.setLocStorageCode(thrInvWarehouseEntity.getCode());
|
|
|
|
|
udiwmsOrderRequest.setLocStorageName(thrInvWarehouseEntity.getName());
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
@ -280,11 +281,11 @@ public class StockOrderServiceImpl implements StockOrderService {
|
|
|
|
|
BeanUtil.copyProperties(stockOrderDetailEntity, item);
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
String thirdProductId = (String) ReflectUtil.getFieldValue(udiRelevanceEntity, udiRelevanceEntity.getClass().getField(thirdId));
|
|
|
|
|
String thirdProductId = (String) ReflectUtil.getFieldValue(udiRelevanceEntity, thirdId);
|
|
|
|
|
item.setProductId(thirdProductId);
|
|
|
|
|
|
|
|
|
|
String thirdName = getThirdName(thirdId);
|
|
|
|
|
String thirdProductName = (String) ReflectUtil.getFieldValue(udiRelevanceEntity, udiRelevanceEntity.getClass().getField(thirdName));
|
|
|
|
|
String thirdProductName = (String) ReflectUtil.getFieldValue(udiRelevanceEntity, thirdName);
|
|
|
|
|
item.setProductName(thirdProductName);
|
|
|
|
|
items.add(item);
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|