|
@@ -25,7 +25,7 @@ public class DataTask implements ITask {
|
|
|
for (Object object : jsonArray) {
|
|
|
try {
|
|
|
JSONObject jsonObject = JSON.parseObject(object.toString());
|
|
|
- Record record = Db.use("connected").findFirst("select * from medreport.v_reportinfo where ACCNUM=?", jsonObject.getString("patient_num"));
|
|
|
+ Record record = Db.use("connected").findFirst("select * from medreport.v_reportinfo where STUDYID=?", jsonObject.getString("accession_num"));
|
|
|
if (record == null) {
|
|
|
continue;
|
|
|
}
|
|
@@ -52,9 +52,9 @@ public class DataTask implements ITask {
|
|
|
params.put("description", record.getStr("REPORTFINDING"));
|
|
|
//exams表
|
|
|
//申请科室
|
|
|
- params.put("application_department", record.getStr("ORDERDEPARTMENT"));
|
|
|
+ params.put("application_department", record.getStr("ORDERDEPARTMENT")==null?"":record.getStr("ORDERDEPARTMENT"));
|
|
|
//申请医生
|
|
|
- params.put("application_doctor", record.getStr("ORDERDOCTOR"));
|
|
|
+ params.put("application_doctor", record.getStr("ORDERDOCTOR")==null?"":record.getStr("ORDERDOCTOR"));
|
|
|
//临床诊断
|
|
|
params.put("clin_diag", "");
|
|
|
//症状
|