From 9641ba3c1d91c3105966b2038f97a2db83bbe7b7 Mon Sep 17 00:00:00 2001
From: huanghongfa <huanghongfa123456>
Date: 星期一, 12 七月 2021 15:21:15 +0800
Subject: [PATCH] 修改bug

---
 springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActEasyPhotoServiceImpl.java |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

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 a687b91..e7974d4 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
@@ -201,6 +201,10 @@
         Date date = new Date();
         switch (type){
             case 1:
+                cmActEasyPhotoDO = this.comActEasyPhotoDAO.selectById(comActEasyPhotoVO.getId());
+                if(!cmActEasyPhotoDO.getStatus().equals(ComActEasyPhotoDO.status.dsh)){
+                    return R.fail("该随手拍已审核,不可重复操作");
+                }
                 Integer isNeedFeedBack = comActEasyPhotoVO.getIsNeedFeedBack();
                 if (isNeedFeedBack==1) {
                     cmActEasyPhotoDO.setStatus(2);//进行中
@@ -213,6 +217,10 @@
                 comActUserWalletService.examineAddMoney(comActEasyPhotoVO.getActivityType(),comActEasyPhotoVO.getId(),comActEasyPhotoVO.getUserId());
                 break;
             case 2:
+                cmActEasyPhotoDO = this.comActEasyPhotoDAO.selectById(comActEasyPhotoVO.getId());
+                if(!cmActEasyPhotoDO.getStatus().equals(ComActEasyPhotoDO.status.dsh)){
+                    return R.fail("该随手拍已审核,不可重复操作");
+                }
                 cmActEasyPhotoDO.setStatus(3);//已驳回
                 cmActEasyPhotoDO.setExamineAt(date);
                 cmActEasyPhotoDO.setRejectReason(comActEasyPhotoVO.getRejectReason());

--
Gitblit v1.7.1