|
@@ -20,9 +20,7 @@ public class ReviewTask implements ITask {
|
|
|
// TODO Auto-generated method stub
|
|
|
DataService dService = ServiceFactory.getService(DataService.class);
|
|
|
|
|
|
- List<Record> records = Db.use("connected").find(
|
|
|
- "SELECT * FROM (select * from reportinfo where REVIEWDATE>to_date(?,'YYYY-MM-DD HH24:MI:SS')and rownum < 60)ORDER BY REVIEWDATE DESC",
|
|
|
- getNowDate());
|
|
|
+ List<Record> records = Db.use("connected").find("select * from reportinfo where REVIEWDATE >", getNowDate());
|
|
|
if (records == null) {
|
|
|
return;
|
|
|
}
|
|
@@ -32,11 +30,12 @@ public class ReviewTask implements ITask {
|
|
|
continue;
|
|
|
}
|
|
|
Map<String, String> params = new HashMap<>();
|
|
|
- params.put("type", "4");
|
|
|
+ //1:exam_id 2:patient_num 3:accession_num 4:study_uid
|
|
|
+ params.put("type", "3");
|
|
|
|
|
|
params.put("institution_id", PropKit.get("institution_id"));
|
|
|
|
|
|
-// params.put("code", jsonObject.getString("id"));
|
|
|
+ params.put("code", record.getStr("ACCESSIONNUMBER"));
|
|
|
//报告医生姓名
|
|
|
params.put("report_doctor_name", record.getStr("REPORTDOCTOR"));
|
|
|
//报告时间
|
|
@@ -106,8 +105,8 @@ public class ReviewTask implements ITask {
|
|
|
private String getNowDate() {
|
|
|
SimpleDateFormat sdf= new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
Date date = new Date();
|
|
|
- //4小时
|
|
|
- Date lastDate = new Date(date.getTime()-5400000);
|
|
|
+ //20分钟
|
|
|
+ Date lastDate = new Date(date.getTime()-1200000);
|
|
|
String timeString = null;
|
|
|
timeString = sdf.format(lastDate);
|
|
|
return timeString;
|