|
|
|
@ -1,6 +1,8 @@
|
|
|
|
|
package UnitTest;
|
|
|
|
|
|
|
|
|
|
import com.jfinal.plugin.activerecord.ActiveRecordPlugin;
|
|
|
|
|
import com.jfinal.plugin.activerecord.Db;
|
|
|
|
|
import com.jfinal.plugin.activerecord.Record;
|
|
|
|
|
import com.jfinal.plugin.activerecord.dialect.PostgreSqlDialect;
|
|
|
|
|
import com.jfinal.plugin.hikaricp.HikariCpPlugin;
|
|
|
|
|
|
|
|
|
@ -9,7 +11,6 @@ import java.io.IOException;
|
|
|
|
|
public class TestExportExcel {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static void main(String[] args) throws IOException {
|
|
|
|
|
//读取库
|
|
|
|
|
HikariCpPlugin hp = new HikariCpPlugin("jdbc:postgresql://10.10.14.71:5432/szjz_db", "postgres",
|
|
|
|
@ -20,6 +21,10 @@ public class TestExportExcel {
|
|
|
|
|
arp.setDialect(new PostgreSqlDialect());
|
|
|
|
|
arp.start();
|
|
|
|
|
|
|
|
|
|
int job_id = 47;
|
|
|
|
|
String sql = "select * from t_collect_job where job_id=?";
|
|
|
|
|
Record record = Db.findFirst(sql, job_id);
|
|
|
|
|
|
|
|
|
|
System.out.println("恭喜,所有操作成功完成!");
|
|
|
|
|
}
|
|
|
|
|
}
|