Java项目:医院人事管理系统(java+SSM+jsp+layui+Mysql)

源码获取:博客首页 "资源" 里下载!

jsp+ssm(spring+springMVC+mybatis)实现的医院人事管理系统,系统比较简单,前端界面采用的是layui框架,非常精简友好,主要实现了上班签到,下班签到,生成考勤数据,员工管理、部门管理、职位管理、请假管理、加班管理等功能。

Java项目:医院人事管理系统(java+SSM+jsp+layui+Mysql)_第1张图片

 Java项目:医院人事管理系统(java+SSM+jsp+layui+Mysql)_第2张图片

 Java项目:医院人事管理系统(java+SSM+jsp+layui+Mysql)_第3张图片

 Java项目:医院人事管理系统(java+SSM+jsp+layui+Mysql)_第4张图片

 Java项目:医院人事管理系统(java+SSM+jsp+layui+Mysql)_第5张图片

用户管理API:

@RestController
@RequestMapping(value = "/user")
@Api(tags = "用户管理API")
public class UserController {

    @Autowired
    private IUserService iUserService;


    /**
     * 登录验证
     *
     * @param reqVO
     * @param model
     * @return
     */
    @RequestMapping(value = "/dologin", method = RequestMethod.POST)
    public BaseResponse doLogin(@RequestBody @Validated UserLoginReqVO reqVO, Model model) {

        return iUserService.doLogin(reqVO);
    }

    /**
     * 保存用户注册信息,向用户发送激活链接
     *
     * @param reqVO
     * @return
     */
    @RequestMapping(value = "/doregister", method = RequestMethod.POST)
    public BaseResponse registered(@RequestBody @Validated UserRegisterReqVO reqVO, Model model) {

        return iUserService.saveUserAndSendEmail(reqVO);
    }


    /**
     * 获取登录日志
     *
     * @param reqVO
     * @return
     */
    @RequestMapping(value = "/getLoginfor",method = RequestMethod.GET)
    public PageRspVO getLoginfor(BasePageReqVO reqVO) {

        return iUserService.getLoginfor(reqVO);
    }

    /**
     * 修改密码
     *
     * @param reqVO
     * @return
     */
    @PostMapping(value = "/changePassword")
    public BaseResponse changePassword(@RequestBody @Validated ChangePasswordReqVO reqVO) {

        return iUserService.changePassword(reqVO);
    }

    /**
     * 个人资料设置
     *
     * @return
     */
    @PostMapping(value = "/getUserInfo")
    public List getUserInfo() {

        return iUserService.getUserInfo();
    }

    @PostMapping(value = "/changeUserInfo")
    public BaseResponse 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 addAnotherRole(@RequestBody @Validated AccountRoleVO reqVO) {

        return iUserService.addAnotherRole(reqVO);
    }


    /**
     * 获取所有角色
     * @param
     * @return
     */
    @PostMapping(value = "/getAllRole")
    public List getAllRole() {
        return iUserService.getAllRole();
    }

}

拿药管理API:

/**
 * @author yy
 */
@RestController
@RequestMapping(value = "/takingdrug")
@Api(tags = "拿药管理API")
public class TakingDrugController {

    @Autowired
    private ITakingDrugService iTakingDrugService;

    /**
     * 获取处方笺信息
     *
     * @param prescriptionNum
     * @return
     * @throws Exception
     */
    @PostMapping(value = "/getMedicalRecord")
    public MedicalRecordRspVO getMedicalRecord(@RequestParam String prescriptionNum) throws Exception {

        return iTakingDrugService.getMedicalRecord(prescriptionNum);
    }

    /**
     * 保存拿药信息
     *
     * @param prescriptionNum
     * @return
     */
    @PostMapping(value = "/saveTakingDrugInfo")
    public BaseResponse saveTakingDrugInfo(@RequestParam String prescriptionNum) {

        return iTakingDrugService.saveTakingDrugInfo(prescriptionNum);
    }
}

管理员操作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 createRole(@RequestBody @Validated RoleVO roleVO) {

        return iadminService.createRole(roleVO);

    }

    /**
     * 后台添加账户
     *
     * @param reqVO
     * @return
     */
    @RequestMapping(value = "/adduser", method = RequestMethod.POST)
    public BaseResponse saveUserAndSendEmailTemp(@RequestBody @Validated UserRegisterReqVO reqVO) {

        return iadminService.saveUserAndSendEmailTemp(reqVO);
    }

    /**
     * 后台添加角色
     *
     * @param addRoleVO
     * @return
     */
    @RequestMapping(value = "/addRole", method = RequestMethod.POST)
    public BaseResponse addRole(@RequestBody @Validated AddRoleVO addRoleVO) {

        return iadminService.addRole(addRoleVO);
    }


    /**
     * 获取审核角色
     *
     * @param
     * @return
     */
    @GetMapping(value = "/getRoleApply")
    public PageRspVO 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
     * @return
     */
    @PostMapping(value = "/addAnnouncement")
    public BaseResponse addAnnouncement(@RequestBody @Validated AnnouncementVO reqVO) {

        return iadminService.addAnnouncement(reqVO);
    }

    @GetMapping(value = "/getAnnouncement")
    public PageRspVO getAnnouncement(BasePageReqVO reqVO) {

        return iadminService.getAnnouncement(reqVO);
    }

    @PostMapping(value = "/changeAnnouncement")
    public BaseResponse changeAnnouncement(@RequestBody @Validated AnnouncementVO announcementVO) {

        return iadminService.changeAnnouncement(announcementVO);
    }

    @PostMapping(value = "/deleteAnnouncement")
    public BaseResponse deleteAnnouncement(@RequestParam String id) {

        return iadminService.deleteAnnouncement(id);
    }

    @PostMapping(value = "/showAnnouncement")
    public BaseResponse showAnnouncement(@RequestParam String id) {

        return iadminService.showAnnouncement(id);
    }

    @PostMapping(value = "/hiddenAnnouncement")
    public BaseResponse hiddenAnnouncement(@RequestParam String id) {

        return iadminService.hiddenAnnouncement(id);
    }

    @PostMapping(value = "/adddepartment")
    @ApiOperation(value = "添加科室", httpMethod = "POST", notes = "添加科室")
    @ApiImplicitParam(name = "reqVO",value = "添加科室", dataType = "AddDepartmentReqVO")
    public BaseResponse addDepartment(@RequestBody @Validated AddDepartmentReqVO reqVO) {

        return iadminService.addDepartment(reqVO);
    }

    @PostMapping(value = "/getDepartment")
    @ApiOperation(value = "获取所有科室", httpMethod = "POST", notes = "获取所有科室")
    public List getDepartment() {
        return iadminService.getDepartment();
    }
}

 源码获取:博客首页 "资源" 里下载!

你可能感兴趣的:(Java毕业设计项目实战篇,java,Layui,ssm,jsp,mysql)