获取订单评价数量
This commit is contained in:
parent
8c29099148
commit
c1a51266a3
|
|
@ -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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Reference in New Issue