基于javaweb的SpringBoot病案打印系统(java+springboot+maven+ssm+vue+mysql)

运行环境

Java≥8、MySQL≥5.7、Node.js≥14

开发工具

后端:eclipse/idea/myeclipse/sts等均可配置运行
前端:WebStorm/VSCode/HBuilderX等均可

❗没学过node.js的不要搞前后端分离项目

适用

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

功能说明

522024521003

532024521003

542024521003

552024521003

基于javaweb的SpringBoot病案打印系统(java+springboot+maven+ssm+vue+mysql)

/MedicalSystem

管理员
admin 123456

用户
用户账号1 123456
用户账号2 123456
用户账号3 123456
用户账号4 123456
用户账号5 123456
用户账号6 123456
用户账号7 123456
用户账号8 123456

代理人
代理账号1 123456
代理账号2 123456
代理账号3 123456
代理账号4 123456
代理账号5 123456
代理账号6 123456
代理账号7 123456
代理账号8 123456

本项目将围绕病案打印系统的构建与实施展开,具体项目内容包括:
用户注册和登录功能,确保用户信息安全;
病案信息的录入和查询功能,方便医护人员获取所需病案;
申请打印功能的设计与实现,简化病案打印流程;
代理人功能的添加,满足患者多样化的需求;

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
49
50

PageUtils page = yonghuService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, yonghu), params), params));

return R.ok().put("data", page);
}

/**
* 前端列表
*/
@IgnoreAuth
@RequestMapping("/list")
public R list(@RequestParam Map<String, Object> params,YonghuEntity yonghu,
HttpServletRequest request){
EntityWrapper<YonghuEntity> ew = new EntityWrapper<YonghuEntity>();

PageUtils page = yonghuService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, yonghu), params), params));
return R.ok().put("data", page);
}

/**
* 列表
*/
@RequestMapping("/lists")
public R list( YonghuEntity yonghu){
EntityWrapper<YonghuEntity> ew = new EntityWrapper<YonghuEntity>();
ew.allEq(MPUtil.allEQMapPre( yonghu, "yonghu"));
return R.ok().put("data", yonghuService.selectListView(ew));
}

/**
* 查询
*/
@RequestMapping("/query")
public R query(YonghuEntity yonghu){
EntityWrapper< YonghuEntity> ew = new EntityWrapper< YonghuEntity>();
ew.allEq(MPUtil.allEQMapPre( yonghu, "yonghu"));
YonghuView yonghuView = yonghuService.selectView(ew);
return R.ok("查询用户成功").put("data", yonghuView);
}

/**
* 后端详情
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") Long id){
YonghuEntity yonghu = yonghuService.selectById(id);
return R.ok().put("data", yonghu);
}

/**
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
public R query(BingandayinEntity bingandayin) {
EntityWrapper<BingandayinEntity> ew = new EntityWrapper<BingandayinEntity>();
ew.allEq(MPUtil.allEQMapPre(bingandayin, "bingandayin"));
BingandayinView bingandayinView = bingandayinService.selectView(ew);
return R.ok("查询病案打印成功").put("data", bingandayinView);
}

/**
* 后端详情
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") Long id) {
BingandayinEntity bingandayin = bingandayinService.selectById(id);
return R.ok().put("data", bingandayin);
}

/**
* 前端详情
*/
@IgnoreAuth
@RequestMapping("/detail/{id}")
public R detail(@PathVariable("id") Long id) {
BingandayinEntity bingandayin = bingandayinService.selectById(id);
return R.ok().put("data", bingandayin);
}


/**
* 后端保存
*/
@RequestMapping("/save")
public R save(@RequestBody BingandayinEntity bingandayin, HttpServletRequest request) {
bingandayin.setId(new Date().getTime() + new Double(Math.floor(Math.random() * 1000)).longValue());
//ValidatorUtils.validateEntity(bingandayin);
bingandayinService.insert(bingandayin);
return R.ok();
}

/**
* 前端保存
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
   @Autowired
private DailidayinService dailidayinService;





/**
* 后端列表
*/
@RequestMapping("/page")
public R page(@RequestParam Map<String, Object> params,DailidayinEntity dailidayin,
HttpServletRequest request){
String tableName = request.getSession().getAttribute("tableName").toString();
if(tableName.equals("yonghu")) {
dailidayin.setYonghuzhanghao((String)request.getSession().getAttribute("username"));
}
if(tableName.equals("dailiren")) {
dailidayin.setDailizhanghao((String)request.getSession().getAttribute("username"));
}
EntityWrapper<DailidayinEntity> ew = new EntityWrapper<DailidayinEntity>();

PageUtils page = dailidayinService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, dailidayin), params), params));

return R.ok().put("data", page);
}

/**
* 前端列表
*/
@IgnoreAuth
@RequestMapping("/list")
public R list(@RequestParam Map<String, Object> params,DailidayinEntity dailidayin,
HttpServletRequest request){
EntityWrapper<DailidayinEntity> ew = new EntityWrapper<DailidayinEntity>();

PageUtils page = dailidayinService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, dailidayin), params), params));
return R.ok().put("data", page);
}

/**
* 列表
*/
@RequestMapping("/lists")
public R list( DailidayinEntity dailidayin){
EntityWrapper<DailidayinEntity> ew = new EntityWrapper<DailidayinEntity>();
ew.allEq(MPUtil.allEQMapPre( dailidayin, "dailidayin"));
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
    @RequestMapping("/update")
public R update(@RequestBody UsersEntity user){
// ValidatorUtils.validateEntity(user);
UsersEntity u = userService.selectOne(new EntityWrapper<UsersEntity>().eq("username", user.getUsername()));
if(u!=null && u.getId()!=user.getId() && u.getUsername().equals(user.getUsername())) {
return R.error("用户名已存在。");
}
userService.updateById(user);//全部更新
return R.ok();
}

/**
* 删除
*/
@RequestMapping("/delete")
public R delete(@RequestBody Long[] ids){
userService.deleteBatchIds(Arrays.asList(ids));
return R.ok();
}
}



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
   @RequestMapping("/register")
public R register(@RequestBody YonghuEntity yonghu){
//ValidatorUtils.validateEntity(yonghu);
YonghuEntity u = yonghuService.selectOne(new EntityWrapper<YonghuEntity>().eq("yonghuzhanghao", yonghu.getYonghuzhanghao()));
if(u!=null) {
return R.error("注册用户已存在");
}
Long uId = new Date().getTime();
yonghu.setId(uId);
yonghuService.insert(yonghu);
return R.ok();
}


/**
* 退出
*/
@RequestMapping("/logout")
public R logout(HttpServletRequest request) {
request.getSession().invalidate();
return R.ok("退出成功");
}

/**
* 获取用户的session用户信息
*/
@RequestMapping("/session")
public R getCurrUser(HttpServletRequest request){
Long id = (Long)request.getSession().getAttribute("userId");
YonghuEntity u = yonghuService.selectById(id);
return R.ok().put("data", u);
}

/**
* 密码重置
*/
@IgnoreAuth
@RequestMapping(value = "/resetPass")
public R resetPass(String username, HttpServletRequest request){
YonghuEntity u = yonghuService.selectOne(new EntityWrapper<YonghuEntity>().eq("yonghuzhanghao", username));
if(u==null) {
return R.error("账号不存在");
}
u.setMima("123456");
yonghuService.updateById(u);
return R.ok("密码已重置为:123456");
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
    @Transactional
public R update(@RequestBody DailirenEntity dailiren, HttpServletRequest request){
//ValidatorUtils.validateEntity(dailiren);
dailirenService.updateById(dailiren);//全部更新
return R.ok();
}





/**
* 删除
*/
@RequestMapping("/delete")
public R delete(@RequestBody Long[] ids){
dailirenService.deleteBatchIds(Arrays.asList(ids));
return R.ok();
}











}


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