| | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.panzhihua.common.controller.BaseController; |
| | | import com.panzhihua.common.enums.SanShuoEventStatusEnum; |
| | | import com.panzhihua.common.model.dtos.community.sanshuo.IndexDateDTO; |
| | | import com.panzhihua.common.model.dtos.user.IndexDataDTO; |
| | | import com.panzhihua.common.model.vos.LoginUserInfoVO; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.sanshuo.ComEventArchiveVO; |
| | | import com.panzhihua.common.model.vos.sanshuo.ComEventConciliationVO; |
| | | import com.panzhihua.common.model.vos.sanshuo.ComEventRequestVO; |
| | | import com.panzhihua.common.model.vos.sanshuo.ComEventVO; |
| | | import com.panzhihua.common.model.vos.sanshuo.ComSanRequestVO; |
| | | import com.panzhihua.common.utlis.CopyUtil; |
| | | import com.panzhihua.common.utlis.StringUtils; |
| | | import com.panzhihua.service_community.entity.ComEvent; |
| | |
| | | */ |
| | | @ApiOperation("新增三说会堂事件表") |
| | | @PostMapping("/add") |
| | | public R insertComEvent(@RequestBody @Valid ComEventRequestVO comEventVO, @ApiIgnore BindingResult results) { |
| | | public R insertComEvent(@RequestBody @Valid ComSanRequestVO comEventVO, @ApiIgnore BindingResult results) { |
| | | if (results.hasErrors()) { |
| | | return R.fail(results.getFieldError().getDefaultMessage()); |
| | | } |
| | |
| | | public R calculate() { |
| | | return comEventService.calculate(); |
| | | } |
| | | |
| | | /** |
| | | * 大屏事件统计 |
| | | * @param indexDataDTO 查询参数 |
| | | * */ |
| | | @PostMapping("/indexData") |
| | | public R indexData(@RequestBody IndexDateDTO indexDataDTO ){ |
| | | return comEventService.indexData(indexDataDTO); |
| | | } |
| | | |
| | | /** |
| | | * 大屏事件统计(事件和专家各级别占比) |
| | | * */ |
| | | @GetMapping("/indexData/event") |
| | | public R eventIndexData(@RequestParam Integer type){ |
| | | return comEventService.eventIndexData(type); |
| | | } |
| | | } |