选入药品加上生产厂家对照查不到就改括号

dev_unify
qiuyt 4 months ago
parent a753157d27
commit 8fd6e95bab

@ -111,6 +111,7 @@ public class ThirdAliDrugController extends BaseController {
}
} catch (Exception e) {
e.printStackTrace();
log.info("供应商平台获取阿里和国家库码段信息出现错误===" + e.getMessage());
}

@ -23,17 +23,23 @@ public class AlihealthKytDrugrescodeResponse extends AlihealthKytCommonParameter
private Integer page;
private Integer page_size;
public boolean judgeCall(String manufactory){
List<JSONObject> jsonArray = (List) this.getDrug_table_dto();
boolean bo = false;
if (jsonArray != null && jsonArray.size() > 0) {
for (JSONObject jsonObject : jsonArray) {
String entName = jsonObject.getStr("ent_name");
if(manufactory.replaceAll("\\(", "").replace(")", "")
.equals(entName.replaceAll("\\(", "").replace(")", ""))){
bo = true;
if(StringUtils.isNotEmpty(manufactory)){
List<JSONObject> jsonArray = (List) this.getDrug_table_dto();
if (jsonArray != null && jsonArray.size() > 0) {
for (JSONObject jsonObject : jsonArray) {
String entName = jsonObject.getStr("ent_name");
if(manufactory.replaceAll("\\(", "").replace(")", "")
.equals(entName.replaceAll("\\(", "").replace(")", ""))){
bo = true;
}
}
}
}else {
bo = true;
}
if(org.apache.commons.lang.StringUtils.isNotEmpty(this.getMsg_info()) && this.getMsg_info().equals("调用成功") && bo){
return true;
}

Loading…
Cancel
Save