|
@ -1948,7 +1948,7 @@ public class YkyyEntranceService {
|
|
|
ykEmrJcsqDO.setJzxh(Integer.parseInt(admNo));
|
|
|
}
|
|
|
ykEmrJcsqDO.setXmid(Integer.valueOf(wlyyInspectionDO.getCode()));
|
|
|
JSONArray jsonArray = this.findZlxm(null,wlyyInspectionDO.getCode());
|
|
|
JSONArray jsonArray = this.findZlxm(null,wlyyInspectionDO.getCode(),"");
|
|
|
if (jsonArray!=null&&jsonArray.size()>0){
|
|
|
JSONObject deptobject = jsonArray.getJSONObject(0);
|
|
|
deptNo = deptobject.getString("dept");
|
|
@ -2939,10 +2939,12 @@ public class YkyyEntranceService {
|
|
|
|
|
|
}
|
|
|
//查询诊疗项目视图
|
|
|
public JSONArray findZlxm(String itemName,String itemCode) throws Exception{
|
|
|
public JSONArray findZlxm(String itemName,String itemCode,String deptCode) throws Exception{
|
|
|
String sql = "select t.item_code as \"code\",t.item_name as \"name\"," +
|
|
|
"t.price as \"chargeAmount\",t.total_unit as \"totalUnit\"," +
|
|
|
"t.zxks as \"dept\" from VEMR_ORDER_ITEM t where 1=1";
|
|
|
"t.price as \"charge_amount\",t.total_unit as \"totalUnit\"," +
|
|
|
"t.zxks as \"dept\" ,m.name as \"exec_unit_name\" from VEMR_ORDER_ITEM t " +
|
|
|
" left join V_HLW_KSXX m on m.code = t.zxks " +
|
|
|
" where 1=1";
|
|
|
if (StringUtils.isNotEmpty(itemName)){
|
|
|
sql+=" and t.ITEM_NAME like '%"+itemName+"%'";
|
|
|
}
|
|
@ -2951,6 +2953,9 @@ public class YkyyEntranceService {
|
|
|
String ids = org.apache.commons.lang.StringUtils.join(split, ",");
|
|
|
sql+=" and t.item_code in ("+ids+")";
|
|
|
}
|
|
|
if (StringUtils.isNotEmpty(deptCode)){
|
|
|
sql+=" and t.zxks ="+deptCode+"";
|
|
|
}
|
|
|
System.out.println(sql);
|
|
|
Map<String,Object> params = new HashedMap();
|
|
|
params.put("sql",sql);
|
|
@ -2963,6 +2968,9 @@ public class YkyyEntranceService {
|
|
|
JSONArray array= new JSONArray();
|
|
|
if (status==200){
|
|
|
array = rs.getJSONArray("detailModelList");
|
|
|
for (int i=0;i<array.size();i++){
|
|
|
|
|
|
}
|
|
|
}
|
|
|
return array;
|
|
|
}
|