xiaoneigongxiang/src/com/service/loginService.java

(开头部分) 4KB

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

package com.service;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;

import javax.servlet.http.HttpSession;

import org.directwebremoting.WebContext;
import org.directwebremoting.WebContextFactory;




import com.dao.DB;
import com.orm.TAdmin;
import com.orm.Tleibie;
import com.orm.Txuesheng;

public class loginService
{
	public String login(String userName,String userPw,int userType)
	{
		try
		{
			Thread.sleep(700);
		} catch (InterruptedException e)
		{
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		String result="no";
		
		
		if(userType==1)
		{
			String sql="select * from t_xuesheng where xszhanghao=? and xsmima=?";
			Object[] params={userName,userPw};
			DB mydb=new DB();
			try
			{
				mydb.doPstm(sql, params);
				ResultSet rs=mydb.getRs();
				boolean mark=(rs==null||!rs.next()?false:true);
				if(mark==false)
				{
					result="no";
				}
				if(mark==true)
				{
					result="yes";
					Txuesheng xuesheng=new Txuesheng();
					xuesheng.setxsID(rs.getInt("xsID"));
					xuesheng.setxszhanghao(rs.getString("xszhanghao"));
					xuesheng.setxsmima(rs.getString("xsmima"));
					xuesheng.setxsxingming(rs.getString("xsxingming"));
					xuesheng.setxsdianhua(rs.getString("xsdianhua"));
					xuesheng.setxsweixin(rs.getString("xsweixin"));
后面还有 120 行代码,购买后查看完整代码

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

AI 解读 AI

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

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