|
|
|
@ -177,7 +177,7 @@ public class AxxyyClient extends CommonHttpClient {
|
|
|
|
|
"<name></name>\n" +
|
|
|
|
|
"<spell>" + "" + "</spell>\n" +
|
|
|
|
|
"<invalid>" + "" + "</invalid>\n" +
|
|
|
|
|
"<subject>" + "" + "</subject>\n" +
|
|
|
|
|
"<subject>" + "K" + "</subject>\n" +
|
|
|
|
|
"</root>";
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
@ -236,7 +236,7 @@ public class AxxyyClient extends CommonHttpClient {
|
|
|
|
|
thrProductsResponse.setCode(priceDict.getCode());
|
|
|
|
|
thrProductsResponse.setName(priceDict.getName());
|
|
|
|
|
thrProductsResponse.setPrice(priceDict.getPrice());
|
|
|
|
|
thrProductsResponse.setSpec(priceDict.getSpell());
|
|
|
|
|
thrProductsResponse.setYbbm(priceDict.getCountryCode());
|
|
|
|
|
thrProductsResponses.add(thrProductsResponse);
|
|
|
|
|
}
|
|
|
|
|
PageSimpleResponse<ThrProductsResponse> thrProductsResponsePageSimpleResponse = new PageSimpleResponse<>();
|
|
|
|
@ -1017,41 +1017,7 @@ public class AxxyyClient extends CommonHttpClient {
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public BaseResponse getBasicProject(DlThirdProjectRequest dlThirdProjectRequest) {
|
|
|
|
|
try {
|
|
|
|
|
// 发送请求
|
|
|
|
|
String response = callInterface(getMsgHeader("getPriceDict"), setFilter());
|
|
|
|
|
String xml = getXml(response);
|
|
|
|
|
if (xml == null){
|
|
|
|
|
return ResultVOUtils.error(500,"获取项目字典错误");
|
|
|
|
|
}
|
|
|
|
|
DataVo dataVo = getDataVo(xml);
|
|
|
|
|
if (dataVo.getCode() != 0){
|
|
|
|
|
return ResultVOUtils.error(500,"获取项目字典错误");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
List<PriceDict> list = dataVo.getList(PriceDict.class);
|
|
|
|
|
List<BasicSkProjectResponse> basicSkProjectEntities = new ArrayList<>();
|
|
|
|
|
log.info("总数:" + list.size());
|
|
|
|
|
for (PriceDict priceDict : list) {
|
|
|
|
|
BasicSkProjectResponse basicSkProjectResponse = new BasicSkProjectResponse();
|
|
|
|
|
basicSkProjectResponse.setCode(priceDict.getCode());
|
|
|
|
|
basicSkProjectResponse.setName(priceDict.getName());
|
|
|
|
|
basicSkProjectResponse.setPrice(priceDict.getPrice());
|
|
|
|
|
basicSkProjectResponse.setGgxh(priceDict.getSpell());
|
|
|
|
|
basicSkProjectResponse.setType(2);
|
|
|
|
|
basicSkProjectResponse.setCreateTime(new Date());
|
|
|
|
|
basicSkProjectResponse.setUpdateTime(new Date());
|
|
|
|
|
basicSkProjectResponse.setRemark("自动下载");
|
|
|
|
|
basicSkProjectEntities.add(basicSkProjectResponse);
|
|
|
|
|
}
|
|
|
|
|
PageSimpleResponse<BasicSkProjectResponse> PriceDictResponse = new PageSimpleResponse<>();
|
|
|
|
|
PriceDictResponse.setTotal((long) basicSkProjectEntities.size()); // 设置总数
|
|
|
|
|
PriceDictResponse.setList(basicSkProjectEntities); // 设置列表
|
|
|
|
|
return ResultVOUtils.success(PriceDictResponse);
|
|
|
|
|
}catch (Exception e){
|
|
|
|
|
log.error("异常信息:{}", e);
|
|
|
|
|
return ResultVOUtils.error(500, "网络错误,或远程服务器异常无法返回正确结果");
|
|
|
|
|
}
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|