3/26 优化1.0

axxyy
wangwei 2 weeks ago
parent 9049da98af
commit 8d445d8de9

@ -237,6 +237,7 @@ public class AxxyyClient extends CommonHttpClient {
thrProductsResponse.setName(priceDict.getName());
thrProductsResponse.setPrice(priceDict.getPrice());
thrProductsResponse.setYbbm(priceDict.getCountryCode());
thrProductsResponse.setSpec(replaceData(priceDict.getMemo()));
thrProductsResponses.add(thrProductsResponse);
}
PageSimpleResponse<ThrProductsResponse> thrProductsResponsePageSimpleResponse = new PageSimpleResponse<>();
@ -249,6 +250,25 @@ public class AxxyyClient extends CommonHttpClient {
}
}
public String replaceData(String sepll){
sepll.replace("", "").replace(":", "");
// 检查是否包含“规格型号”并替换为空字符串
if (sepll.contains("规格型号")) {
sepll = sepll.replace("规格型号", "");
}
// 检查是否包含“规格”并替换为空字符串
if (sepll.contains("规格")) {
sepll = sepll.replace("规格", "");
}
// 检查是否包含“型号”并替换为空字符串
if (sepll.contains("型号")) {
sepll = sepll.replace("型号", "");
}
return sepll;
}
/**
* --( A003)
*

@ -75,4 +75,7 @@ public class PriceDict {
private String countryCode;
private String orgStdcode;
private String memo;
}

Loading…
Cancel
Save