| | |
| | | package com.vincent.rsf.server.manager.entity; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | |
| | |
| | | @ApiModelProperty(value= "添加人员") |
| | | private Long createBy; |
| | | |
| | | @TableField(exist = false) |
| | | private String createBy$; |
| | | |
| | | /** |
| | | * 添加时间 |
| | | */ |
| | |
| | | */ |
| | | @ApiModelProperty(value= "修改人员") |
| | | private Long updateBy; |
| | | |
| | | @TableField(exist = false) |
| | | private String updateBy$; |
| | | |
| | | /** |
| | | * 修改时间 |
| | |
| | | |
| | | @ApiModelProperty(value = "建议调出仓,出仓") |
| | | private String sourceWarehouseId; |
| | | |
| | | @TableField(exist = false) |
| | | private BigDecimal inputQty = BigDecimal.ZERO; |
| | | public TaskItem() {} |
| | | |
| | | public TaskItem(Long taskId,Long matnrId,String maktx,String matnrCode,String unit,Double anfme,String batch,String spec,String model,String fieldsIndex,Integer status,Integer deleted,Integer tenantId,Long createBy,Date createTime,Long updateBy,Date updateTime,String memo) { |
| | |
| | | } |
| | | } |
| | | |
| | | public String getCreateBy$(){ |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.getById(this.createBy); |
| | | if (!Cools.isEmpty(user)){ |
| | | return String.valueOf(user.getNickname()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getCreateTime$(){ |
| | | if (Cools.isEmpty(this.createTime)){ |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime); |
| | | } |
| | | |
| | | public String getUpdateBy$(){ |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.getById(this.updateBy); |
| | | if (!Cools.isEmpty(user)){ |
| | | return String.valueOf(user.getNickname()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getUpdateTime$(){ |
| | |
| | | } |
| | | } |
| | | |
| | | public BigDecimal getAbleQty() { |
| | | if (anfme == null) { anfme = 0.0;} |
| | | if (workQty == null) { workQty = 0.0;} |
| | | BigDecimal anfmeDec = new BigDecimal(anfme.toString()); |
| | | BigDecimal qtyDec = new BigDecimal(workQty.toString()); |
| | | |
| | | return anfmeDec.subtract(qtyDec); |
| | | } |
| | | |
| | | } |