jsp+ssm(spring+springMVC+mybatis)实现的医院人事管理系统,系统比较简单,前端界面采用的是layui框架,非常精简友好,主要实现了上班签到,下班签到,生成考勤数据,员工管理、部门管理、职位管理、请假管理、加班管理等功能。
适用
课程设计,大作业,毕业设计,项目练习,学习演示等
@Autowired
private IAdminService iadminService;
/**
* 新建角色
*
* @param roleVO
* @return
*/
@RequestMapping(value = "/createRole", method = RequestMethod.POST)
public BaseResponse<String> createRole(@RequestBody @Validated RoleVO roleVO) {
return iadminService.createRole(roleVO);
}
/**
* 后台添加账户
*
* @param reqVO
* @return
*/
@RequestMapping(value = "/adduser", method = RequestMethod.POST)
public BaseResponse<String> saveUserAndSendEmailTemp(@RequestBody @Validated UserRegisterReqVO reqVO) {
return iadminService.saveUserAndSendEmailTemp(reqVO);
}
/**
* 后台添加角色
return iadminService.createRole(roleVO);
}
/**
* 后台添加账户
*
* @param reqVO
* @return
*/
@RequestMapping(value = "/adduser", method = RequestMethod.POST)
public BaseResponse<String> saveUserAndSendEmailTemp(@RequestBody @Validated UserRegisterReqVO reqVO) {
return iadminService.saveUserAndSendEmailTemp(reqVO);
}
/**
* 后台添加角色
*
* @param addRoleVO
* @return
*/
@RequestMapping(value = "/addRole", method = RequestMethod.POST)
public BaseResponse<String> addRole(@RequestBody @Validated AddRoleVO addRoleVO) {
return iadminService.addRole(addRoleVO);
}
/**
* 获取审核角色
*
* @param
public AnnRspVO getAnnContent(@RequestParam String id) {
return iUserService.getAnnContent(id);
}
@PostMapping(value = "/addAnotherRole")
public BaseResponse<String> addAnotherRole(@RequestBody @Validated AccountRoleVO reqVO) {
return iUserService.addAnotherRole(reqVO);
}
/**
* 获取所有角色
* @param
* @return
*/
@PostMapping(value = "/getAllRole")
public List<GetAllRoleRspVO> getAllRole() {
return iUserService.getAllRole();
}
}
拿药管理API:
/**
* @author yy
@GetMapping(value = "/getRoleApply")
public PageRspVO<applyRspVO> getRoleApply(BasePageReqVO reqVO) {
return iadminService.getRoleApply(reqVO);
}
/**
* 修改角色状态
*
* @param status
* @param email
*/
@PostMapping(value = "/changeRoleStatus")
public void changeRoleStatus(@RequestParam String status, @RequestParam String email) {
iadminService.changeRoleStatus(status, email);
}
/**
* 公告
*
* @param reqVO
}
管理员操作API:
@RestController
@RequestMapping(value = "/admin")
@Api(tags = "管理员操作API")
public class AdminController {
@Autowired
private IAdminService iadminService;
/**
* 新建角色
*
* @param roleVO
* @return
*/
@RequestMapping(value = "/createRole", method = RequestMethod.POST)
public BaseResponse<String> createRole(@RequestBody @Validated RoleVO roleVO) {
return iadminService.createRole(roleVO);
}
public BaseResponse<String> addRole(@RequestBody @Validated AddRoleVO addRoleVO) {
return iadminService.addRole(addRoleVO);
}
/**
* 获取审核角色
*
* @param
* @return
*/
@GetMapping(value = "/getRoleApply")
public PageRspVO<applyRspVO> getRoleApply(BasePageReqVO reqVO) {
return iadminService.getRoleApply(reqVO);
}
/**
public List<UserInfoVO> getUserInfo() {
return iUserService.getUserInfo();
}
@PostMapping(value = "/changeUserInfo")
public BaseResponse<String> changeUserInfo(@RequestBody @Validated UserInfoVO reqVO) {
return iUserService.changeUserInfo(reqVO);
}
@PostMapping(value = "/getAnnContent")
public AnnRspVO getAnnContent(@RequestParam String id) {
return iUserService.getAnnContent(id);
}
@PostMapping(value = "/addAnotherRole")
public BaseResponse<String> addAnotherRole(@RequestBody @Validated AccountRoleVO reqVO) {
return iUserService.addAnotherRole(reqVO);
}
/**
* 获取所有角色
* @param
* @return
*/
@PostMapping(value = "/getAllRole")
public List<GetAllRoleRspVO> getAllRole() {
return iUserService.getAllRole();
}
}
/**
* 后台添加账户
*
* @param reqVO
* @return
*/
@RequestMapping(value = "/adduser", method = RequestMethod.POST)
public BaseResponse<String> saveUserAndSendEmailTemp(@RequestBody @Validated UserRegisterReqVO reqVO) {
return iadminService.saveUserAndSendEmailTemp(reqVO);
}
/**
* 后台添加角色
*
*
* @param reqVO
* @return
*/
@RequestMapping(value = "/adduser", method = RequestMethod.POST)
public BaseResponse<String> saveUserAndSendEmailTemp(@RequestBody @Validated UserRegisterReqVO reqVO) {
return iadminService.saveUserAndSendEmailTemp(reqVO);
}
/**
* 后台添加角色
*
* @param addRoleVO
* @return
*/
@RequestMapping(value = "/addRole", method = RequestMethod.POST)
public BaseResponse<String> addRole(@RequestBody @Validated AddRoleVO addRoleVO) {
}
/**
* 保存拿药信息
*
* @param prescriptionNum
* @return
*/
@PostMapping(value = "/saveTakingDrugInfo")
public BaseResponse<String> saveTakingDrugInfo(@RequestParam String prescriptionNum) {
return iTakingDrugService.saveTakingDrugInfo(prescriptionNum);
}
}
管理员操作API:
@RestController
@RequestMapping(value = "/admin")
@Api(tags = "管理员操作API")
public class AdminController {
@Autowired
public BaseResponse<String> createRole(@RequestBody @Validated RoleVO roleVO) {
return iadminService.createRole(roleVO);
}
/**
* 后台添加账户
*
* @param reqVO
* @return
*/
@RequestMapping(value = "/adduser", method = RequestMethod.POST)
public BaseResponse<String> saveUserAndSendEmailTemp(@RequestBody @Validated UserRegisterReqVO reqVO) {
return iadminService.saveUserAndSendEmailTemp(reqVO);
}
/**
* 后台添加角色
*
* @param addRoleVO
* @return
*/
@RequestMapping(value = "/addRole", method = RequestMethod.POST)
public BaseResponse<String> addRole(@RequestBody @Validated AddRoleVO addRoleVO) {