SpingMVC+Mybatis实现医院预约挂号系统

该博客介绍了使用SSM(Spring、SpringMVC、MyBatis)技术栈开发的一个医院预约挂号系统。系统包括患者、医生和管理员三种角色,实现了预约、挂号管理等功能。代码示例展示了Controller层的部分操作,如医生查看预约患者、患者预约等。此外,还提供了系统前台和后台的演示视频链接。
摘要由CSDN通过智能技术生成

1.SSM实现医院预约挂号系统(包含论文)
个人网站:http://xiaocaoshare.com
1.需求分析
分为前台网站用户和后台管理
用户角色:
患者,医生,管理员
患者:找医院,找医生,预约挂号,注册
医生:对患者的挂号进行管理
管理员:医院管理、医生管理、科室管理、患者管理、预约挂号管理等
2.技术机构
SSM+JSP+mysql
开发工具:
IDEA或eclipse
3.部分功能代码展示:
@Controller
@RequestMapping("/appointment")
public class AppointmentController {

@Autowired
private DoctorService doctorService;
@Autowired
private AppointmentService appointmentService;

@RequestMapping("/{did}")
public String show(@PathVariable Long did, String dayInfo, Model model){
    Doctor doctor = doctorService.selectById(did);
    model.addAttribute("doctor",doctor);
    model.addAttribute("dayInfo",dayInfo);
    return "appointment_form";
}

@RequestMapping("/submit")
@ResponseBody
public String commit(Appointment appointment, HttpSession session){
    appointment.setAid(CommonUtils.getId());
    appointment.setCreatetime(new Date());
    appointment.setUpdatetime(new Date());
    String resultData = "";
    User user = (User)session.getAttribute("user");

    if(user ==
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值