基于javaweb+springboot的宠物医院预约管理系统设计和实现(java+springboot+mysql+ssm)

基于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;
        List<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 {
     */
    @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();
            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){
    }
}
宠物日志业务操作:
/**
 * 宠物日志
 */
@Controller("UserPetDailyController")
@RequestMapping("/user/petDaily")
public class UserPetDailyController {
    @Autowired
    private final ResultMap resultMap;
    @Autowired
    private UserService userService;
    @Autowired
    private UserRoleService userRoleService;
    @Autowired
    public UserController(R
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值