| | |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.validation.BindingResult; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import springfox.documentation.annotations.ApiIgnore; |
| | |
| | | import javax.annotation.Resource; |
| | | import javax.validation.Valid; |
| | | import java.util.HashMap; |
| | | |
| | | import static java.util.Objects.nonNull; |
| | | |
| | | /** |
| | | * ClassName ComEventController |
| | |
| | | @PostMapping("/page") |
| | | public R page(@RequestBody ComEventPageRequestVO comEventPageRequestVO) { |
| | | log.info("================appId="+comEventPageRequestVO); |
| | | ComEventVO comEventVO = CopyUtil.copyProperties(comEventPageRequestVO, ComEventVO.class); |
| | | ComEventVO comEventVO = new ComEventVO(); |
| | | BeanUtils.copyProperties(comEventPageRequestVO,comEventVO); |
| | | comEventPageRequestVO.setCreateBy(getUserId()); |
| | | if (nonNull(comEventPageRequestVO.getAppId())){ |
| | | comEventVO.setAppId(comEventPageRequestVO.getAppId()); |
| | | } |
| | | return comEventService.page(comEventVO, comEventVO.getPageNo(), comEventVO.getPageSize()); |
| | | } |
| | | |