排单分页添加商品颜色字段

This commit is contained in:
yangsb
2024-04-28 10:55:35 +08:00
parent 115d4e2f27
commit 29ef237a0b
2 changed files with 4 additions and 0 deletions
@@ -34,6 +34,9 @@ public class PlateInfoVO {
@Schema(description = "面积")
private BigDecimal area;
@Schema(description = "颜色")
private String color;
@Schema(description = "数量")
private Integer count;
@@ -226,6 +226,7 @@ public class PlanServiceImpl implements PlanService {
.width(p.getWidth())
.height(p.getHeight())
.thickness(p.getThickness())
.color(p.getColor())
.area(p.getHeight().multiply(p.getWidth()).setScale(2, RoundingMode.HALF_UP))
.count(plateDOS.stream().filter(f -> Objects.equals(f.getGoodsId(), p.getGoodsId())).collect(Collectors.toSet()).size())
.build())