|
@@ -62,15 +62,20 @@ public class ViewController extends Controller {
|
|
|
|
|
|
public void testDown() {
|
|
|
// TODO Auto-generated method stub
|
|
|
- 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/202\r\n"
|
|
|
- + "10922/000096550AB54AEF944DAD32556D560D/Report/Report.jpg");
|
|
|
+ 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");
|
|
|
+ } catch (Exception e) {
|
|
|
+ // TODO: handle exception
|
|
|
+ this.renderText(e.toString());
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
|
|
|
}
|