This commit is contained in:
2026-08-21 10:56:51 +08:00
parent e17f03e596
commit dceec6cbed
4 changed files with 36 additions and 7 deletions
@@ -16,8 +16,8 @@ public interface OverseasQuoteMapper extends BaseMapper<OverseasQuote> {
@Select("""
SELECT COUNT(*) FROM ll_overseas_quote
WHERE warehouse_id=#{warehouseId} AND provider_name=#{providerName} AND currency=#{currency}
AND status='ACTIVE' AND id&lt;&gt;#{excludedId}
AND effective_start&lt;=#{effectiveEnd} AND effective_end&gt;=#{effectiveStart}
AND status='ACTIVE' AND id<>#{excludedId}
AND effective_start<=#{effectiveEnd} AND effective_end>=#{effectiveStart}
""")
int countActiveOverlap(@Param("warehouseId") long warehouseId,
@Param("providerName") String providerName,