|
|
@ -242,7 +242,6 @@ public class DistributionStockListServiceImpl extends BaseServiceImpl<Distributi |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DistributionStockListEntity one2 = this.getOne(Wrappers.<DistributionStockListEntity>query().lambda() |
|
|
|
DistributionStockListEntity one2 = this.getOne(Wrappers.<DistributionStockListEntity>query().lambda() |
|
|
|
.eq(ObjectUtil.isNotEmpty(distributionStockListDTO.getMaterialId()),DistributionStockListEntity::getMaterialId, distributionStockListDTO.getMaterialId()) |
|
|
|
.eq(ObjectUtil.isNotEmpty(distributionStockListDTO.getMaterialId()),DistributionStockListEntity::getMaterialId, distributionStockListDTO.getMaterialId()) |
|
|
|
.eq(DistributionStockListEntity::getPid, distributionStockListDTO.getId()) |
|
|
|
.eq(DistributionStockListEntity::getPid, distributionStockListDTO.getId()) |
|
|
@ -276,7 +275,7 @@ public class DistributionStockListServiceImpl extends BaseServiceImpl<Distributi |
|
|
|
BeanUtil.copyProperties(d, distributionStockListInfo); |
|
|
|
BeanUtil.copyProperties(d, distributionStockListInfo); |
|
|
|
distributionStockListInfo.setId(null); |
|
|
|
distributionStockListInfo.setId(null); |
|
|
|
distributionStockListInfo.setStockListId(d.getId()); |
|
|
|
distributionStockListInfo.setStockListId(d.getId()); |
|
|
|
distributionStockListInfo.setOutboundQuantity(0); |
|
|
|
// distributionStockListInfo.setOutboundQuantity(0);
|
|
|
|
distributionStockListInfo.setGroundingTime(new Date()); |
|
|
|
distributionStockListInfo.setGroundingTime(new Date()); |
|
|
|
distributionStockListInfo.setQuantityStock((distributionStockListDTO.getStoreNum() * Integer.parseInt(distributionStockListDTO.getPackageNum()))); |
|
|
|
distributionStockListInfo.setQuantityStock((distributionStockListDTO.getStoreNum() * Integer.parseInt(distributionStockListDTO.getPackageNum()))); |
|
|
|
// distributionStockListInfo.setOrderCode(one.getOrderCode());
|
|
|
|
// distributionStockListInfo.setOrderCode(one.getOrderCode());
|
|
|
@ -339,10 +338,11 @@ public class DistributionStockListServiceImpl extends BaseServiceImpl<Distributi |
|
|
|
distributionStockListEntity.setMaterialId(aLong); |
|
|
|
distributionStockListEntity.setMaterialId(aLong); |
|
|
|
distributionStockListEntity.setSourceType("2"); |
|
|
|
distributionStockListEntity.setSourceType("2"); |
|
|
|
distributionStockListEntity.setCargoUnit(DictBizCache.getValue(DictBizConstant.LOGPM_UNIT, distributionStockListDTO.getCargoUnit())); |
|
|
|
distributionStockListEntity.setCargoUnit(DictBizCache.getValue(DictBizConstant.LOGPM_UNIT, distributionStockListDTO.getCargoUnit())); |
|
|
|
distributionStockListEntity.setDescriptionGoods(distributionStockListDTO.getMaterialIdName()); |
|
|
|
distributionStockListEntity.setDescriptionGoods(basicMaterialEntity.getName()); |
|
|
|
distributionStockListEntity.setCargoNumber(distributionStockListDTO.getCargoNumber()); |
|
|
|
distributionStockListEntity.setCargoNumber(basicMaterialEntity.getProductCode()); |
|
|
|
distributionStockListEntity.setCargoNorms(distributionStockListDTO.getCargoNorms()); |
|
|
|
distributionStockListEntity.setCargoNorms(basicMaterialEntity.getSpecification()); |
|
|
|
distributionStockListEntity.setQuantityOccupied(0); |
|
|
|
distributionStockListEntity.setQuantityOccupied(0); |
|
|
|
|
|
|
|
distributionStockListEntity.setServiceNumber(one.getServiceNumber()); |
|
|
|
distributionStockListEntity.setIncomingBatch(one.getIncomingBatch()); |
|
|
|
distributionStockListEntity.setIncomingBatch(one.getIncomingBatch()); |
|
|
|
distributionStockListEntity.setId(null); |
|
|
|
distributionStockListEntity.setId(null); |
|
|
|
this.save(distributionStockListEntity); |
|
|
|
this.save(distributionStockListEntity); |
|
|
|