資源簡(jiǎn)介
供適合java初學(xué)者參考學(xué)習(xí),可直接測(cè)試,包含數(shù)據(jù)庫(kù)sql文件,需求說(shuō)明書(shū)等。。
項(xiàng)目簡(jiǎn)介:模擬公司的人事系統(tǒng),包括模擬面試,招聘,考勤,薪資發(fā)放及換崗等功能
開(kāi)發(fā)環(huán)境:windows,eclipse,jdk1.8,tomcat,Mysql數(shù)據(jù)庫(kù)
技術(shù)實(shí)現(xiàn):ssm+Ajax+Javascript+jQuery+JSP,MVC開(kāi)發(fā)模式
代碼片段和文件信息
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(“l(fā)ookApply“)
public?String?lookApply(Model?model)?{
List?applies?=?applyService.findAllApply();
model.addAttribute(“applies“?applies);
return?“showAllApplies“;
}
@RequestMapping(“l(fā)ookResume“)
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(“按時(shí)面試“))?{
return?“manager_index“;
}
apply.setInterviewStatus(“按時(shí)面試“);
apply.setInterviewTime(interviewTime);
applyService.updateApply(apply);
User?user?=?userService.findUserByName(apply.getUname());
Msg?msg?=?new?Msg(-1?user.getUid()?“您有一份面試通知,詳情在?反饋?中查看“);
msgService.addMsg(msg);
return
?屬性????????????大小?????日期????時(shí)間???名稱(chēng)
-----------?---------??----------?-----??----
?????文件??????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個(gè)文件信息
評(píng)論
共有 條評(píng)論