src/com/service/liuService.java

(开头部分) 1KB

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

package com.service;

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

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

import com.dao.DB;
import com.orm.Tloucheng;
import com.orm.Tgonggao;
public class liuService
{
	public static List louchengList()
	{
		List louchengList=new ArrayList();
		String sql="select * from t_loucheng where louchengzhuangtai='正常'";
		Object[] params={};
		DB mydb=new DB();
		try
		{
			mydb.doPstm(sql, params);
			ResultSet rs=mydb.getRs();
			while(rs.next())
			{
				Tloucheng loucheng=new Tloucheng();
				loucheng.setlouchengID(rs.getInt("louchengID"));
				loucheng.setlouchengName(rs.getString("louchengName"));
				louchengList.add(loucheng);
		    }
			rs.close();
		}
		catch(Exception e)
		{
			e.printStackTrace();
		}
		mydb.closed();
		return louchengList;
	}


	public static List gonggaoList()
	{
		List gonggaoList=new ArrayList();
		String sql="select * from t_gonggao";
		Object[] params={};
		DB mydb=new DB();
		try
		{
			mydb.doPstm(sql, params);
			ResultSet rs=mydb.getRs();
			while(rs.next())
			{
                Tgonggao gonggao=new Tgonggao();
                gonggao.setggID(rs.getInt("ggID"));
                gonggao.setggbiaoti(rs.getString("ggbiaoti"));
后面还有 21 行代码,购买后查看完整代码

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

AI 解读 AI

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

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