基于javaweb的SpringBoot中小医院信息管理系统(java+springboot+mysql+maven+html+thymeleaf)

运行环境

Java≥8、MySQL≥5.7

开发工具

eclipse/idea/myeclipse/sts等均可配置运行

适用

课程设计,大作业,毕业设计,项目练习,学习演示等

功能说明

410023532402

430023532402

440023532402

450023532402

460023532402

基于javaweb的SpringBoot中小医院信息管理系统(java+springboot+mysql+maven+html+thymeleaf)

本系统功能包括:实现了挂号收费,门诊管理,划价收 费,药房取药,体检管理,药房管理,系统维护等各个模块功能,非常不错。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
public BaseResponse<String> getDefaultGetCardId() {

return iRegisterService.getDefaultGetCardId();
}

/**
* 办就诊卡
*
* @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) {

return iRegisterService.coverCardId(reqVO);
}

/**
* 获取医生
*
* @param reqVO
* @return
*/

@GetMapping(value = "/getAllRegisterDoctor")
public List<RegisterDoctorRspVO> getAllRegisterDoctor(RegisterTypeReqVO reqVO) {

return iRegisterService.getAllRegisterDoctor(reqVO);

}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
 */
@PostMapping(value = "/addNewDrug")
public BaseResponse<String> addNewDrug(@RequestBody @Validated DrugReqVO reqVO) {
return iDrugStoreService.addNewDrug(reqVO);
}

/**
* 新增剂型
*
* @param drugType
* @return
*/
@PostMapping(value = "/addDrugType")
public BaseResponse<String> addDrugType(@RequestParam String drugType) {

return iDrugStoreService.addDrugType(drugType);
}

/**
* 新增功效分类
*
* @param efficacyClassification
* @return
*/
@PostMapping(value = "/addEfficacyClassification")
public BaseResponse<String> addEfficacyClassification(@RequestParam String efficacyClassification) {

return iDrugStoreService.addEfficacyClassification(efficacyClassification);
}

/**
* 获取所有剂型
*
* @return
*/
@PostMapping(value = "/getAllDrugType")
public List<String> getAllDrugType() {
return iDrugStoreService.getAllDrugType();
}

/**
* 获取所有功效
*
* @return
*/
@PostMapping(value = "/getAllEfficacyClassification")
public List<String> getAllEfficacyClassification() {
return iDrugStoreService.getAllEfficacyClassification();
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
    @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();
}
}
package com.xgs.hisystem.controller;



/**
* @description:
*/
@RestController
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30


/**
* @description:
*/
@Controller
@Api(tags = "页面跳转")
public class PageController {

@Autowired
private IUserService iUserService;
@Autowired
private IAdminService iAdminService;
@Autowired
private ServerConfig serverConfig;

@GetMapping(value = "/")
public String login() {
return "login";
}

/**
* 主页
*
* @param model
* @return
*/
@GetMapping(value = "/main")
public String main(Model model) {
return "main";
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
 * @description:
*/
@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);

}

/**
* 后台添加账户
*
* @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);
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
    @ApiOperation(value = "获取体检收费信息", httpMethod = "POST", notes = "获取体检收费信息")
@ApiImplicitParam(name = "reqVO",value = "获取体检收费信息", dataType = "GetCardIdInforReqVO")
private BaseResponse<GetExaminationTollInfoRspVO> getExaminationTollInfo(@RequestBody GetCardIdInforReqVO reqVO){
return iTollService.getExaminationTollInfo(reqVO);
}

@PostMapping(value = "saveexaminationtollinfo")
@ApiOperation(value = "保存体检收费记录", httpMethod = "POST", notes = "保存体检收费记录")
private BaseResponse<String> saveExaminationTollInfo(@RequestParam String registerId){
return iTollService.saveExaminationTollInfo(registerId);
}
}
package com.xgs.hisystem.exception;



/**
* @description:
*/
@ControllerAdvice
public class GlobalDefaultExceptionHandler {

@Autowired
private ServerConfig serverConfig;

private static final Logger logger = LoggerFactory.getLogger(GlobalDefaultExceptionHandler.class);

/**
* 捕获系统未知异常
*/
/* @ExceptionHandler(value = Exception.class)
public ModelAndView handleException(HttpServletRequest req, Exception ex) {
logger.error("系统错误!uri:{},错误信息:{}", req.getRequestURI(), ex);

ModelAndView mv=new ModelAndView();
mv.addObject("url", serverConfig.getUrl());


项目链接:
https://javayms.github.io?id=031422272105200ac
https://javayms.pages.dev?id=031422272105200ac