|
@@ -22,7 +22,7 @@ public class InfoTask implements ITask {
|
|
|
public void run() {
|
|
|
// TODO Auto-generated method stub
|
|
|
DataService dService = ServiceFactory.getService(DataService.class);
|
|
|
- JSONArray jsonArray = dService.getExamList(50);
|
|
|
+ JSONArray jsonArray = dService.getExamList(80);
|
|
|
for (Object object : jsonArray) {
|
|
|
try {
|
|
|
JSONObject jsonObject = JSON.parseObject(object.toString());
|
|
@@ -66,8 +66,10 @@ public class InfoTask implements ITask {
|
|
|
params.put("card_num", record.getStr("IDCARD")==null?"":record.getStr("IDCARD"));
|
|
|
//检查结果1阴2阳
|
|
|
params.put("report_result", "0");
|
|
|
- //门诊号住院号
|
|
|
- params.put("hopitalized_no", "");
|
|
|
+ //住院号
|
|
|
+ params.put("hopitalized_no", record.getStr("HOPITALIZED_NO")==null?"":record.getStr("HOPITALIZED_NO"));
|
|
|
+ //门诊号
|
|
|
+ params.put("out_patient", record.getStr("PAT_NO")==null?"":record.getStr("PAT_NO"));
|
|
|
ThreadPoolService tService = ServiceFactory.getService(ThreadPoolService.class);
|
|
|
tService.execute(() -> {
|
|
|
dService.updatePatientInfo(params);
|