tangxiaobao
2022-03-02 547bd6be2d0fa7560683d2e780d646067c2f0372
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();