资源简介
供适合java初学者参考学习,可直接测试,包含数据库sql文件,需求说明书等。。
项目简介:模拟公司的人事系统,包括模拟面试,招聘,考勤,薪资发放及换岗等功能
开发环境:windows,eclipse,jdk1.8,tomcat,Mysql数据库
技术实现:ssm+Ajax+Javascript+jQuery+JSP,MVC开发模式
代码片段和文件信息
package com.iotek.ssm.controller;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.propertyeditors.CustomDateEditor;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.ServletRequestDataBinder;
import org.springframework.web.bind.annotation.InitBinder;
import org.springframework.web.bind.annotation.RequestMapping;
import com.iotek.ssm.entity.Apply;
import com.iotek.ssm.entity.Dept;
import com.iotek.ssm.entity.Employee;
import com.iotek.ssm.entity.Msg;
import com.iotek.ssm.entity.Post;
import com.iotek.ssm.entity.Resume;
import com.iotek.ssm.entity.User;
import com.iotek.ssm.service.ApplyService;
import com.iotek.ssm.service.DeptService;
import com.iotek.ssm.service.EmpService;
import com.iotek.ssm.service.MsgService;
import com.iotek.ssm.service.PostService;
import com.iotek.ssm.service.ResumeService;
import com.iotek.ssm.service.UserService;
@RequestMapping(“apply“)
@Controller
public class ApplyController {
@Autowired
private ApplyService applyService;
@Autowired
private UserService userService;
@Autowired
private ResumeService resumeService;
@Autowired
private MsgService msgService;
@Autowired
private DeptService deptService;
@Autowired
private PostService postService;
@Autowired
private EmpService empService;
@InitBinder
public void initBinder(ServletRequestDataBinder binder) {
binder.registerCustomEditor(Date.class
new CustomDateEditor(new SimpleDateFormat(“yyyy-MM-dd“) true));
}
@RequestMapping(“lookApply“)
public String lookApply(Model model) {
List applies = applyService.findAllApply();
model.addAttribute(“applies“ applies);
return “showAllApplies“;
}
@RequestMapping(“lookResume“)
public String lookResume(Model modelString unameint aid) {
User user = userService.findUserByName(uname);
Resume resume = resumeService.findResumeByUid(user.getUid());
Apply apply = applyService.findApplyByAid(aid);
apply.setCheckStatus(“已查看“);
applyService.updateApply(apply);
model.addAttribute(“resume“ resume);
model.addAttribute(“apply“ apply);
return “showUserResume“;
}
@RequestMapping(“delApply“)
public String delApply(int aidModel model) {
applyService.delApply(aid);
return “forward:/apply/lookApply“;
}
@RequestMapping(“updateApply“)
public String updateApply(int aidDate interviewTime) {
Apply apply = applyService.findApplyByAid(aid);
if(apply.getInterviewStatus().equals(“按时面试“)) {
return “manager_index“;
}
apply.setInterviewStatus(“按时面试“);
apply.setInterviewTime(interviewTime);
applyService.updateApply(apply);
User user = userService.findUserByName(apply.getUname());
Msg msg = new Msg(-1 user.getUid() “您有一份面试通知,详情在 反馈 中查看“);
msgService.addMsg(msg);
return
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 13846 2018-06-15 22:05 hrsystem.sql
文件 887 2018-01-03 10:10 hrsystem2\.classpath
文件 909 2018-01-17 12:19 hrsystem2\.project
文件 567 2018-01-03 10:00 hrsystem2\.settings\.jsdtscope
文件 364 2018-01-03 10:00 hrsystem2\.settings\org.eclipse.jdt.core.prefs
文件 553 2018-01-03 10:10 hrsystem2\.settings\org.eclipse.wst.common.component
文件 345 2018-01-03 10:00 hrsystem2\.settings\org.eclipse.wst.common.project.facet.core.xm
文件 49 2018-01-03 10:00 hrsystem2\.settings\org.eclipse.wst.jsdt.ui.superType.container
文件 6 2018-01-03 10:00 hrsystem2\.settings\org.eclipse.wst.jsdt.ui.superType.name
文件 8911 2018-06-15 21:53 hrsystem2\build\classes\com\iotek\ssm\controller\ApplyController.class
文件 5128 2018-06-15 21:53 hrsystem2\build\classes\com\iotek\ssm\controller\CheckonController.class
文件 3499 2018-06-15 21:53 hrsystem2\build\classes\com\iotek\ssm\controller\DeptController.class
文件 2667 2018-06-15 21:53 hrsystem2\build\classes\com\iotek\ssm\controller\DissentController.class
文件 4010 2018-06-15 21:53 hrsystem2\build\classes\com\iotek\ssm\controller\EmpController.class
文件 2754 2018-06-15 21:53 hrsystem2\build\classes\com\iotek\ssm\controller\MeritController.class
文件 614 2018-06-15 21:53 hrsystem2\build\classes\com\iotek\ssm\controller\MsgController.class
文件 2757 2018-06-15 21:53 hrsystem2\build\classes\com\iotek\ssm\controller\PostController.class
文件 4371 2018-06-15 21:53 hrsystem2\build\classes\com\iotek\ssm\controller\RecruitController.class
文件 5923 2018-06-15 21:53 hrsystem2\build\classes\com\iotek\ssm\controller\ResumeController.class
文件 3075 2018-06-15 21:53 hrsystem2\build\classes\com\iotek\ssm\controller\RewandpunController.class
文件 5823 2018-06-15 21:53 hrsystem2\build\classes\com\iotek\ssm\controller\SalaryController.class
文件 5326 2018-06-15 21:53 hrsystem2\build\classes\com\iotek\ssm\controller\TrainController.class
文件 3535 2018-06-15 21:53 hrsystem2\build\classes\com\iotek\ssm\controller\UserController.class
文件 649 2018-06-15 21:53 hrsystem2\build\classes\com\iotek\ssm\dao\ApplyDao.class
文件 514 2018-06-15 21:53 hrsystem2\build\classes\com\iotek\ssm\dao\CheckonDao.class
文件 559 2018-06-15 21:53 hrsystem2\build\classes\com\iotek\ssm\dao\DeptDao.class
文件 412 2018-06-15 21:53 hrsystem2\build\classes\com\iotek\ssm\dao\DissentDao.class
文件 609 2018-06-15 21:53 hrsystem2\build\classes\com\iotek\ssm\dao\EmployeeDao.class
文件 257 2018-06-15 21:53 hrsystem2\build\classes\com\iotek\ssm\dao\MeritDao.class
文件 306 2018-06-15 21:53 hrsystem2\build\classes\com\iotek\ssm\dao\MsgDao.class
............此处省略272个文件信息
评论
共有 条评论