Browse Source

fix:

1.优化包件明细的查询
2.包件明细可以查询全仓数据
3.针对零担订单无法确认的准备数量的情况下,目前按照开单数量计入的品类数量表上
pull/30/head
pref_mail@163.com 9 months ago
parent
commit
0f0ebe0624
  1. 2
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionParcelListMapper.xml
  2. 16
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionParcelListServiceImpl.java
  3. 3
      blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/service/impl/WarehouseWaybillServiceImpl.java

2
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionParcelListMapper.xml

@ -174,7 +174,7 @@
and ldpl.stock_article_id like concat('%',#{param.stockArticleId},'%') and ldpl.stock_article_id like concat('%',#{param.stockArticleId},'%')
</if> </if>
<if test="param.orderCode !='' and param.orderCode != null"> <if test="param.orderCode !='' and param.orderCode != null">
and ldpl.order_code like concat('%',#{param.orderCode},'%') and ldpl.order_code like concat(#{param.orderCode},'%')
</if> </if>
<if test="param.serviceNumber !='' and param.serviceNumber != null"> <if test="param.serviceNumber !='' and param.serviceNumber != null">
and ldpl.service_number like concat('%',#{param.serviceNumber},'%') and ldpl.service_number like concat('%',#{param.serviceNumber},'%')

16
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionParcelListServiceImpl.java

@ -147,10 +147,18 @@ public class DistributionParcelListServiceImpl extends BaseServiceImpl<Distribut
@Override @Override
public IPage<DistributionParcelListVO> selectDistributionParcelListPage(IPage<DistributionParcelListVO> page, DistributionParcelListVO distributionParcelList) { public IPage<DistributionParcelListVO> selectDistributionParcelListPage(IPage<DistributionParcelListVO> page, DistributionParcelListVO distributionParcelList) {
List<BasicdataWarehouseEntity> myWatchWarehouse = basicdataWarehouseClient.getMyWatchWarehouse(); BasicdataWarehouseEntity myWatchWarehouse = basicdataWarehouseClient.getMyCurrentWarehouse();
List<Long> collect = myWatchWarehouse.stream() List<Long> collect = new ArrayList<>();
.map(BasicdataWarehouseEntity::getId) if(ObjectUtils.isNull(myWatchWarehouse)){
.collect(Collectors.toList()); List<BasicdataWarehouseEntity> myWatchWarehouse1 = basicdataWarehouseClient.getMyWatchWarehouse();
myWatchWarehouse1.forEach(t->{
collect.add(t.getId());
});
}else{
collect.add(myWatchWarehouse.getId());
}
distributionParcelList.setWarehouseIdList(collect); distributionParcelList.setWarehouseIdList(collect);
List<DistributionParcelListVO> distributionParcelListEntities = baseMapper.selectDistributionParcelListPage(page, distributionParcelList); List<DistributionParcelListVO> distributionParcelListEntities = baseMapper.selectDistributionParcelListPage(page, distributionParcelList);
return page.setRecords(distributionParcelListEntities); return page.setRecords(distributionParcelListEntities);

3
blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/service/impl/WarehouseWaybillServiceImpl.java

@ -306,7 +306,8 @@ public class WarehouseWaybillServiceImpl extends BaseServiceImpl<WarehouseWaybil
parcelNumberEntity.setCreateUser(distributionStockArticleEntity.getCreateUser()); parcelNumberEntity.setCreateUser(distributionStockArticleEntity.getCreateUser());
parcelNumberEntity.setUpdateUser(distributionStockArticleEntity.getCreateUser()); parcelNumberEntity.setUpdateUser(distributionStockArticleEntity.getCreateUser());
parcelNumberEntity.setCreateDept(distributionStockArticleEntity.getCreateDept()); parcelNumberEntity.setCreateDept(distributionStockArticleEntity.getCreateDept());
parcelNumberEntity.setHandQuantity(0); // 目前的解决方案
parcelNumberEntity.setHandQuantity(entity.getQuantity());
parcelNumberEntity.setQuantity(entity.getQuantity()); parcelNumberEntity.setQuantity(entity.getQuantity());
parcelNumberEntity.setDeliveryQuantity(0); parcelNumberEntity.setDeliveryQuantity(0);
parcelNumberEntity.setSigninQuantity(0); parcelNumberEntity.setSigninQuantity(0);

Loading…
Cancel
Save