diff --git a/fw-valhalla-dao/src/main/resources/mapper/CustomerMapper.xml b/fw-valhalla-dao/src/main/resources/mapper/CustomerMapper.xml index d35bfa0..11e7e13 100644 --- a/fw-valhalla-dao/src/main/resources/mapper/CustomerMapper.xml +++ b/fw-valhalla-dao/src/main/resources/mapper/CustomerMapper.xml @@ -264,60 +264,65 @@ and ( - t1.adviser_id is not null - - - and t1.current_mileage >= #{condition.minMileage} - - - and t1.current_mileage <= #{condition.maxMileage} - - - - - and t1.buy_date >= #{condition.minBuyDate} + t1.adviser_id is not null and + + + + and t1.current_mileage >= #{condition.minMileage} + + + and t1.current_mileage <= #{condition.maxMileage} + - - and t1.buy_date <= #{condition.maxBuyDate} + + + + and t1.buy_date >= #{condition.minBuyDate} + + + and t1.buy_date <= #{condition.maxBuyDate} + - - - and t1.cus_level = #{condition.level} - + + and t1.cus_level = #{condition.level} + + ) and ( - t1.adviser_id is not null - - or ( - t1.current_mileage is not null - - and t1.current_mileage >= #{condition.minMileage} - - - and t1.current_mileage <= #{condition.maxMileage} + t1.adviser_id is not null and + + + or ( + t1.current_mileage is not null + + and t1.current_mileage >= #{condition.minMileage} + + + and t1.current_mileage <= #{condition.maxMileage} + + ) - ) - - - or ( - t1.buy_date is not null - - and t1.buy_date >= #{condition.minBuyDate} - - - and t1.buy_date <= #{condition.maxBuyDate} + + or ( + t1.buy_date is not null + + and t1.buy_date >= #{condition.minBuyDate} + + + and t1.buy_date <= #{condition.maxBuyDate} + + ) - ) - - - or t1.cus_level = #{condition.level} - + + or t1.cus_level = #{condition.level} + + )