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 ==