Browse Source

添加配送,签订数据查询

single_db
caoyizhong 1 year ago
parent
commit
75687ddfb5
  1. 7
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockArticleMapper.java
  2. 15
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockArticleMapper.xml
  3. 3
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionStockArticleServiceImpl.java

7
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockArticleMapper.java

@ -150,4 +150,11 @@ public interface DistributionStockArticleMapper extends BaseMapper<DistributionS
* @return
*/
List<DistributionParcelListEntity> selectOrderPackageListByMap(@Param("param") Map<String, Object> packageDTO,@Param("warehouseId") Long id);
/**
* 查询配送签收数量
* @param id
* @return
*/
DistributionStockArticleEntity getStockArticleQueryQuantity(@Param("id")Long id);
}

15
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockArticleMapper.xml

@ -888,6 +888,21 @@
where ldsa.is_zero = 1
and ldsa.warehouse_id = #{warehouseId}
</select>
<select id="getStockArticleQueryQuantity" resultType="com.logpm.distribution.entity.DistributionStockArticleEntity">
select sum((
select COUNT(ldl.id)
from logpm_distribution_loadscan ldl
where ldl.package_id = ldpl.id and ldl.signfor_state = 2
) ) signinQuantity,
sum((
select COUNT(ldl.id)
from logpm_distribution_loadscan ldl
where ldl.package_id = ldpl.id and ldl.signfor_state = 1
)) deliveryQuantity
from logpm_distribution_parcel_list ldpl
where ldpl.stock_article_id = #{id}
</select>
<select id="selectOrderPackageListByMap"
resultType="com.logpm.distribution.entity.DistributionParcelListEntity">
SELECT

3
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionStockArticleServiceImpl.java

@ -847,6 +847,9 @@ public class DistributionStockArticleServiceImpl extends BaseServiceImpl<Distrib
}
IPage<DistributionStockArticleEntity> distributionStockArticleEntityIPage = baseMapper.pageListOwe(page, stockArticleEntity);
distributionStockArticleEntityIPage.getRecords().stream().forEach(i ->{
DistributionStockArticleEntity distributionStockArticleEntity = baseMapper.getStockArticleQueryQuantity(i.getId());
i.setDeliveryQuantity(distributionStockArticleEntity.getDeliveryQuantity());
i.setSigninQuantity(distributionStockArticleEntity.getSigninQuantity());
if(i.getIsZero().equals("1")){
//查询托盘
WarehouseTrayGoodsEntity warehouseTrayGoods = new WarehouseTrayGoodsEntity();

Loading…
Cancel
Save