| | |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.vincent.rsf.framework.common.DateUtils; |
| | | import com.vincent.rsf.server.manager.service.LocService; |
| | | import com.vincent.rsf.server.manager.service.WarehouseAreasService; |
| | | import com.vincent.rsf.server.system.constant.DictTypeCode; |
| | |
| | | */ |
| | | @ApiModelProperty(value= "主单ID") |
| | | private Long locId; |
| | | |
| | | |
| | | @ApiModelProperty("库位编码") |
| | | private String locCode; |
| | |
| | | @ApiModelProperty("出库数量") |
| | | @TableField(exist = false) |
| | | private Double outQty; |
| | | |
| | | @ApiModelProperty("巷道") |
| | | @TableField(exist = false) |
| | | private Integer channel; |
| | | |
| | | /** |
| | | * 物料名称 |
| | |
| | | @TableField(exist = false) |
| | | private Map<String, String> extendFields; |
| | | |
| | | @ApiModelProperty("托盘码") |
| | | @TableField(exist = false) |
| | | private String barcode; |
| | | |
| | | /** |
| | | * 状态 1: 正常 0: 冻结 |
| | | */ |
| | |
| | | * 是否删除 1: 是 0: 否 |
| | | */ |
| | | @ApiModelProperty(value= "是否删除 1: 是 0: 否 ") |
| | | @TableLogic |
| | | private Integer deleted; |
| | | |
| | | /** |
| | |
| | | */ |
| | | @ApiModelProperty(value= "添加人员") |
| | | private Long createBy; |
| | | |
| | | @TableField(exist = false) |
| | | private String createBy$; |
| | | |
| | | /** |
| | | * 添加时间 |
| | |
| | | @ApiModelProperty(value= "修改人员") |
| | | private Long updateBy; |
| | | |
| | | @TableField(exist = false) |
| | | private String updateBy$; |
| | | |
| | | @ApiModelProperty("供应商ID") |
| | | private Long splrId; |
| | | |
| | | @ApiModelProperty("供应商编码(关联查询带出,非表字段)") |
| | | @TableField(exist = false) |
| | | private String splrCode; |
| | | |
| | | @ApiModelProperty("供应商名称(关联查询带出,非表字段)") |
| | | @TableField(exist = false) |
| | | private String splrName; |
| | | |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | |
| | | private Date updateTime; |
| | | |
| | | @TableField(exist = false) |
| | | private Long waveId; |
| | | private Long sourceId; |
| | | |
| | | @TableField(exist = false) |
| | | private Long waveItemId; |
| | | private Long source; |
| | | |
| | | @TableField(exist = false) |
| | | private String waveCode; |
| | | private String sourceCode; |
| | | |
| | | @ApiModelProperty("出站口") |
| | | @TableField(exist = false) |
| | | private String siteNo; |
| | | |
| | | |
| | | /** |
| | |
| | | */ |
| | | @ApiModelProperty(value= "备注") |
| | | private String memo; |
| | | |
| | | |
| | | @ApiModelProperty(value = "基本单位") |
| | | private String baseUnit; |
| | | |
| | | @ApiModelProperty(value = "使用组织") |
| | | private String useOrgId; |
| | | |
| | | @ApiModelProperty(value = "使用者名称") |
| | | private String useOrgName; |
| | | |
| | | @ApiModelProperty(value = "数量属性,外购等") |
| | | private String erpClsId; |
| | | |
| | | @ApiModelProperty(value = "计价单位") |
| | | private String priceUnitId; |
| | | |
| | | @ApiModelProperty(value = "入库类型") |
| | | private String inStockType; |
| | | |
| | | @ApiModelProperty(value = "货主类型") |
| | | private String ownerTypeId; |
| | | |
| | | @ApiModelProperty(value = "货主") |
| | | private String ownerId; |
| | | |
| | | @ApiModelProperty(value = "货主名称") |
| | | private String ownerName; |
| | | |
| | | @ApiModelProperty(value = "保管者类型") |
| | | private String keeperTypeId; |
| | | |
| | | @ApiModelProperty(value = "保管者") |
| | | private String keeperId; |
| | | |
| | | @ApiModelProperty(value = "保管者名称") |
| | | private String keeperName; |
| | | |
| | | @ApiModelProperty(value = "建议目标仓,入库") |
| | | private String targetWarehouseId; |
| | | |
| | | @ApiModelProperty(value = "建议调出仓,出仓") |
| | | private String sourceWarehouseId; |
| | | @TableField(exist = false) |
| | | private String wareArea; |
| | | |
| | | @TableField(exist = false) |
| | | private String type$; |
| | | |
| | | @TableField(exist = false) |
| | | private String wkType$; |
| | | |
| | | |
| | | public LocItem() {} |
| | | |
| | |
| | | } |
| | | |
| | | // LocItem locItem = new LocItem( |
| | | // null, // 主单ID |
| | | // null, // 主单IDs |
| | | // null, // 单据ID |
| | | // null, // 单据类型 |
| | | // null, // 订单明细id |
| | |
| | | // ); |
| | | |
| | | public String getWareArea(){ |
| | | if (Cools.isEmpty(this.locId)){ |
| | | return ""; |
| | | } |
| | | LocService locService = SpringUtils.getBean(LocService.class); |
| | | Loc loc = locService.getById(this.locId); |
| | | if (Objects.isNull(loc)) { |
| | | return null; |
| | | } |
| | | return loc.getAreaId$(); |
| | | return this.wareArea; |
| | | } |
| | | |
| | | public String getType$(){ |
| | | if (Cools.isEmpty(this.type)){ |
| | | return ""; |
| | | } |
| | | DictDataService dictDataService = SpringUtils.getBean(DictDataService.class); |
| | | DictData dictData = dictDataService.getOne(new LambdaQueryWrapper<DictData>().eq(DictData::getDictTypeCode, DictTypeCode.DICT_SYS_ORDER_TYPE).eq(DictData::getValue, this.type)); |
| | | if (Objects.isNull(dictData)) { |
| | | return null; |
| | | } |
| | | return dictData.getLabel(); |
| | | return this.type$; |
| | | } |
| | | |
| | | public String getWkType$(){ |
| | | if (Cools.isEmpty(this.wkType)){ |
| | | return ""; |
| | | } |
| | | DictDataService dictDataService = SpringUtils.getBean(DictDataService.class); |
| | | DictData dictData = dictDataService.getOne(new LambdaQueryWrapper<DictData>().eq(DictData::getDictTypeCode, DictTypeCode.DICT_SYS_BUSINESS_TYPE).eq(DictData::getValue, this.wkType)); |
| | | if (Objects.isNull(dictData)) { |
| | | return null; |
| | | } |
| | | return dictData.getLabel(); |
| | | return this.wkType$; |
| | | } |
| | | |
| | | public Double getReviseQty() { |
| | | return this.anfme; |
| | | } |
| | | |
| | | 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 Integer getDeadTime() { |
| | | if (null == this.createTime){ return null; } |
| | | return DateUtils.diff(createTime, new Date()); |
| | | } |
| | | |
| | | public String getCreateTime$(){ |
| | |
| | | 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$(){ |
| | | if (Cools.isEmpty(this.updateTime)){ |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.updateTime); |
| | | } |
| | | |
| | | |
| | | |
| | | public Boolean getStatusBool(){ |
| | | if (null == this.status){ return null; } |