mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-14 05:42:06 +08:00
排单分页添加商品颜色字段
This commit is contained in:
+3
@@ -34,6 +34,9 @@ public class PlateInfoVO {
|
|||||||
@Schema(description = "面积")
|
@Schema(description = "面积")
|
||||||
private BigDecimal area;
|
private BigDecimal area;
|
||||||
|
|
||||||
|
@Schema(description = "颜色")
|
||||||
|
private String color;
|
||||||
|
|
||||||
@Schema(description = "数量")
|
@Schema(description = "数量")
|
||||||
private Integer count;
|
private Integer count;
|
||||||
|
|
||||||
|
|||||||
+1
@@ -226,6 +226,7 @@ public class PlanServiceImpl implements PlanService {
|
|||||||
.width(p.getWidth())
|
.width(p.getWidth())
|
||||||
.height(p.getHeight())
|
.height(p.getHeight())
|
||||||
.thickness(p.getThickness())
|
.thickness(p.getThickness())
|
||||||
|
.color(p.getColor())
|
||||||
.area(p.getHeight().multiply(p.getWidth()).setScale(2, RoundingMode.HALF_UP))
|
.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())
|
.count(plateDOS.stream().filter(f -> Objects.equals(f.getGoodsId(), p.getGoodsId())).collect(Collectors.toSet()).size())
|
||||||
.build())
|
.build())
|
||||||
|
|||||||
Reference in New Issue
Block a user