|
@@ -22,7 +22,7 @@ public class USInfoTask implements ITask {
|
|
|
public void run() {
|
|
|
// TODO Auto-generated method stub
|
|
|
|
|
|
- List<Record> records = Db.use("connected").find("select * from View_PACS where CHECK_TYPE='US1'");
|
|
|
+ List<Record> records = Db.use("connected").find("select top 100 * from View_PACS where CHECK_TYPE='US1' order by LODGEDATE desc");
|
|
|
for (Record rd : records) {
|
|
|
Record recordfind =Db.use("local").findFirst("select * from View_PACS where HISID=? and PARTOFCHECK=? and LODGEDATE=?",rd.getStr("HISID"),rd.getStr("PARTOFCHECK"),rd.getStr("LODGEDATE"));
|
|
|
if(recordfind !=null)
|