| | |
| | | |
| | | import com.alibaba.druid.util.StringUtils; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.google.zxing.WriterException; |
| | | import com.product.administration.config.CmnConst; |
| | | import com.product.administration.config.SystemCode; |
| | | import com.product.administration.service.ConferenceManagerService; |
| | | import com.product.administration.service.ide.IConferenceManagerService; |
| | | import com.product.core.config.CoreConst; |
| | | 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 org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import java.io.IOException; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Author cheng |
| | |
| | | } |
| | | } |
| | | |
| | | @PostMapping("/get_kb_Data/{version}") |
| | | @ApiVersion(1) |
| | | public String getkbData(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()); |
| | | } |
| | | List kbData = conferenceManagerService.getKbData(fse); |
| | | |
| | | return OK(kbData); |
| | | |
| | | } |
| | | |
| | | @PostMapping("/get_Meeting_Details/{version}") |
| | | @ApiVersion(1) |
| | | public String getMeetingDetails(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()); |
| | | } |
| | | List meetingDetails = conferenceManagerService.getMeetingDetails(fse); |
| | | return OK(meetingDetails); |
| | | |
| | | } |
| | | |
| | | |
| | | @PostMapping("/save_or_update_meeting_info/{version}") |
| | | @ApiVersion(1) |
| | | public String saveOrUpdateMeetingInfo(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 hashMap = conferenceManagerService.saveOrUpdateMeetingInfo(fse); |
| | | return OK(hashMap); |
| | | |
| | | } |
| | | |
| | | |
| | | @PostMapping("/get_QrCode/{version}") |
| | | @ApiVersion(1) |
| | | public String getQrCode(HttpServletRequest request) throws IOException, WriterException { |
| | | FieldSetEntity fse = null; |
| | | conferenceManagerService.getQrCode(fse); |
| | | return OK(); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |