基于javaweb的SpringBoot社区医疗服务系统(java+springboot+maven+vue+elementui+layui+mysql)

运行环境

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

开发工具

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

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

适用

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

功能说明

101524082608

121524082608

141524082608

161524082608

171524082608

181524082608

191524082608

201524082608

基于javaweb的SpringBoot社区医疗服务系统(java+springboot+maven+vue+elementui+layui+mysql)

项目介绍

基于Springboot Vue社区医疗服务系统

角色:管理员、医生、用户三种角色,分为前后台;

用户:用户在前台可以查看首页、医生信息、诊所资讯、个人中心、后台管理、在线客服等信息;用户登录后,可进行医生预约等操作;用户登录后台可以查看居民健康信息管理、预约医生管理、病历信息管理、就诊信息管理;

管理员:管理员登录成功后进入到系统操作界面,可以对个人中心、用户管理、医生管理、居民健康信息管理、预约医生管理、医生信息管理、病例信息管理、就诊信息管理、系统管理等功能模块进行相对应操作。

医生:医生登录成功后进入到系统操作界面,可以对个人中心、用户管理、居民健康信息管理、预约医生管理、医生信息管理、病例信息管理、就诊信息管理等功能模块进行相应操作。

技术栈

后端:SpringBoot+Mybaits

前端:Vue+ElementUI+Layui+HTML+CSS+JS

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

/**
* 修改
*/
@RequestMapping("/update")
public R update(@RequestBody YishengEntity yisheng, HttpServletRequest request){
//ValidatorUtils.validateEntity(yisheng);
yishengService.updateById(yisheng);//全部更新
return R.ok();
}


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

/**
* 提醒接口
*/
@RequestMapping("/remind/{columnName}/{type}")
public R remindCount(@PathVariable("columnName") String columnName, HttpServletRequest request,
@PathVariable("type") String type,@RequestParam Map<String, Object> map) {
map.put("column", columnName);
map.put("type", type);

if(type.equals("2")) {
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
Calendar c = Calendar.getInstance();
Date remindStartDate = null;
Date remindEndDate = null;
if(map.get("remindstart")!=null) {
Integer remindStart = Integer.parseInt(map.get("remindstart").toString());
c.setTime(new Date());
c.add(Calendar.DAY_OF_MONTH,remindStart);
remindStartDate = c.getTime();
map.put("remindstart", sdf.format(remindStartDate));
}
if(map.get("remindend")!=null) {
Integer remindEnd = Integer.parseInt(map.get("remindend").toString());
c.setTime(new Date());
c.add(Calendar.DAY_OF_MONTH,remindEnd);
remindEndDate = c.getTime();
map.put("remindend", sdf.format(remindEndDate));
}
}
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
        if(annotation!=null) {
return true;
}

TokenEntity tokenEntity = null;
if(StringUtils.isNotBlank(token)) {
tokenEntity = tokenService.getTokenEntity(token);
}

if(tokenEntity != null) {
request.getSession().setAttribute("userId", tokenEntity.getUserid());
request.getSession().setAttribute("role", tokenEntity.getRole());
request.getSession().setAttribute("tableName", tokenEntity.getTablename());
request.getSession().setAttribute("username", tokenEntity.getUsername());
return true;
}

PrintWriter writer = null;
response.setCharacterEncoding("UTF-8");
response.setContentType("application/json; charset=utf-8");
try {
writer = response.getWriter();
writer.print(JSONObject.toJSONString(R.error(401, "请先登录")));
} finally {
if(writer != null){
writer.close();
}
}
// throw new EIException("请先登录", 401);
return false;
}
}





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


/**
* 通用接口
*/
@RestController
public class CommonController{
@Autowired
private CommonService commonService;

@Autowired
private ConfigService configService;

private static AipFace client = null;

private static String BAIDU_DITU_AK = null;

@RequestMapping("/location")
public R location(String lng,String lat) {
if(BAIDU_DITU_AK==null) {
BAIDU_DITU_AK = configService.selectOne(new EntityWrapper<ConfigEntity>().eq("name", "baidu_ditu_ak")).getValue();
if(BAIDU_DITU_AK==null) {
return R.error("请在配置管理中正确配置baidu_ditu_ak");
}
}
Map<String, String> map = BaiduUtil.getCityByLonLat(BAIDU_DITU_AK, lng, lat);
return R.ok().put("data", map);
}

/**
* 人脸比对
*
* @param face1 人脸1
* @param face2 人脸2
* @return
*/
@RequestMapping("/matchFace")
public R matchFace(String face1, String face2) {
if(client==null) {
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16




/**
* 上传文件映射表
*/
@RestController
@RequestMapping("file")
@SuppressWarnings({"unchecked","rawtypes"})
public class FileController{
@Autowired
private ConfigService configService;
/**
* 上传文件
*/
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
   */
@RequestMapping("/lists")
public R list( JuminjiankangxinxiEntity juminjiankangxinxi){
EntityWrapper<JuminjiankangxinxiEntity> ew = new EntityWrapper<JuminjiankangxinxiEntity>();
ew.allEq(MPUtil.allEQMapPre( juminjiankangxinxi, "juminjiankangxinxi"));
return R.ok().put("data", juminjiankangxinxiService.selectListView(ew));
}

/**
* 查询
*/
@RequestMapping("/query")
public R query(JuminjiankangxinxiEntity juminjiankangxinxi){
EntityWrapper< JuminjiankangxinxiEntity> ew = new EntityWrapper< JuminjiankangxinxiEntity>();
ew.allEq(MPUtil.allEQMapPre( juminjiankangxinxi, "juminjiankangxinxi"));
JuminjiankangxinxiView juminjiankangxinxiView = juminjiankangxinxiService.selectView(ew);
return R.ok("查询居民健康信息成功").put("data", juminjiankangxinxiView);
}

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

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




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


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