| | |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | import org.jeecg.common.aspect.annotation.Dict; |
| | | import org.jeecgframework.poi.excel.annotation.Excel; |
| | | import org.jeecg.modules.sap.dto.OrderBomDTO; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import java.io.Serializable; |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | |
| | | @ApiModelProperty(value = "更新日期") |
| | | private Date updateTime; |
| | | /**生产物料ID*/ |
| | | @Excel(name = "生产物料ID", width = 15) |
| | | @ApiModelProperty(value = "生产物料ID") |
| | | @Dict(dictTable = "pms_process_bill_materials", dicCode = "id", dicText = "material_number") |
| | | private String materialId; |
| | | /**物料编码*/ |
| | | @Excel(name = "物料编码", width = 15) |
| | | @ApiModelProperty(value = "物料编码") |
| | | private String materialNumber; |
| | | /**物料名称*/ |
| | | @Excel(name = "物料名称", width = 15) |
| | | @ApiModelProperty(value = "物料名称") |
| | | private String materialName; |
| | | /**基本单位*/ |
| | | @ApiModelProperty(value = "基本单位") |
| | | private String productionUnit; |
| | | /**需求用量*/ |
| | | @Excel(name = "需求用量", width = 15) |
| | | @ApiModelProperty(value = "需求用量") |
| | | private Double usageUnit; |
| | | private BigDecimal usageQuantity; |
| | | |
| | | public PmsProcessBillMaterialsDetail(){} |
| | | |
| | | public PmsProcessBillMaterialsDetail(String materialId, OrderBomDTO dto) { |
| | | this.materialId = materialId; |
| | | this.materialNumber = dto.getMATNR(); |
| | | this.materialName = dto.getMAKTX(); |
| | | this.productionUnit = dto.getMEINS(); |
| | | this.usageQuantity = new BigDecimal(dto.getBDMNG()); |
| | | } |
| | | } |