| | |
| | | * @throws IOException |
| | | * @throws WriterException |
| | | */ |
| | | @GetMapping("/get_QrCode/{version}") |
| | | @PostMapping("/get_QrCode/{version}") |
| | | @ApiVersion(1) |
| | | public void getQrCode(String uuid,HttpServletRequest request, HttpServletResponse response) throws IOException, WriterException { |
| | | public void getQrCode(HttpServletRequest request, HttpServletResponse response) throws IOException, WriterException { |
| | | |
| | | //获取参数 |
| | | FieldSetEntity fse = null; |
| | | /* Object bean = request.getAttribute(CoreConst.API_POST_REQUEST_DATA); |
| | | Object bean = request.getAttribute(CoreConst.API_POST_REQUEST_DATA); |
| | | if (bean != null) { |
| | | RequestParameterEntity reqp = (RequestParameterEntity) bean; |
| | | fse = reqp.getFormData(); |
| | | |
| | | if(fse!=null && !StringUtils.isEmpty(fse.getString("uuid"))){*/ |
| | | // String uuid = fse.getString("uuid"); |
| | | if(fse!=null && !StringUtils.isEmpty(fse.getString("uuid"))){ |
| | | String uuid = fse.getString("uuid"); |
| | | // 设置响应流信息 |
| | | response.setContentType("image/jpg"); |
| | | response.setHeader("Pragma", "no-cache"); |
| | |
| | | BitMatrix bitMatrix = conferenceManagerService.getQrCode(jsonData.toString()); |
| | | //以流的形式输出到前端 |
| | | MatrixToImageWriter.writeToStream(bitMatrix , "jpg" , stream); |
| | | |
| | | // } |
| | | //} |
| | | } |
| | | } |
| | | |
| | | |
| | | } |
| | |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 会议签到功能 |
| | | * @param request |
| | | * @return |
| | | * @throws ParseException |
| | | */ |
| | | @PostMapping("/conference_sign/{version}") |
| | | @ApiVersion(1) |
| | | public String ConferenceSign(HttpServletRequest request) throws ParseException { |
| | | //获取参数 |
| | | FieldSetEntity fse = null; |
| | | /*Object bean = request.getAttribute(CoreConst.API_POST_REQUEST_DATA); |
| | | Object bean = request.getAttribute(CoreConst.API_POST_REQUEST_DATA); |
| | | if (bean != null) { |
| | | RequestParameterEntity reqp = (RequestParameterEntity) bean; |
| | | fse = reqp.getFormData(); |
| | |
| | | //判断参数是否为空 |
| | | if (bean == null || fse == null) { |
| | | return this.error(com.product.admin.config.SystemCode.SYSTEM_FORM_NODATA.getValue(), com.product.admin.config.SystemCode.SYSTEM_FORM_NODATA.getText()); |
| | | }*/ |
| | | } |
| | | String s = conferenceManagerService.ConferenceSign(fse); |
| | | return OK(s); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 获取签到信息 |
| | | * @param request |
| | | * @return |
| | | */ |
| | | @PostMapping("/get_sign_info/{version}") |
| | | @ApiVersion(1) |
| | | public String getSignInfo(HttpServletRequest request){ |
| | | |
| | | FieldSetEntity fse = null; |
| | | Object bean = request.getAttribute(CoreConst.API_POST_REQUEST_DATA); |
| | | if (bean != null) { |
| | | RequestParameterEntity reqp = (RequestParameterEntity) bean; |
| | | fse = reqp.getFormData(); |
| | | } |
| | | //判断参数是否为空 |
| | | if (bean == null || fse == null) { |
| | | return this.error(com.product.admin.config.SystemCode.SYSTEM_FORM_NODATA.getValue(), com.product.admin.config.SystemCode.SYSTEM_FORM_NODATA.getText()); |
| | | } |
| | | HashMap signInfo = conferenceManagerService.getSignInfo(fse); |
| | | return OK(signInfo); |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | } |