获取订单评价数量
This commit is contained in:
parent
8c29099148
commit
c1a51266a3
|
|
@ -56,7 +56,7 @@ public class MenuEvaluaOrderController {
|
|||
|
||||
@PostMapping({"/evaluate/count"})
|
||||
@ApiOperation("获取订单评价数量")
|
||||
public OrderEvaluaCountDto getCustCount(@RequestBody Long dishesId) {
|
||||
return this.menuEvaluaOrderService.getHaveImageCount(dishesId);
|
||||
public OrderEvaluaCountDto getCustCount(@RequestBody OrderEvaluaCountDto dto) {
|
||||
return this.menuEvaluaOrderService.getHaveImageCount(dto.getDishesId());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,26 +1,13 @@
|
|||
package com.bonus.core.menu.dto;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class OrderEvaluaCountDto {
|
||||
private Long dishesId;
|
||||
@ApiModelProperty("总共数量")
|
||||
private Integer totalCount;
|
||||
@ApiModelProperty("有图数量")
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Reference in New Issue