From aad3ae2ba1b14bf7e948a97ceaab2dea5128fb39 Mon Sep 17 00:00:00 2001 From: 张天森 <1292933220@qq.com> Date: 星期六, 12 十一月 2022 17:20:34 +0800 Subject: [PATCH] update --- 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