|
@@ -18,6 +18,8 @@ import com.jfinal.plugin.activerecord.Db;
|
|
|
import com.jfinal.plugin.activerecord.Record;
|
|
|
import com.jfinal.plugin.activerecord.dialect.SqlServerDialect;
|
|
|
import com.jfinal.plugin.druid.DruidPlugin;
|
|
|
+import com.zskk.service.DataService;
|
|
|
+import com.zskk.service.ServiceFactory;
|
|
|
|
|
|
import okhttp3.FormBody;
|
|
|
import okhttp3.MediaType;
|
|
@@ -56,8 +58,23 @@ public class ViewController extends Controller {
|
|
|
}
|
|
|
|
|
|
public void testDown() {
|
|
|
+ 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", "3");
|
|
|
+ annex_params.put("code", "CT202204244354");
|
|
|
+ //附件类型1.mp4 2.pdf 3.jpeg
|
|
|
+ annex_params.put("annex_class_code", "2");
|
|
|
+ dService.saveAnnex(annex_params, "http://1.255.255.222:1881\\\\70\\\\CT\\\\20220424\\\\CT202204244354\\\\关永刚_65962.PDF");
|
|
|
|
|
|
+ } catch (Exception e) {
|
|
|
+ // TODO: handle exception
|
|
|
+ renderText(e.toString());
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
|
|
|
public static DruidPlugin createConnectedDruidPlugin() {
|
|
|
|