获取订单评价数量

This commit is contained in:
sxu 2025-02-19 18:54:42 +08:00
parent 8c29099148
commit c1a51266a3
2 changed files with 5 additions and 18 deletions

View File

@ -56,7 +56,7 @@ public class MenuEvaluaOrderController {
@PostMapping({"/evaluate/count"}) @PostMapping({"/evaluate/count"})
@ApiOperation("获取订单评价数量") @ApiOperation("获取订单评价数量")
public OrderEvaluaCountDto getCustCount(@RequestBody Long dishesId) { public OrderEvaluaCountDto getCustCount(@RequestBody OrderEvaluaCountDto dto) {
return this.menuEvaluaOrderService.getHaveImageCount(dishesId); return this.menuEvaluaOrderService.getHaveImageCount(dto.getDishesId());
} }
} }

View File

@ -1,26 +1,13 @@
package com.bonus.core.menu.dto; package com.bonus.core.menu.dto;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@Data
public class OrderEvaluaCountDto { public class OrderEvaluaCountDto {
private Long dishesId;
@ApiModelProperty("总共数量") @ApiModelProperty("总共数量")
private Integer totalCount; private Integer totalCount;
@ApiModelProperty("有图数量") @ApiModelProperty("有图数量")
private Integer imageCount; private Integer imageCount;
public Integer getTotalCount() {
return this.totalCount;
}
public Integer getImageCount() {
return this.imageCount;
}
public void setTotalCount(final Integer totalCount) {
this.totalCount = totalCount;
}
public void setImageCount(final Integer imageCount) {
this.imageCount = imageCount;
}
} }