基于javaweb+mysql的医院人事考勤管理系统(java+SSM+jsp+layui+Mysql)

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) {

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值