src/main/resources/mapper/LocDetlMapper.xml
@@ -645,8 +645,6 @@ ) warn ON locd.matnr = warn.matnr WHERE DATEDIFF( DAY, create_time, GETDATE( ) ) > inventory_age_max OR count_anfme > inventory_max OR count_anfme < inventory_min ) t WHERE 1 = 1 @@ -694,17 +692,11 @@ ) warn ON locd.matnr = warn.matnr WHERE DATEDIFF( DAY, create_time, GETDATE( ) ) > inventory_age_max OR count_anfme > inventory_max OR count_anfme < inventory_min ) t WHERE 1 = 1 <include refid="selectAllWarningSql"></include> ) a </select>