From 547bd6be2d0fa7560683d2e780d646067c2f0372 Mon Sep 17 00:00:00 2001 From: tangxiaobao <303826152@qq.com> Date: 星期三, 02 三月 2022 15:08:02 +0800 Subject: [PATCH] 修复bug --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActEasyPhotoEvaluateServiceImpl.java | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActEasyPhotoEvaluateServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActEasyPhotoEvaluateServiceImpl.java index 699f236..f6a5c93 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActEasyPhotoEvaluateServiceImpl.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActEasyPhotoEvaluateServiceImpl.java @@ -141,7 +141,7 @@ if(easyPhotoDO == null){ return R.fail("未查询到该记录"); } - if(!easyPhotoDO.getStatus().equals(ComActEasyPhotoDO.status.dpj)){ + if(!easyPhotoDO.getStatus().equals(ComActEasyPhotoDO.status.ywc)){ return R.fail("当前状态不可进行评价"); } Date nowDate = new Date(); @@ -149,7 +149,7 @@ this.addEasyPhotoEvaluateRecord(easyPhotoDO.getCommunityId(),whistleDto.getUserId(),easyPhotoDO.getId(),whistleDto.getScore() ,whistleDto.getContent(),nowDate,ComActEasyPhotoEvaluate.ServiceType.SSP); //更新随手拍状态 - easyPhotoDO.setStatus(ComActEasyPhotoDO.status.ywc); + easyPhotoDO.setStatus(ComActEasyPhotoDO.status.ypj); easyPhotoDO.setEvaluateDate(nowDate); easyPhotoDAO.updateById(easyPhotoDO); return R.ok(); -- Gitblit v1.7.1