【找工作/毕设实用项目】疫苗预约程序+后台(附源码获取)

【项目实践案例】疫苗预约小程序+后台

随着新冠的爆发,出现了许多和新冠挂钩的程序,这类程序时代性强,很考验开发者的创新,该项目可用做毕业设计或找工作的项目来进行二次开发,可以延伸为仓库管理平台或者预约小程序的项目,很实用。这里给大家展示,文末附全部代码获取方式。


一、新冠疫苗预约接种小程序

技术栈:html5,css,js,springboot,mybaits,swagger,mysql

二、小程序展示(部分)

在这里插入图片描述

三、后台

登录界面:
在这里插入图片描述
注册界面:
在这里插入图片描述
首页:
在这里插入图片描述
疫苗页面:
在这里插入图片描述
仓库管理:
在这里插入图片描述

仓库容量监控:
在这里插入图片描述
仓库容量告警:(默认低于20)
在这里插入图片描述在这里插入图片描述

仓库设置:
在这里插入图片描述

疫苗销售明细:
在这里插入图片描述
用户疫苗注射信息:
在这里插入图片描述

四、部分代码:

医生扫码登记用户信息逻辑:

@CrossOrigin(origins = "http://localhost:8080")
@RestController
public class ercodeController {
    @Autowired
    private ApplyDao applyDao;
    @Autowired
    private WxuserDao wxuserDao;
    @Autowired
    private DoctorDao doctorDao;
    @Autowired
    private VaccDao vaccDao;
    private  String format ;
    private  String openids;
    private  int Color[]= {0xFF00FF00,0x0000FF,0x000000};//分别保存为绿色,蓝色,黑二维码颜色
    @PostMapping("api/code/getcode")
    public  String getCode(@RequestParam  String id,@RequestParam String type){
    //通过id获取用户信息;
         String link="";
        if(type.equals("受种用户")){
            List<Wxuser> person = wxuserDao.getWxuserdata(id);
            if(person.size()>0){
              link =  creatuserCode(id,person.get(0).getUsername(),Color[0],type);
            }
        }else if(type.equals("接种医生")){
            List<Doctor> doctors = doctorDao.getDoctordata(id);
            if(doctors.size()>0){
                link = createDoctor(id,doctors.get(0).getUsername(),Color[1],type);
            }
        }else{
            List<Vaccine> vaccines = vaccDao.getofVaccdata(id);
            if( vaccines.size()>0){
                link =creatvacc(id, vaccines.get(0).getName(),Color[2],type);
            }
        }
    //生成专属二维码,返回二维码在obs上的链接,回显在用户手机;
        return link;
    }

    public String creatUserCode(String id,String username,int color,String type){
        Code code1 = Code.builder().width(300).
                hight(300)
                .content("http://192.168.3.73:9004/api/ercode/apply?username="+username+"&&id="+id+"&&type="+type)
                .format("png")
                .type(type)
                .onColor(color)
                .offColor(0xFFFFFFFF)
                .build();
        CreateQRCode code = new CreateQRCode();
        format = code1.getFormat();
        openids = id;
        String link = code.createQRCode(code1,id,username,"");
        return link;
    }

    public String creatVacc(String id,String username,int color,String type){
        Code code1 = Code.builder().width(300).
                hight(300)
                .content("http://192.168.3.73:9004/api/ercode/apply?username="+username+"&&id="+id+"&&type="+type)
                .format("png")
                .type(type)
                .onColor(color)
                .offColor(0xFFFFFFFF)
                .build();
        CreateQRCode code = new CreateQRCode();
        format = code1.getFormat();
        openids = id;
        String link = code.createQRCode(code1,id,username,"");
        return link;
    }

    public String createDoctor(String id,String username,int color,String type){
        Code code1 = Code.builder().width(300).
                hight(300)
                .content("http://192.168.3.73:9004/api/ercode/apply?username="+username+"&&id="+id+"&&type="+type)
                .format("png")
                .type(type)
                .onColor(color)
                .offColor(0xFFFFFFFF)
                .build();
        CreateQRCode code = new CreateQRCode();
        format = code1.getFormat();
        openids = id;
        String link = code.createQRCode(code1,id,username,"");
        return link;
    }

    @GetMapping("/api/ercode/apply")
    public  String loGin(@RequestParam String username,@RequestParam String id,
                         @RequestParam String type) throws Exception {
        HashMap<String,Object> map = new HashMap<>();
        //确认已经预约成功
        if(type.equals("受种用户")){
            List<Apply> list = applyDao.issamil(id);
            if(list.size()>0){
                map.put("data",list);
                map.put("show","录入成功");
            }else{
                List<Wxuser> list1 = wxuserDao.getWxuserdata(id);
                Apply apply = new Apply();
                apply.setWxusername(list1.get(0).getUsername());
                List<Apply> res2 = new LinkedList<>();
                res2.add(apply);
               map.put("data",res2);
               map.put("show","用户没有预约疫苗!");
            }
        }else if(type.equals("接种医生")){
            map.put("data","当前医生身份:姓名:"+username+"-"+"医生编号:"+id);
            map.put("show","识别成功");
        }else{
            List<Vaccine> list1 = vaccDao.getofVaccdata(id);
            if(list1.size()>0){
                map.put("data",list1);
                map.put("show","录入成功");
            }else{
                map.put("data",list1);
                map.put("show","该疫苗无法识别!");
            }
        }
        return JSON.toJSONString(map);
    }
}

毕业设计指导,代码获取可联系csdn账号沉默着忍受

  • 17
    点赞
  • 36
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 14
    评论
评论 14
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

沉默着忍受

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值