✨作者主页:IT研究室✨
个人简介:曾从事计算机专业培训教学,擅长Java、Python、微信小程序、Golang、安卓Android等。接项目定制开发、代码讲解、答辩教学、文档编写、降重。
☑文末获取源码☑
精彩专栏推荐⬇⬇⬇
Java项目
Python项目
安卓项目
微信小程序项目
一、开发环境
- 开发语言:Java
- 数据库:MySQL
- 系统架构:B/S
- 后端:SpringBoot
- 前端:Vue
- 工具:IDEA或者Eclipse,JDK1.8,Maven
二、系统功能模块
- 角色:用户、医生、管理员
- 功能:
用户:
医生预约、预约管理;
医生:
数据统计、患者查询、工作台;
管理员:
数据统计、科室管理、医生管理、轮播图管理。
三 、系统界面展示
四、部分代码设计
/**
* @author zhangshuaiyin
*/
@Api(tags = "医院管理接口")
@Controller
@RequestMapping
public class ApiController extends BaseController {
@Autowired
private ApiService apiService;
@Autowired
private HospitalSetMapper hospitalSetMapper;
@RequestMapping("/hospitalSet/index")
public String getHospitalSet(ModelMap model, RedirectAttributes redirectAttributes) {
HospitalSet hospitalSet = hospitalSetMapper.selectById(1);
model.addAttribute("hospitalSet", hospitalSet);
return "hospitalSet/index";
}
@RequestMapping(value = "/hospitalSet/save")
public String createHospitalSet(ModelMap model, HospitalSet hospitalSet) {
hospitalSetMapper.updateById(hospitalSet);
return "redirect:/hospitalSet/index";
}
@RequestMapping("/hospital/index")
public String getHospital(ModelMap model, HttpServletRequest request, RedirectAttributes redirectAttributes) {
try {
HospitalSet hospitalSet = hospitalSetMapper.selectById(1);
if (null == hospitalSet || StringUtils.isEmpty(hospitalSet.getHoscode()) || StringUtils.isEmpty(hospitalSet.getSignKey())) {
this.failureMessage("先设置医院code与签名key", redirectAttributes);
return "redirect:/hospitalSet/index";
}
model.addAttribute("hospital", apiService.getHospital());
} catch (YyghException e) {
this.failureMessage(e.getMessage(), request);
} catch (Exception e) {
this.failureMessage("数据异常", request);
}
return "hospital/index";
}
五、论文参考
结语
大家可以帮忙点赞、收藏、关注、评论啦
源码获取:私信我