| | |
| | | import com.product.core.controller.support.AbstractBaseController; |
| | | import com.product.core.entity.DataTableEntity; |
| | | import com.product.core.entity.FieldSetEntity; |
| | | import com.product.core.entity.RequestParameterEntity; |
| | | import com.product.core.exception.BaseException; |
| | | import com.product.core.permission.PermissionService; |
| | | import com.product.module.sys.config.SystemErrorCode; |
| | |
| | | * @param request |
| | | * @return |
| | | */ |
| | | @PostMapping("/get_kb_Data/{version}") |
| | | @ApiVersion(1) |
| | | public String getkbData(HttpServletRequest request){ |
| | | try { |
| | | //获取参数 |
| | | FieldSetEntity fse = BaseUtil.getFieldSetEntity(request); |
| | | List kbData = conferenceManagerService.getkbData(fse); |
| | | return OK(kbData); |
| | | } catch (BaseException e) { |
| | | e.printStackTrace(); |
| | | return this.error(e.getCode(), e.getMessage()); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | return this.error(SystemCode.CONFERENCE_ROOM_GET_FIAL.getValue(), SystemCode.CONFERENCE_ROOM_GET_FIAL.getText() + e.getMessage()); |
| | | } |
| | | } |
| | | // @PostMapping("/get_kb_Data/{version}") |
| | | // @ApiVersion(1) |
| | | // public String getkbData(HttpServletRequest request){ |
| | | // try { |
| | | // //获取参数 |
| | | // FieldSetEntity fse = BaseUtil.getFieldSetEntity(request); |
| | | // List kbData = conferenceManagerService.getkbData(fse); |
| | | // return OK(kbData); |
| | | // } catch (BaseException e) { |
| | | // e.printStackTrace(); |
| | | // return this.error(e.getCode(), e.getMessage()); |
| | | // } catch (Exception e) { |
| | | // e.printStackTrace(); |
| | | // return this.error(SystemCode.CONFERENCE_ROOM_GET_FIAL.getValue(), SystemCode.CONFERENCE_ROOM_GET_FIAL.getText() + e.getMessage()); |
| | | // } |
| | | // } |
| | | |
| | | /** |
| | | * 获取会议预约详情 |
| | |
| | | return OK(s); |
| | | } |
| | | |
| | | /** |
| | | * 获取签到或者访问信息 |
| | | * @param request |
| | | * @return |
| | | */ |
| | | @PostMapping("/get_sign_or_visit_info/{version}") |
| | | @ApiVersion(1) |
| | | public String getMeetingSignOrVisit(HttpServletRequest request){ |
| | | FieldSetEntity fse = BaseUtil.getFieldSetEntity(request); |
| | | return OK_List(conferenceManagerService.getMeetingSignOrVisit(fse)); |
| | | } |
| | | |
| | | /** |
| | | * 获取签到或者访问信息 |
| | | * @param request |
| | | * @return |
| | | */ |
| | | @PostMapping("/get_signOrVisit_info/{version}") |
| | | // @PostMapping("/get_signOrVisit_info/{version}") |
| | | // @ApiVersion(1) |
| | | // public String getSignOrVisitInfo(HttpServletRequest request){ |
| | | // FieldSetEntity fse = BaseUtil.getFieldSetEntity(request); |
| | | // HashMap signInfo = conferenceManagerService.getSignOrVisitInfo(fse); |
| | | // return OK(signInfo); |
| | | // } |
| | | /** |
| | | * 获取会议纪要列表 |
| | | * @param request |
| | | * @return |
| | | */ |
| | | @PostMapping("/list-meeting-minute/{version}") |
| | | @ApiVersion(1) |
| | | public String getSignOrVisitInfo(HttpServletRequest request){ |
| | | FieldSetEntity fse = BaseUtil.getFieldSetEntity(request); |
| | | HashMap signInfo = conferenceManagerService.getSignOrVisitInfo(fse); |
| | | return OK(signInfo); |
| | | } |
| | | public String listMeetingMinute(HttpServletRequest request) { |
| | | try { |
| | | FieldSetEntity fse = BaseUtil.getFieldSetEntity(request); |
| | | // 判断分页参数是否正常 |
| | | if (StringUtils.isEmpty(fse.getString(CmnConst.PAGESIZE)) |
| | | || StringUtils.isEmpty(fse.getString(CmnConst.CPAGE))) { |
| | | return this.error(SystemCode.SYSTEM_FORM_COUNT.getValue(), SystemCode.SYSTEM_FORM_COUNT.getText()); |
| | | } |
| | | return OK_List(conferenceManagerService.listMeetingMinute(fse)); |
| | | } catch (BaseException e) { |
| | | e.printStackTrace(); |
| | | return this.error(e.getCode(), e.getMessage()); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | return this.error(SystemCode.CONFERENCE_APPLY_FIND_FIAL.getValue(), SystemCode.CONFERENCE_APPLY_FIND_FIAL.getText() + e.getMessage()); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 发送消息 |