| | |
| | | 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(); |
| | |
| | | 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(); |