| | |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import com.vincent.rsf.server.manager.service.*; |
| | | import lombok.experimental.Accessors; |
| | | 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 |
| | | @Accessors(chain = true) |
| | | @TableName("man_stock_item") |
| | | public class StockItem implements Serializable { |
| | | |
| | |
| | | private Long id; |
| | | |
| | | /** |
| | | * 任务明细ID |
| | | */ |
| | | @ApiModelProperty("任务明细ID") |
| | | private Long taskItemId; |
| | | |
| | | /** |
| | | * 库存外键标识 |
| | | */ |
| | | @ApiModelProperty(value= "库存外键标识") |
| | | private String stockId; |
| | | private Long stockId; |
| | | |
| | | /** |
| | | * 物料标识 |
| | |
| | | * 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= "锁定时间") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | private Date lockedTime; |
| | | |
| | | /** |
| | |
| | | |
| | | public StockItem() {} |
| | | |
| | | 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) { |
| | | public StockItem(Long 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; |
| | |
| | | } |
| | | |
| | | 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; |
| | | } |