安信的出入库bug修改

This commit is contained in:
guoshengxiong 2024-08-16 10:02:23 +08:00
parent 858543d05d
commit 2f4b09c5b7
2 changed files with 5 additions and 2 deletions

View File

@ -95,6 +95,6 @@ public class GtMaterialPurchaseDemandPlanning implements Serializable {
@ApiModelProperty(value = "更新时间") @ApiModelProperty(value = "更新时间")
private java.util.Date updateTime; private java.util.Date updateTime;
@ApiModelProperty(value = "物料单位1斤、2克、3千克、4吨") @ApiModelProperty(value = "物料单位")
private Integer materialUnit; private String materialUnit;
} }

View File

@ -340,6 +340,9 @@ public class GtMaterialInOutWarehouseServiceImpl extends ServiceImpl<GtMaterialI
materialList.stream().forEach(o -> { materialList.stream().forEach(o -> {
o.setGtMaterialInOutWarehouseId(gtMaterialInOutWarehouse.getId()); o.setGtMaterialInOutWarehouseId(gtMaterialInOutWarehouse.getId());
o.setProjectSn(gtMaterialInOutWarehouse.getProjectSn()); o.setProjectSn(gtMaterialInOutWarehouse.getProjectSn());
o.setName(StringUtils.trim(o.getName()));
o.setSpecification(StringUtils.trim(o.getSpecification()));
o.setUnit(o.getUnit());
}); });
if (CollUtil.isNotEmpty(materialList)) { if (CollUtil.isNotEmpty(materialList)) {
materialPointCheckIntoWarehouseDetailService.saveBatch(materialList); materialPointCheckIntoWarehouseDetailService.saveBatch(materialList);