|
@@ -21,7 +21,7 @@ public class DataTask implements ITask {
|
|
JSONArray jsonArray = dService.getExamList(30);
|
|
JSONArray jsonArray = dService.getExamList(30);
|
|
for (Object object : jsonArray) {
|
|
for (Object object : jsonArray) {
|
|
JSONObject jsonObject = JSON.parseObject(object.toString());
|
|
JSONObject jsonObject = JSON.parseObject(object.toString());
|
|
- Record record = Db.use("connected").findFirst("select * from reportinfo where STUDYUID=?", jsonObject.getString("studyuid"));
|
|
|
|
|
|
+ Record record = Db.use("connected").findFirst("select * from reportinfo where ACCESSIONNUMBER=?", jsonObject.getString("accession_num"));
|
|
if (record == null) {
|
|
if (record == null) {
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|
|
@@ -48,9 +48,9 @@ public class DataTask implements ITask {
|
|
params.put("description", record.getStr("DESCRIPTION"));
|
|
params.put("description", record.getStr("DESCRIPTION"));
|
|
//exams表
|
|
//exams表
|
|
//申请科室
|
|
//申请科室
|
|
- params.put("application_department", "");
|
|
|
|
|
|
+ params.put("application_department", record.getStr("DEPARTMENT"));
|
|
//申请医生
|
|
//申请医生
|
|
- params.put("application_doctor", "");
|
|
|
|
|
|
+ params.put("application_doctor", record.getStr("CLINICALDOCTOR"));
|
|
//临床诊断
|
|
//临床诊断
|
|
params.put("clin_diag", "");
|
|
params.put("clin_diag", "");
|
|
//症状
|
|
//症状
|
|
@@ -61,7 +61,7 @@ public class DataTask implements ITask {
|
|
//患者手机号
|
|
//患者手机号
|
|
params.put("phone", record.getStr("PHONE"));
|
|
params.put("phone", record.getStr("PHONE"));
|
|
//患者身份证号
|
|
//患者身份证号
|
|
- params.put("card_num", "");
|
|
|
|
|
|
+ params.put("card_num", record.getStr("IDCARD"));
|
|
params.put("report_result", "0");
|
|
params.put("report_result", "0");
|
|
ThreadPoolService tService = ServiceFactory.getService(ThreadPoolService.class);
|
|
ThreadPoolService tService = ServiceFactory.getService(ThreadPoolService.class);
|
|
tService.execute(() -> {
|
|
tService.execute(() -> {
|