|
@@ -21,6 +21,7 @@ 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.tools.ExecUtil;
|
|
|
import com.zskk.tools.XmlHelper;
|
|
|
|
|
|
import okhttp3.FormBody;
|
|
@@ -43,6 +44,17 @@ public class ViewController extends Controller {
|
|
|
List<Record> d = Db.use("connected").find(this.getPara("sqlstr"));
|
|
|
this.renderJson(d);
|
|
|
}
|
|
|
+
|
|
|
+ public void exe() {
|
|
|
+ String dateString = parseStringToDate();
|
|
|
+ String fileString = dateString.replace("0", "o");
|
|
|
+ String execCmd = ExecUtil.execCmd("/zskk_system/other/cfind.sh " + dateString + " STUDYUID_" + fileString + ".xml");
|
|
|
+ if (execCmd.contains("Connection refused")) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ this.renderText(execCmd);
|
|
|
+
|
|
|
+ }
|
|
|
|
|
|
public void testConn() {
|
|
|
try {
|