From d28d43e9ababfa4c2a91e405702c1fffe18c46cd Mon Sep 17 00:00:00 2001 From: lidongdong <1459917685@qq.com> Date: 星期五, 01 九月 2023 18:04:15 +0800 Subject: [PATCH] 修改杨家坪社区问题 --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComActEasyPhotoFeedbackDOMapper.xml | 3 ++- springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/XmostBeautifulApi.java | 25 +++++++++++++++++++++++++ springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActEasyPhotoServiceImpl.java | 2 +- 3 files changed, 28 insertions(+), 2 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/XmostBeautifulApi.java b/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/XmostBeautifulApi.java index 24e021e..cafe5a4 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/XmostBeautifulApi.java +++ b/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/XmostBeautifulApi.java @@ -407,6 +407,31 @@ @PostMapping("/evaluate/insert") public R volunteerMerchantInsert(@RequestBody VolunteerMerchantEvaluateVO item) { + if(item==null) + { + return R.fail("参数不能为空"); + } + + if(StringUtils.isEmpty(item.getCommunityId())) + { + item.setCommunityId(getCommunityId()+""); + } + + if(StringUtils.isEmpty(item.getMerchantId())) + { + return R.fail("商家id不能为空"); + } + + if(StringUtils.isEmpty(item.getUserId())) + { + return R.fail("评论人id不能为空"); + } + + if(StringUtils.isEmpty(item.getEvaluateGrade())) + { + return R.fail("评论分数不能为空"); + } + return communityService.volunteerMerchantInsert(item); } diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActEasyPhotoServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActEasyPhotoServiceImpl.java index b129f0e..0b0b137 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActEasyPhotoServiceImpl.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActEasyPhotoServiceImpl.java @@ -230,7 +230,7 @@ // 查询反馈信息 List<ComActEasyPhotoFeedbackVO> photoFeedbackList = - comActEasyPhotoFeedbackMapper.getPhotoFeedbackList(comActEasyPhotoVO.getHandlerId()); + comActEasyPhotoFeedbackMapper.getPhotoFeedbackList(id); if (!photoFeedbackList.isEmpty()) { comActEasyPhotoVO.setPhotoFeedbackList(photoFeedbackList); } diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComActEasyPhotoFeedbackDOMapper.xml b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComActEasyPhotoFeedbackDOMapper.xml index f707147..3cdf2dd 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComActEasyPhotoFeedbackDOMapper.xml +++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComActEasyPhotoFeedbackDOMapper.xml @@ -32,9 +32,10 @@ com_act_easy_photo_feedback AS caepf LEFT JOIN sys_user AS su ON su.user_id = caepf.create_by WHERE - caepf.easy_id = #{easyId} AND caepf.type = 1 + caepf.easy_id = #{easyId} ORDER BY caepf.create_at desc </select> +<!-- AND caepf.type = 1--> <select id="getPhotoFeedbackListForDpc" resultType="com.panzhihua.common.model.vos.community.ComActEasyPhotoFeedbackVO"> SELECT -- Gitblit v1.7.1