|
@@ -76,15 +76,17 @@ public class ViewController extends Controller {
|
|
// TODO Auto-generated method stub
|
|
// TODO Auto-generated method stub
|
|
try {
|
|
try {
|
|
|
|
|
|
-
|
|
|
|
- DataService dService = ServiceFactory.getService(DataService.class);
|
|
|
|
- Map<String, String> annex_params = new HashMap<>();
|
|
|
|
- annex_params.put("institution_id", PropKit.get("institution_id"));
|
|
|
|
- annex_params.put("type", "1");
|
|
|
|
- annex_params.put("code", "11");
|
|
|
|
- //附件类型1.mp4 2.pdf 3.jpeg
|
|
|
|
- annex_params.put("annex_class_code", "3");
|
|
|
|
- dService.saveAnnex(annex_params, "ftp://FTPUser:ftpuser@188.188.2.1:6161/20240726/1AFB48FCF39241AA8DE61F85EE6D847F/Report/Report.jpg");
|
|
|
|
|
|
+ List<Record> records = Db.use("connected").find("select top 10 * from reportinfo where modality = 'US' order by reviewdate desc");
|
|
|
|
+ this.renderJson(records);
|
|
|
|
+
|
|
|
|
+// DataService dService = ServiceFactory.getService(DataService.class);
|
|
|
|
+// Map<String, String> annex_params = new HashMap<>();
|
|
|
|
+// annex_params.put("institution_id", PropKit.get("institution_id"));
|
|
|
|
+// annex_params.put("type", "1");
|
|
|
|
+// annex_params.put("code", "11");
|
|
|
|
+// //附件类型1.mp4 2.pdf 3.jpeg
|
|
|
|
+// annex_params.put("annex_class_code", "3");
|
|
|
|
+// dService.saveAnnex(annex_params, "ftp://FTPUser:ftpuser@188.188.2.1:6161/20240726/1AFB48FCF39241AA8DE61F85EE6D847F/Report/Report.jpg");
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
// TODO: handle exception
|
|
// TODO: handle exception
|
|
this.renderText(e.toString());
|
|
this.renderText(e.toString());
|