|
@ -4,6 +4,7 @@ import com.yihu.ehr.dbhelper.common.DBList;
|
|
|
import com.yihu.ehr.dbhelper.common.MongodbQuery;
|
|
|
import com.yihu.ehr.dbhelper.common.QueryCondition;
|
|
|
import com.yihu.ehr.dbhelper.common.QueryEntity;
|
|
|
import com.yihu.ehr.dbhelper.mongodb.MongodbHelper;
|
|
|
import com.yihu.hos.resource.dao.intf.IResourceDao;
|
|
|
import com.yihu.hos.resource.service.intf.IResourceService;
|
|
|
import net.sf.json.JSONArray;
|
|
@ -131,9 +132,12 @@ public class ResourceService implements IResourceService {
|
|
|
}
|
|
|
}
|
|
|
DBList list = mdb.query(qe);
|
|
|
JSONObject jo = JSONObject.fromObject(list);
|
|
|
jo.remove("list");
|
|
|
MongodbQuery mdbSecond = new MongodbQuery("origin");
|
|
|
DBList listSecond = mdbSecond.query(qe);
|
|
|
|
|
|
JSONObject jo=new JSONObject();
|
|
|
jo.put("detailModelList", list.getList().toString());
|
|
|
jo.put("originList",listSecond.getList().toString());
|
|
|
return jo.toString();
|
|
|
} catch (Exception e) {
|
|
|
return "";
|