| | |
| | | @ApiModelProperty(value= "添加人员") |
| | | private Long createBy; |
| | | |
| | | @TableField(exist = false) |
| | | private String createBy$; |
| | | |
| | | /** |
| | | * 添加时间 |
| | | */ |
| | |
| | | */ |
| | | @ApiModelProperty(value= "修改人员") |
| | | private Long updateBy; |
| | | |
| | | @TableField(exist = false) |
| | | private String updateBy$; |
| | | |
| | | @ApiModelProperty("是否合格") |
| | | private Short flagNorm; |
| | |
| | | |
| | | @ApiModelProperty(value = "建议调出仓,出仓") |
| | | private String sourceWarehouseId; |
| | | @TableField(exist = false) |
| | | private String shipperId$; |
| | | |
| | | @TableField(exist = false) |
| | | private String splrId$; |
| | | |
| | | @TableField(exist = false) |
| | | private String isptResult$; |
| | | |
| | | |
| | | public WarehouseAreasItem() {} |
| | | |
| | | public WarehouseAreasItem(Long areaId,String areaName,Long matnrId,String matnrName,String matnrCode,String trackCode,Double anfme,String batch,String unit,String stockUnit,String brand,Long shipperId,Long splrId,Double weight,String prodTime,String splrBtch,Integer status,Integer deleted,Integer tenantId,Long createBy,Date createTime,Long updateBy,Date updateTime,String memo) { |
| | |
| | | // ); |
| | | |
| | | public BigDecimal getAbleQty(){ |
| | | BigDecimal anfmeDec = new BigDecimal(this.anfme.toString()); |
| | | BigDecimal workQtyDec = new BigDecimal(this.workQty.toString()); |
| | | BigDecimal qtyDec = new BigDecimal(this.qty.toString()); |
| | | BigDecimal anfmeDec = this.anfme != null ? new BigDecimal(this.anfme.toString()) : BigDecimal.ZERO; |
| | | BigDecimal workQtyDec = this.workQty != null ? new BigDecimal(this.workQty.toString()) : BigDecimal.ZERO; |
| | | BigDecimal qtyDec = this.qty != null ? new BigDecimal(this.qty.toString()) : BigDecimal.ZERO; |
| | | |
| | | return anfmeDec.subtract(workQtyDec).subtract(qtyDec); |
| | | } |
| | | |
| | | public String getShipperId$(){ |
| | | CompanysService service = SpringUtils.getBean(CompanysService.class); |
| | | Companys companys = service.getById(this.shipperId); |
| | | if (!Cools.isEmpty(companys)){ |
| | | return String.valueOf(companys.getName()); |
| | | } |
| | | return null; |
| | | return this.shipperId$; |
| | | } |
| | | |
| | | public String getSplrId$(){ |
| | | CompanysService service = SpringUtils.getBean(CompanysService.class); |
| | | Companys companys = service.getById(this.splrId); |
| | | if (!Cools.isEmpty(companys)){ |
| | | return String.valueOf(companys.getName()); |
| | | } |
| | | return null; |
| | | return this.splrId$; |
| | | } |
| | | |
| | | public String getStatus$(){ |
| | |
| | | } |
| | | } |
| | | |
| | | 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 getIsptResult$(){ |
| | | if (Cools.isEmpty(this.isptResult)){ |
| | | return null; |
| | | } |
| | | DictDataService dictDataService = SpringUtils.getBean(DictDataService.class); |
| | | DictData dictData = dictDataService.getOne(new LambdaQueryWrapper<DictData>() |
| | | .eq(DictData::getDictTypeCode, DictTypeCode.DICT_INSPECT_RESULT) |
| | | .eq(DictData::getValue, this.isptResult)); |
| | | if (Objects.isNull(dictData)) { |
| | | return null; |
| | | } |
| | | return dictData.getLabel(); |
| | | return this.isptResult$; |
| | | } |
| | | |
| | | public String getUpdateTime$(){ |