基于javaweb+springboot的中小医院信息管理系统(java+Springboot+ssm+mysql+maven+jsp)
一、项目简述
本系统功能包括:实现了挂号收费,门诊管理,划价收 费,药房取药,体检管理,药房管理,系统维护等各个模块功能,非常不错。
二、项目运行
环境配置: Jdk1.8 + Tomcat8.5 + Mysql + Eclispe (IntelliJ IDEA,Eclispe,MyEclispe,Sts 都支持)
项目技术: JSP +SpringBoot + MyBatis + Bootstrap+ Css + JavaScript + JQuery + Ajax + SpringDataJPA+ Maven等等。
适用
课程设计,大作业,毕业设计,项目练习,学习演示等
*/
@PostMapping(value = "/getIDcardInfor")
public IDcardRspVO getIDcardInfor() {
return iRegisterService.getIDcardInfor();
}
/**
* 读取新卡
*
* @return
*/
@PostMapping(value = "/getDefaultGetCardId")
public BaseResponse<String> getDefaultGetCardId() {
return iRegisterService.getDefaultGetCardId();
}
/**
* 办就诊卡
*
* @param reqVO
* @return
* @throws Exception
*/
@PostMapping(value = "/addPatientInfor")
}
/**
* 保存用户注册信息,向用户发送激活链接
*
* @param reqVO
* @return
*/
@RequestMapping(value = "/doregister", method = RequestMethod.POST)
public BaseResponse<String> registered(@RequestBody @Validated UserRegisterReqVO reqVO, Model model) {
return iUserService.saveUserAndSendEmail(reqVO);
}
/**
* 获取登录日志
*
@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<String> doLogin(@RequestBody @Validated UserLoginReqVO reqVO, Model model) {
@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<String> doLogin(@RequestBody @Validated UserLoginReqVO reqVO, Model model) {
return iUserService.doLogin(reqVO);
}
/**
* 保存用户注册信息,向用户发送激活链接
*
* @param reqVO
* @return
*/
@RequestMapping(value = "/doregister", method = RequestMethod.POST)
* @param reqVO
* @return
*/
@PostMapping(value = "/changePassword")
public BaseResponse<String> changePassword(@RequestBody @Validated ChangePasswordReqVO reqVO) {
return iUserService.changePassword(reqVO);
}
/**
* 个人资料设置
*
* @return
* @return
*/
@PostMapping(value = "/addRegisterInfor")
public BaseResponse<String> addRegisterInfor(@RequestBody @Validated RegisterInforReqVO reqVO) {
return iRegisterService.addRegisterInfor(reqVO);
}
/**
* 挂号记录查询
*
* @param reqVO
/**
* 读取就诊卡
*
* @return
*/
@PostMapping(value = "/getCardIdInfor")
public PatientInforRspVO getCardIdInfor(@RequestBody GetCardIdInforReqVO reqVO) throws Exception {
return iRegisterService.getCardIdInfor(reqVO);
}
/**
* 读取身份证
*
* @return
*/
@PostMapping(value = "/getIDcardInfor")
public IDcardRspVO getIDcardInfor() {
return iRegisterService.getIDcardInfor();
}
/**
* 读取新卡
*
* @return
*/
@ApiOperation(value = "获取所有科室", httpMethod = "POST", notes = "获取所有科室")
public List<GetDepartmentRspVO> getDepartment() {
return iadminService.getDepartment();
}
}
挂号管理API控制器:
/**
* 挂号管理API控制器
*/
@RestController
@RequestMapping(value = "/register")
@PostMapping(value = "/getDepartment")
@ApiOperation(value = "获取所有科室", httpMethod = "POST", notes = "获取所有科室")
public List<GetDepartmentRspVO> getDepartment() {
return iadminService.getDepartment();
}
}
挂号管理API控制器:
/**
* 挂号管理API控制器
*/
@RestController
@RequestMapping(value = "/register")
@Api(tags = "挂号管理API")
public class RegisterController {
@Autowired
private IRegisterService iRegisterService;
/**
* 读取就诊卡
*
* @return
*/
@PostMapping(value = "/getCardIdInfor")
public PatientInforRspVO getCardIdInfor(@RequestBody GetCardIdInforReqVO reqVO) throws Exception {
* @param
* @return
*/
@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);
@PostMapping(value = "/showAnnouncement")
public BaseResponse<String> showAnnouncement(@RequestParam String id) {
return iadminService.showAnnouncement(id);
}
@PostMapping(value = "/hiddenAnnouncement")
public BaseResponse<String> hiddenAnnouncement(@RequestParam String id) {
return iadminService.hiddenAnnouncement(id);
}
@PostMapping(value = "/adddepartment")
@ApiOperation(value = "添加科室", httpMethod = "POST", notes = "添加科室")
@ApiImplicitParam(name = "reqVO",value = "添加科室", dataType = "AddDepartmentReqVO")
public BaseResponse<String> addDepartment(@RequestBody @Validated AddDepartmentReqVO reqVO) {
return iadminService.addDepartment(reqVO);
}
@PostMapping(value = "/getDepartment")
@ApiOperation(value = "获取所有科室", httpMethod = "POST", notes = "获取所有科室")
public List<GetDepartmentRspVO> getDepartment() {
return iadminService.getDepartment();
}
}
挂号管理API控制器:
/**
* 挂号管理API控制器
*/
/**
* 个人资料设置
*
* @return
*/
@PostMapping(value = "/getUserInfo")
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);
* 获取审核角色
*
* @param
* @return
*/
@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
* @return
*/
* @return
*/
@RequestMapping(value = "/dologin", method = RequestMethod.POST)
public BaseResponse<String> doLogin(@RequestBody @Validated UserLoginReqVO reqVO, Model model) {
return iUserService.doLogin(reqVO);
}
/**
* 保存用户注册信息,向用户发送激活链接
*
* @param reqVO
* @return
*/
/**
* 获取所有角色
* @param
* @return
*/
@PostMapping(value = "/getAllRole")
public List<GetAllRoleRspVO> getAllRole() {
return iUserService.getAllRole();
}
管理员操作业务控制器:
*
* @param reqVO
* @return
* @throws Exception
*/
@PostMapping(value = "/addPatientInfor")
public BaseResponse<String> addPatientInfor(@RequestBody @Validated PatientInforReqVO reqVO) throws Exception {
return iRegisterService.addPatientInfor(reqVO);
}
/**
* 补办就诊卡
*
* @param reqVO
* @return
*/
@PostMapping(value = "/coverCardId")
public BaseResponse<String> coverCardId(@RequestBody @Validated PatientInforReqVO reqVO) {
public BaseResponse<String> addDepartment(@RequestBody @Validated AddDepartmentReqVO reqVO) {
return iadminService.addDepartment(reqVO);
}
@PostMapping(value = "/getDepartment")
@ApiOperation(value = "获取所有科室", httpMethod = "POST", notes = "获取所有科室")
public List<GetDepartmentRspVO> getDepartment() {
return iadminService.getDepartment();
}
}
挂号管理API控制器:
/**
* 挂号管理API控制器
*/
@RestController
@RequestMapping(value = "/register")
@Api(tags = "挂号管理API")
public class RegisterController {
@Autowired
private IRegisterService iRegisterService;
/**
* 读取就诊卡
*
* @return
*/
return iUserService.saveUserAndSendEmail(reqVO);
}
/**
* 获取登录日志
*
* @param reqVO
* @return
*/
@RequestMapping(value = "/getLoginfor",method = RequestMethod.GET)
public PageRspVO<LoginInforRspVO> getLoginfor(BasePageReqVO reqVO) {
return iUserService.getLoginfor(reqVO);
}
/**
* 修改密码
*
@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<String> doLogin(@RequestBody @Validated UserLoginReqVO reqVO, Model model) {
return iUserService.doLogin(reqVO);
}
/**
* 保存用户注册信息,向用户发送激活链接
*
* @param reqVO
* @return
*/
@RequestMapping(value = "/doregister", method = RequestMethod.POST)
private IRegisterService iRegisterService;
/**
* 读取就诊卡
*
* @return
*/
@PostMapping(value = "/getCardIdInfor")
public PatientInforRspVO getCardIdInfor(@RequestBody GetCardIdInforReqVO reqVO) throws Exception {
return iRegisterService.getCardIdInfor(reqVO);
}
/**
* 读取身份证
*
* @return
*/
@PostMapping(value = "/getIDcardInfor")
public IDcardRspVO getIDcardInfor() {
return iRegisterService.getIDcardInfor();
}
/**
* 读取新卡
return iRegisterService.coverCardId(reqVO);
}
/**
* 获取医生
*
* @param reqVO
* @return
*/
@GetMapping(value = "/getAllRegisterDoctor")
public List<RegisterDoctorRspVO> getAllRegisterDoctor(RegisterTypeReqVO reqVO) {
/**
* 保存用户注册信息,向用户发送激活链接
*
* @param reqVO
* @return
*/
@RequestMapping(value = "/doregister", method = RequestMethod.POST)
public BaseResponse<String> registered(@RequestBody @Validated UserRegisterReqVO reqVO, Model model) {
return iUserService.saveUserAndSendEmail(reqVO);
}
/**
* 获取登录日志
*
* @param reqVO
* @return
*/
@RequestMapping(value = "/getLoginfor",method = RequestMethod.GET)
public PageRspVO<LoginInforRspVO> getLoginfor(BasePageReqVO reqVO) {
return iUserService.getLoginfor(reqVO);
}
/**
@PostMapping(value = "/showAnnouncement")
public BaseResponse<String> showAnnouncement(@RequestParam String id) {
return iadminService.showAnnouncement(id);
}
@PostMapping(value = "/hiddenAnnouncement")
public BaseResponse<String> hiddenAnnouncement(@RequestParam String id) {
return iadminService.hiddenAnnouncement(id);
}
@PostMapping(value = "/adddepartment")
@ApiOperation(value = "添加科室", httpMethod = "POST", notes = "添加科室")
@ApiImplicitParam(name = "reqVO",value = "添加科室", dataType = "AddDepartmentReqVO")
}
/**
* 挂号记录查询
*
* @param reqVO
* @return
*/
@GetMapping(value = "/getRegisterRecord")
public PageRspVO<RegisterRecordRspVO> getRegisterRecord(RegisterRecordSearchReqVO reqVO) {
return iRegisterService.getRegisterRecord(reqVO);
@RequestMapping(value = "/addRole", method = RequestMethod.POST)
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);
}
/**
* 修改角色状态
*
* @param status
* @param email
*/
@PostMapping(value = "/changeRoleStatus")
public void changeRoleStatus(@RequestParam String status, @RequestParam String email) {
iadminService.changeRoleStatus(status, email);
* @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<String> addAnnouncement(@RequestBody @Validated AnnouncementVO reqVO) {
return iadminService.addAnnouncement(reqVO);
}
@GetMapping(value = "/getAnnouncement")
public PageRspVO<AnnouncementVO> getAnnouncement(BasePageReqVO reqVO) {
return iadminService.getAnnouncement(reqVO);
}
@PostMapping(value = "/changeAnnouncement")