基于javaweb+springboot的宠物医院预约管理系统设计和实现(java+springboot+mysql+ssm)
项目使用java SpringMVC、springboot mybatis、layui为核心技术编写
首页登录有可爱的小猫咪:
适用
课程设计,大作业,毕业设计,项目练习,学习演示等
@RequestMapping("/tjApply") public String tjApply(Model model) { Subject subject = SecurityUtils.getSubject(); User user = (User) subject.getPrincipal(); Appointment appointment = new Appointment(); appointment.setUserId(user.getId()); appointment.setPage(1); appointment.setLimit(99999); MMGridPageVoBean<Appointment> voBean = (MMGridPageVoBean<Appointment>) appointmentService.getAllByLimit(appointment); List<Appointment> rows = voBean.getRows(); Integer a1 = 0; Integer a2 = 0; Integer a3 = 0; Integer a4 = 0; for (Appointment a: rows){ switch (a.getStatus()){ case 1: a1++;break;
1234567891011121314151617List<String> time = new ArrayList<>(); List<Long> value = new ArrayList<>(); for (Map<String, Object> m : map){ String df = (String) m.get("df"); time.add(df+"点"); Long v = (Long) m.get("c"); if (v == null) { value.add(0L); }else { value.add(v); } } result.put("t", time); result.put("v", value); return result; } } 监控标准医生和用户: /** * 监控标准 */ @Controller("UserStandardController") @RequestMapping("/user/standard") public class UserStandardController {
123456789101112131415161718192021222324*/ @RequestMapping(value = "/add") public String add(Model model) { Subject subject = SecurityUtils.getSubject(); User user = (User) subject.getPrincipal(); Pet pet = new Pet(); pet.setUserId(user.getId()); pet.setPage(1); pet.setLimit(100); MMGridPageVoBean<Pet> voBean = (MMGridPageVoBean<Pet>) petService.getAllByLimit(pet); List<Pet> rows = voBean.getRows(); 1234567891011
MMGridPageVoBean<Appointment> as = (MMGridPageVoBean<Appointment>) appointmentService.getAllByLimit(appointment); applyCount.add(as==null? 0L : as.getTotal()); // 获取就诊记录 Diagnosis diagnosis = new Diagnosis(); diagnosis.setPetId(p.getId()); diagnosis.setPage(1); diagnosis.setLimit(10); MMGridPageVoBean<Diagnosis> ds = (MMGridPageVoBean<Diagnosis>) diagnosisService.getAllByLimit(diagnosis); List<Diagnosis> dsRows = ds.getRows(); int diagnosisStatus = 0; for (Diagnosis d: dsRows){ 1234567891011
} } 宠物日志业务操作: /** * 宠物日志 */ @Controller("UserPetDailyController") @RequestMapping("/user/petDaily") public class UserPetDailyController { @Autowired 12345678910
private final ResultMap resultMap; @Autowired private UserService userService; @Autowired private UserRoleService userRoleService; @Autowired public UserController(R123456