|
|
|
@ -667,7 +667,7 @@ public class HlfyyyClient extends CommonHttpClient {
|
|
|
|
|
|
|
|
|
|
zaxzyyOrderRequest.setBillDate(DateUtil.formatDateTime(orderEntity.getCreateTime()));
|
|
|
|
|
//查询对应的第三方单据类型
|
|
|
|
|
ThrSystemBusApiEntity thrSystemBusApiEntity = thrSystemBusApiDao.selectOne(new QueryWrapper<ThrSystemBusApiEntity>().eq("code", ioCollectOrder.getBusType()));
|
|
|
|
|
// ThrSystemBusApiEntity thrSystemBusApiEntity = thrSystemBusApiDao.selectOne(new QueryWrapper<ThrSystemBusApiEntity>().eq("code", ioCollectOrder.getBusType()));
|
|
|
|
|
zaxzyyOrderRequest.setBillType(ioCollectOrder.getBusType());
|
|
|
|
|
zaxzyyOrderRequest.setBillFlag("1");
|
|
|
|
|
|
|
|
|
@ -1182,16 +1182,13 @@ public class HlfyyyClient extends CommonHttpClient {
|
|
|
|
|
|
|
|
|
|
UdiwmsOrderDetailRequest item = new UdiwmsOrderDetailRequest();
|
|
|
|
|
BeanUtil.copyProperties(detailBizEntity, item);
|
|
|
|
|
|
|
|
|
|
item.setProductDate(DateUtil.formatExpireTime(StrUtil.isBlank(detailBizEntity.getProductDate()) ? null : "20" + detailBizEntity.getProductDate()));
|
|
|
|
|
item.setExpireDate(DateUtil.formatExpireTime(StrUtil.isBlank(detailBizEntity.getExpireDate()) ? null : "20" + detailBizEntity.getExpireDate()));
|
|
|
|
|
|
|
|
|
|
String thirdProductId = (String) ReflectUtil.getFieldValue(basicUdirel, thirdSysConfig.getThirdId());
|
|
|
|
|
|
|
|
|
|
item.setProductId(thirdProductId); //产品ID
|
|
|
|
|
// String thirdProductId = (String) ReflectUtil.getFieldValue(basicUdirel, thirdSysConfig.getThirdId());
|
|
|
|
|
item.setProductId(basicUdirel.getThirdId1()); //产品ID
|
|
|
|
|
//查询第三方产品名称 --医保编码
|
|
|
|
|
ThrProductsEntity thrProductsEntity = thrProductsDao.selectOne(new LambdaQueryWrapper<ThrProductsEntity>()
|
|
|
|
|
.eq(ThrProductsEntity::getCode, thirdProductId).last("limit 1"));
|
|
|
|
|
.eq(ThrProductsEntity::getCode, basicUdirel.getThirdId1()).last("limit 1"));
|
|
|
|
|
|
|
|
|
|
// 物资字典
|
|
|
|
|
// ThrProductsEntity thrProductsEntity = thrProductsDao.selectOne(new LambdaQueryWrapper<ThrProductsEntity>()
|
|
|
|
@ -2389,21 +2386,18 @@ public class HlfyyyClient extends CommonHttpClient {
|
|
|
|
|
|
|
|
|
|
Object[] params = new Object[]{msgHeader, msgBody, ""};
|
|
|
|
|
|
|
|
|
|
// Define return type
|
|
|
|
|
Class<?>[] returnTypes = new Class[]{String.class};
|
|
|
|
|
|
|
|
|
|
// Create RPC Service Client
|
|
|
|
|
RPCServiceClient serviceClient = new RPCServiceClient();
|
|
|
|
|
Options options = serviceClient.getOptions();
|
|
|
|
|
String url = thrSystemDetailService.getUrlExclude(Constants.URL_NAME_ORDER_SUBMIT_URL);
|
|
|
|
|
// Set the target endpoint
|
|
|
|
|
EndpointReference targetEPR = new EndpointReference(url);
|
|
|
|
|
options.setTo(targetEPR);
|
|
|
|
|
|
|
|
|
|
// 设置 SOAPAction
|
|
|
|
|
options.setAction("http://tempuri.org/CallInterface"); // 添加这行
|
|
|
|
|
// options.setAction("http://tempuri.org/CallInterface"); // 添加这行
|
|
|
|
|
// 或者使用空字符串
|
|
|
|
|
// options.setAction("");
|
|
|
|
|
options.setAction("");
|
|
|
|
|
|
|
|
|
|
// 设置超时时间(毫秒)
|
|
|
|
|
options.setTimeOutInMilliSeconds(30000);
|
|
|
|
|