| | |
| | | Protocol two = protocolService.getOne(new LambdaQueryWrapper<Protocol>().eq(Protocol::getType, 2)); |
| | | Protocol three = protocolService.getOne(new LambdaQueryWrapper<Protocol>().eq(Protocol::getType, 3)); |
| | | Protocol four = protocolService.getOne(new LambdaQueryWrapper<Protocol>().eq(Protocol::getType, 4)); |
| | | Protocol five = protocolService.getOne(new LambdaQueryWrapper<Protocol>().eq(Protocol::getType, 5)); |
| | | Protocol six = protocolService.getOne(new LambdaQueryWrapper<Protocol>().eq(Protocol::getType, 6)); |
| | | model.addAttribute("one",one); |
| | | model.addAttribute("two",two); |
| | | model.addAttribute("three",three); |
| | | model.addAttribute("four",four); |
| | | model.addAttribute("five",five); |
| | | if (six == null){ |
| | | Protocol protocol = new Protocol(); |
| | | protocol.setType(6); |
| | | protocol.setContent(""); |
| | | protocol.setInsertTime(new Date()); |
| | | protocolService.save( protocol); |
| | | |
| | | model.addAttribute("six",protocol); |
| | | }else{ |
| | | model.addAttribute("six",six); |
| | | } |
| | | |
| | | return PREFIX + "tAgreementDriver.html"; |
| | | } |
| | | |
| | | @RequestMapping("/QrCodeDescription") |
| | | public String QrCodeDescription(Model model){ |
| | | Protocol six = protocolService.getOne(new LambdaQueryWrapper<Protocol>().eq(Protocol::getType, 6)); |
| | | model.addAttribute("six",six); |
| | | return PREFIX + "QrCodeDescription.html"; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * 跳转到添加车辆管理 |
| | | */ |