src/main/java/com/luoyunfan/action/StudentAction.java

(开头部分) 3KB

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

package com.luoyunfan.action;

import org.springframework.beans.factory.annotation.Autowired;

import com.luoyunfan.entity.Student;
import com.luoyunfan.service.impl.StudentService;

public class StudentAction extends BaseAction{
	String username;
	String password;
	String name;
	String phone;
	String return_date;
	 
	StudentService studentService;
	
	public void setStudentService(StudentService studentService) {
		this.studentService = studentService;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	
	public String stuZh;
	
	public void setStuZh(String stuZh) {
		this.stuZh = stuZh;
	}
	//查找学生
	public String stuFind() {
		
		Student student = new Student();
		student.setStuZh(stuZh);
		Student stu  =  studentService.findLogin1(student);
		if(stu!=null) {
			session.put("stuInfo", stu);	 
		}
		else {
		}
		return "success";
	}
	//--------------------学生登录------------------------//
	public String stuLogin() {
		Student student = new Student();
		student.setStuZh(username);
		student.setStuPwd(password);
		Student stu  =  studentService.findLogin(student);
		
		
		if(stu!=null) {
后面还有 79 行代码,购买后查看完整代码

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

AI 解读

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

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