| | |
| | | package org.jeecg.modules.lsw.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import org.jeecg.common.aspect.annotation.Dict; |
| | | import org.jeecg.common.constant.CommonConstant; |
| | | import org.jeecg.modules.lsw.enums.MaterialInventoryStatusEnum; |
| | | import org.jeecgframework.poi.excel.annotation.Excel; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import javax.persistence.Table; |
| | | import java.io.Serializable; |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @ApiModelProperty(value = "创建日期") |
| | | private Date createTime; |
| | | /**更新人*/ |
| | | @ApiModelProperty(value = "更新人") |
| | | private String updateBy; |
| | | /**更新日期*/ |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @ApiModelProperty(value = "更新日期") |
| | | private Date updateTime; |
| | | /**物料ID*/ |
| | | @ApiModelProperty(value = "物料ID") |
| | | private String materialId; |
| | |
| | | /**热处理标识*/ |
| | | @Excel(name = "热处理标识", width = 15) |
| | | @ApiModelProperty(value = "热处理标识") |
| | | private String heatTreatmentFlag = CommonConstant.STATUS_0; |
| | | private String heatTreatmentFlag; |
| | | |
| | | public LswMaterialInventory(){} |
| | | |
| | | public LswMaterialInventory(LswMaterialInbound inbound, String materialId, String inventoryCategory) { |
| | | public LswMaterialInventory(LswMaterialInbound inbound, String materialId, String inventoryCategory, String heatTreatmentFlag) { |
| | | this.warehouseId = inbound.getWarehouseId(); |
| | | this.quantity = inbound.getQuantity(); |
| | | this.batchNumber = inbound.getBatchNumber(); |
| | | this.inventoryStatus = MaterialInventoryStatusEnum.NORMAL.name(); |
| | | this.inventoryCategory = inventoryCategory; |
| | | this.materialId = materialId; |
| | | this.heatTreatmentFlag = heatTreatmentFlag; |
| | | } |
| | | } |