From 5aad319eb96a7d2e7e5b9bc6304af3e35176b76b Mon Sep 17 00:00:00 2001
From: lidongdong <1459917685@qq.com>
Date: 星期二, 05 九月 2023 16:41:29 +0800
Subject: [PATCH] 5修改评论报错

---
 springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/VolunteerMerchantEvaluateImpl.java |   16 +++++++---------
 1 files changed, 7 insertions(+), 9 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/VolunteerMerchantEvaluateImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/VolunteerMerchantEvaluateImpl.java
index 7b9516d..6ef4cc9 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/VolunteerMerchantEvaluateImpl.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/VolunteerMerchantEvaluateImpl.java
@@ -52,19 +52,17 @@
         {
             return R.fail("orderId不能为空");
         }
-//        int num= baseMapper.insert(item);
+        int num= baseMapper.insert(item);
         R<VolunteerCreditsExchange> volunteerCreditsExchangeR=vceService.getData(item.getOrderId());
         VolunteerCreditsExchangeVO vce=new VolunteerCreditsExchangeVO();
         vce.setId(volunteerCreditsExchangeR.getData().getId());
         vce.setIsEvaluate("1");
-        vce.setNeedScore(volunteerCreditsExchangeR.getData().getNeedScore());
-        vce.setUserId(volunteerCreditsExchangeR.getData().getUserId());
-        return vceService.update(vce);
-//        if(num>0)
-//        {
-//            return R.ok();
-//        }
-//        return R.fail("添加失败");
+        vceService.update(vce);
+        if(num>0)
+        {
+            return R.ok();
+        }
+        return R.fail("添加失败");
     }
 
     @Override

--
Gitblit v1.7.1