@WebServlet("/export/risk") public class ExportRiskCheckWordServlet extends HttpServlet { private static final long serialVersionUID = 1L; public Logger logger = LogManager.getLogger(this.getClass()); public ExportRiskCheckWordServlet() { super(); } @Override protected void doGet(HttpServletRequest request, HttpServletResponse response) { doPost(request, response); } @Override protected void doPost(HttpServletRequest request, HttpServletResponse response) { Integer id = Integer.valueOf((String) request.getParameter("id")); Connection conn = null; DataSource ds = Utils.getDs(); conn = ds.getConnection(); conn.setAutoCommit(false); QueryRunner run = new QueryRunner(); ResultSetHandler>> h = new MapListHandler(); list = run.query(conn, " SELECt o.id FROM fdd_order o WHERe o.ID = ? ", h, new Object[]{id}); } }
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)