fix:修复获取报告评分接口报错
This commit is contained in:
+3
@@ -75,6 +75,9 @@ public class IReportUserRatingServiceImpl extends ServiceImpl<ReportUserRatingDa
|
||||
@Override
|
||||
public ResponseMessage getRating(String reportId) {
|
||||
ReportUserRatingEntity entity = query().eq("report_id", reportId).eq("user_id", UserUtils.getUserId()).one();
|
||||
if (entity == null) {
|
||||
return Result.success(0);
|
||||
}
|
||||
return Result.success(entity.getUserRating());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user