Browse Source

预约新增库存品过滤无效库存品

single_db
汤建军 1 year ago
parent
commit
1623ac6026
  1. 2
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockListMapper.xml
  2. 2
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionDeliveryListServiceImpl.java

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

@ -452,7 +452,7 @@
FROM FROM
logpm_distribution_stock_list ldsl logpm_distribution_stock_list ldsl
<where> <where>
ldsl.service_type = #{par.serviceType} and ldsl.warehouse_id = #{par.warehouseId} and ldsl.is_deleted = 0 ldsl.service_type = #{par.serviceType} and ldsl.warehouse_id = #{par.warehouseId} and ldsl.is_deleted = 0 and (ldsl.quantity_stock - ldsl.quantity_occupied) > 0
<if test="par.incomingBatch != null and par.incomingBatch != ''"> <if test="par.incomingBatch != null and par.incomingBatch != ''">
and ldsl.incoming_batch like concat('%',#{par.incomingBatch},'%') and ldsl.incoming_batch like concat('%',#{par.incomingBatch},'%')
</if> </if>

2
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionDeliveryListServiceImpl.java

@ -6110,7 +6110,7 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib
for (String id : idArray) { for (String id : idArray) {
//查询对应配送单 //查询对应配送单
DistributionDeliveryListEntity deliveryListEntity = baseMapper.selectById(id);//配送单 DistributionDeliveryListEntity deliveryListEntity = baseMapper.selectById(Long.parseLong(id));//配送单
if (Objects.isNull(deliveryListEntity)) { if (Objects.isNull(deliveryListEntity)) {
log.warn("#########handleShangPeiData: 配送单信息不存在 deliveryListEntityId={}", id); log.warn("#########handleShangPeiData: 配送单信息不存在 deliveryListEntityId={}", id);
throw new CustomerException(403, "配送单信息不存在"); throw new CustomerException(403, "配送单信息不存在");

Loading…
Cancel
Save