From d68a1db06b4d4f59bac78b53608a024f217d03b7 Mon Sep 17 00:00:00 2001 From: lidongdong <1459917685@qq.com> Date: 星期四, 29 六月 2023 15:38:59 +0800 Subject: [PATCH] 修改花城大屏幕事件报错 --- springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/ComSanShuoEventController.java | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/ComSanShuoEventController.java b/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/ComSanShuoEventController.java index 6696df1..67cc2e9 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/ComSanShuoEventController.java +++ b/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/ComSanShuoEventController.java @@ -11,6 +11,7 @@ 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; @@ -86,7 +87,8 @@ @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()); -- Gitblit v1.7.1