Browse Source

fix:修复备货多个库存品的问题 没有带上删除条件

pull/4/head
pref_mail@163.com 10 months ago
parent
commit
138b043342
  1. 5
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockListMapper.xml
  2. 3
      blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/service/impl/WarehouseRetentionRecordServiceImpl.java

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

@ -531,7 +531,10 @@
order_package_code = #{orderPackageCode} order_package_code = #{orderPackageCode}
AND conditions = 2 AND conditions = 2
) t ) t
LEFT JOIN logpm_distribution_stock_list ldsl ON ldsl.incoming_batch = t.order_code and ldsl.cargo_number=t.material_code LEFT JOIN logpm_distribution_stock_list ldsl ON ldsl.incoming_batch = t.order_code
where
ldsl.cargo_number=t.material_code
and ldsl.is_deleted=0
</select> </select>
<select id="getMerchantStockList" resultType="com.logpm.distribution.entity.DistributionStockListEntity"> <select id="getMerchantStockList" resultType="com.logpm.distribution.entity.DistributionStockListEntity">
SELECT * FROM logpm_distribution_stock_list WHERE tenant_id = #{tenantId} AND cargo_number= #{materielCode} SELECT * FROM logpm_distribution_stock_list WHERE tenant_id = #{tenantId} AND cargo_number= #{materielCode}

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

@ -315,6 +315,9 @@ public class WarehouseRetentionRecordServiceImpl extends BaseServiceImpl<Warehou
//零担 //零担
saveFlah.set(distributionDeliveryListClient.retentionDeliveryReservationZeroPackage(rs.getDeliveryId(), rs.getReservationId(), rs.getOrderPackageId(),rs.getRetentionQuantity(),rs.getOrderId())); saveFlah.set(distributionDeliveryListClient.retentionDeliveryReservationZeroPackage(rs.getDeliveryId(), rs.getReservationId(), rs.getOrderPackageId(),rs.getRetentionQuantity(),rs.getOrderId()));
break; break;
default:
log.error(">>>>> rs.getConditions()={}",rs.getConditions());
} }
} }
}); });

Loading…
Cancel
Save