| | |
| | | private String customerName; |
| | | |
| | | /** |
| | | * 物料编码 |
| | | * 关联物料信息表ID |
| | | */ |
| | | @ApiModelProperty("物料编码") |
| | | @Excel(name = "物料编码") |
| | | private String materialCode; |
| | | |
| | | /** |
| | | * 产品名称 |
| | | */ |
| | | @ApiModelProperty("产品名称") |
| | | @Excel(name = "产品名称") |
| | | private String productName; |
| | | |
| | | /** |
| | | * 产品规格 |
| | | */ |
| | | @ApiModelProperty("产品规格") |
| | | @Excel(name = "产品规格") |
| | | private String productSpec; |
| | | @ApiModelProperty("关联物料信息表ID") |
| | | private Long productMaterialSkuId; |
| | | |
| | | /** |
| | | * 长 |
| | |
| | | @ApiModelProperty(value = "下发数量") |
| | | @Excel(name = "下发数量") |
| | | private BigDecimal assignedQuantity; |
| | | |
| | | /** |
| | | * 计算剩余方数 |
| | | * |
| | | * @return 剩余方数 |
| | | */ |
| | | @ApiModelProperty(value = "剩余方数") |
| | | public BigDecimal getRemainingVolume() { |
| | | if (volume == null) { |
| | | return BigDecimal.ZERO; |
| | | } |
| | | if (assignedQuantity == null) { |
| | | return volume; |
| | | } |
| | | return volume.subtract(assignedQuantity); |
| | | } |
| | | } |