| | |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import com.vincent.rsf.server.manager.service.*; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import com.baomidou.mybatisplus.annotation.TableLogic; |
| | | |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableLogic; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import com.vincent.rsf.framework.common.Cools; |
| | |
| | | import com.vincent.rsf.server.system.service.UserService; |
| | | import com.vincent.rsf.server.system.entity.User; |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | @Data |
| | | @TableName("man_stock_item") |
| | |
| | | */ |
| | | @ApiModelProperty(value= "物料编码") |
| | | private String code; |
| | | |
| | | |
| | | @ApiModelProperty(value = "通知单明细标识") |
| | | private Long asnItemId; |
| | | |
| | | /** |
| | | * 名称 |
| | |
| | | * ASN单据,带出PO单 |
| | | */ |
| | | @ApiModelProperty(value= "ASN单据,带出PO单") |
| | | @TableField(exist = false) |
| | | private String asnOrder; |
| | | |
| | | /** |
| | | * ERP凭证 |
| | | */ |
| | | @ApiModelProperty(value= "ERP凭证") |
| | | @TableField(exist = false) |
| | | private String erpToken; |
| | | |
| | | /** |
| | | * ERP单号 |
| | | */ |
| | | @ApiModelProperty(value= "ERP单号") |
| | | @TableField(exist = false) |
| | | private String erpOrder; |
| | | |
| | | /** |
| | | * ERP库存地址 |
| | | */ |
| | | @ApiModelProperty(value= "ERP库存地址") |
| | | @TableField(exist = false) |
| | | private String erpStkAdr; |
| | | |
| | | /** |
| | |
| | | * 锁定原因 |
| | | */ |
| | | @ApiModelProperty(value= "锁定原因") |
| | | @TableField(exist = false) |
| | | private String lockReason; |
| | | |
| | | /** |
| | | * 锁定状态 |
| | | */ |
| | | @ApiModelProperty(value= "锁定状态") |
| | | @TableField(exist = false) |
| | | private Short lockStatus; |
| | | |
| | | /** |
| | | * 锁定人 |
| | | */ |
| | | @ApiModelProperty(value= "锁定人") |
| | | @TableField(exist = false) |
| | | private String locker; |
| | | |
| | | /** |
| | |
| | | */ |
| | | @ApiModelProperty(value= "锁定时间") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @TableField(exist = false) |
| | | private Date lockedTime; |
| | | |
| | | /** |
| | |
| | | |
| | | public StockItem() {} |
| | | |
| | | public StockItem(String stockId,Long matnrId,String code,String matnrk,Double anfme,Double workQty,Double qty,Double weight,String unit,Long shipperId,String splrId,String brand,String batch,String prodTime,Long inspectId,String splrBtch,String asnOrder,String erpToken,String erpOrder,String erpStkAdr,Long locId,String barcode,Double purPrice,String lockReason,Short lockStatus,String locker,Date lockedTime,Integer status,Integer deleted,Integer tenantId,Long createBy,Date createTime,Long updateBy,Date updateTime,String memo) { |
| | | public StockItem(String stockId,Long matnrId,Long asnItemId, String code,String matnrk,Double anfme,Double workQty,Double qty,Double weight,String unit,Long shipperId,String splrId,String brand,String batch,String prodTime,Long inspectId,String splrBtch,String asnOrder,String erpToken,String erpOrder,String erpStkAdr,Long locId,String barcode,Double purPrice,String lockReason,Short lockStatus,String locker,Date lockedTime,Integer status,Integer deleted,Integer tenantId,Long createBy,Date createTime,Long updateBy,Date updateTime,String memo) { |
| | | this.stockId = stockId; |
| | | this.matnrId = matnrId; |
| | | this.asnItemId = asnItemId; |
| | | this.code = code; |
| | | this.matnrk = matnrk; |
| | | this.anfme = anfme; |
| | |
| | | } |
| | | |
| | | public String getShipperId$(){ |
| | | ShipperService service = SpringUtils.getBean(ShipperService.class); |
| | | Shipper shipper = service.getById(this.shipperId); |
| | | CompanysService service = SpringUtils.getBean(CompanysService.class); |
| | | Companys shipper = service.getById(this.shipperId); |
| | | if (!Cools.isEmpty(shipper)){ |
| | | return String.valueOf(shipper.getName()); |
| | | } |
| | |
| | | QlyInspectService service = SpringUtils.getBean(QlyInspectService.class); |
| | | QlyInspect qlyInspect = service.getById(this.inspectId); |
| | | if (!Cools.isEmpty(qlyInspect)){ |
| | | return String.valueOf(qlyInspect.getName()); |
| | | return String.valueOf(qlyInspect.getCode()); |
| | | } |
| | | return null; |
| | | } |
| | |
| | | LocService service = SpringUtils.getBean(LocService.class); |
| | | Loc loc = service.getById(this.locId); |
| | | if (!Cools.isEmpty(loc)){ |
| | | return String.valueOf(loc.getName()); |
| | | return String.valueOf(loc.getCode()); |
| | | } |
| | | return null; |
| | | } |