src/com/bdglxt/action/bdgl_servlet.java

(开头部分) 11KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

package com.bdglxt.action;

import java.io.IOException;
import java.sql.ResultSet;
import java.util.ArrayList;
import java.util.List;

import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.bdglxt.dao.DB;
import com.bdglxt.orm.Yuangong;
import com.bdglxt.orm.baodan;
import com.bdglxt.orm.bdlx;
import com.bdglxt.orm.jcxx;
import com.bdglxt.util.DateUtils;

public class bdgl_servlet extends HttpServlet{
	public void service(HttpServletRequest req,HttpServletResponse res)throws ServletException, IOException 
	{
		String type=req.getParameter("type");
		
		if(type.endsWith("toAdd"))
		{
			toAdd(req, res);
		}
		if(type.endsWith("bdglAdd")){
			bdglAdd(req, res);
		}
		if(type.endsWith("bdglMana")){
			bdglMana(req, res);
		}
		if(type.endsWith("bdglSearch")){
			bdglSearch(req, res);
		}
		if(type.endsWith("bdglBrowse")){
			bdglBrowse(req, res);
		}
		if(type.endsWith("bdglBrowseSearch")){
			bdglBrowseSearch(req, res);
		}
	}
	
	public void bdglBrowseSearch(HttpServletRequest req,HttpServletResponse res) throws ServletException, IOException{
		String sql = "select * from " +
					 "(select id,bianhao," +
					 "(select lxmc from t_baodanleixing tb where tb.id=leixing) leixing," +
					 "(select xingming from t_kehu tc where tc.id=kehu)strkehu," +
					 "(select mingcheng from t_jcxx td where td.id=jfsx)jfsx," +
					 "jine,tbrq,shouyiren,shouyirenxb,guanxi,shouyirensfz, " +
					 "(select name from t_yuangong te where te.id=yuangong)yuangong "+
					 "from t_baodan)tempbd " +
					 "where tempbd.strkehu like '%"+req.getParameter("xingming").trim()+"%' order by tempbd.tbrq";
		Yuangong yuangong = (Yuangong) req.getSession().getAttribute("userinfo");
		if(yuangong==null){
			req.setAttribute("message", "登录超时,请重新登录!");
			req.setAttribute("path", "/login.jsp");
后面还有 311 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。