|
|
@@ -147,47 +147,22 @@ public class CommonRatingController {
|
|
|
return R.fail("删除评价失败");
|
|
|
}
|
|
|
|
|
|
-//
|
|
|
-// @ApiOperation("更新评价")
|
|
|
-// @PutMapping("/update")
|
|
|
-// public R<Boolean> update(@RequestBody CommonRating commonRating) {
|
|
|
-// log.info("CommonRatingController.update?commonRating={}", commonRating);
|
|
|
-// return R.data(commonRatingService.updateById(commonRating));
|
|
|
-// }
|
|
|
-//
|
|
|
-// @ApiOperation("删除评价")
|
|
|
-// @ApiImplicitParam(name = "id", value = "评价ID", dataType = "Long", paramType = "path", required = true)
|
|
|
-// @DeleteMapping("/delete/{id}")
|
|
|
-// public R<Boolean> delete(@PathVariable Long id) {
|
|
|
-// log.info("CommonRatingController.delete?id={}", id);
|
|
|
-// return R.data(commonRatingService.removeById(id));
|
|
|
-// }
|
|
|
-//
|
|
|
-// @ApiOperation("获取平均评分")
|
|
|
-// @ApiImplicitParams({
|
|
|
-// @ApiImplicitParam(name = "businessType", value = "业务类型", dataType = "Integer", paramType = "query", required = true),
|
|
|
-// @ApiImplicitParam(name = "businessId", value = "业务ID", dataType = "Long", paramType = "query", required = true)
|
|
|
-// })
|
|
|
-// @GetMapping("/getAverageScore")
|
|
|
-// public R<Double> getAverageScore(
|
|
|
-// @RequestParam Integer businessType,
|
|
|
-// @RequestParam Long businessId) {
|
|
|
-// log.info("CommonRatingController.getAverageScore?businessType={}&businessId={}", businessType, businessId);
|
|
|
-// return R.data(commonRatingService.getAverageScore(businessType, businessId));
|
|
|
-// }
|
|
|
-//
|
|
|
-// @ApiOperation("获取评价数量")
|
|
|
-// @ApiImplicitParams({
|
|
|
-// @ApiImplicitParam(name = "businessType", value = "业务类型", dataType = "Integer", paramType = "query", required = true),
|
|
|
-// @ApiImplicitParam(name = "businessId", value = "业务ID", dataType = "Long", paramType = "query", required = true)
|
|
|
-// })
|
|
|
-// @GetMapping("/getRatingCount")
|
|
|
-// public R<Long> getRatingCount(
|
|
|
-// @RequestParam Integer businessType,
|
|
|
-// @RequestParam Long businessId) {
|
|
|
-// log.info("CommonRatingController.getRatingCount?businessType={}&businessId={}", businessType, businessId);
|
|
|
-// return R.data(commonRatingService.getRatingCount(businessType, businessId));
|
|
|
-// }
|
|
|
+ // 查询我自己的评价
|
|
|
+ @ApiOperation("查询我的评价")
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "pageNum", value = "当前页码", dataType = "Integer", paramType = "query", required = true),
|
|
|
+ @ApiImplicitParam(name = "pageSize", value = "每页数量", dataType = "Integer", paramType = "query", required = true),
|
|
|
+ @ApiImplicitParam(name = "businessType", value = "业务类型", dataType = "Integer", paramType = "query", required = true),
|
|
|
+ @ApiImplicitParam(name = "userId", value = "用户ID", dataType = "Long", paramType = "query", required = true),
|
|
|
+ @ApiImplicitParam(name = "auditStatus", value = "审核状态", dataType = "Integer", paramType = "query", required = true)})
|
|
|
+ @GetMapping("/getMyRatingList")
|
|
|
+ public R getMyRatingList(@RequestParam(defaultValue = "1") Integer pageNum,
|
|
|
+ @RequestParam(defaultValue = "10") Integer pageSize,
|
|
|
+ @RequestParam Integer businessType,
|
|
|
+ @RequestParam Long userId,
|
|
|
+ @RequestParam(required = false) Integer auditStatus) {
|
|
|
+ log.info("CommonRatingController.getMyRatingList?pageNum={}&pageSize={}&businessType={}&userId={}&auditStatus={}", pageNum, pageSize, businessType, userId, auditStatus);
|
|
|
+ return commonRatingService.getMyRatingList(pageNum, pageSize, businessType, userId, auditStatus);
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
-
|