|
@ -1603,7 +1603,7 @@ public class YkyyEntranceService {
|
|
|
}
|
|
|
|
|
|
if (StringUtils.isNoneBlank(pydm)){
|
|
|
sql+=" and lower(yp.pydm) like '%"+pydm.toLowerCase()+"%' ";
|
|
|
sql+=" and (lower(yp.pydm) like '%"+pydm.toLowerCase()+"%' or yp.ypmc like '%"+pydm+"%') ";
|
|
|
}
|
|
|
if (StringUtils.isNoneBlank(hisCode)){
|
|
|
sql+=" and lower(yp.yfsb) like '%"+hisCode.toLowerCase()+"%' ";
|
|
@ -2079,7 +2079,7 @@ public class YkyyEntranceService {
|
|
|
String sql = "select i.code as \"code\",i.name as \"name\",i.disea_reason as \"disea_reason\",i.death_reason as \"death_reason\",i.py_code as \"py_code\",i.flag as \"flag\",i.add_code as \"add_code\",i.emr as \"emr\" from v_hlw_icd10 i";
|
|
|
JSONArray array = new JSONArray();
|
|
|
if (StringUtils.isNoneBlank(pyCode)){
|
|
|
sql +=" where lower(i.py_code) like '%"+pyCode.toLowerCase()+"%'";
|
|
|
sql +=" where 1=1 and (lower(i.py_code) like '%"+pyCode.toLowerCase()+"%' or i.name like '%"+pyCode+"%') ";
|
|
|
}
|
|
|
Map<String,Object> params = new HashedMap();
|
|
|
params.put("sql",sql);
|