From fc56d8af3c6abd55fb46ba84cca1575948c7ed68 Mon Sep 17 00:00:00 2001 From: Kurisu Date: Wed, 4 Jan 2023 17:09:09 +0800 Subject: [PATCH] feature(*): 查询的bug修复 --- fw-valhalla-dao/src/main/resources/mapper/CustomerMapper.xml | 88 ++++++++++++++++++++++++++++++++++++++++++++++------------------------------------------ 1 file changed, 46 insertions(+), 42 deletions(-) diff --git a/fw-valhalla-dao/src/main/resources/mapper/CustomerMapper.xml b/fw-valhalla-dao/src/main/resources/mapper/CustomerMapper.xml index cc4fd3d..d35bfa0 100644 --- a/fw-valhalla-dao/src/main/resources/mapper/CustomerMapper.xml +++ b/fw-valhalla-dao/src/main/resources/mapper/CustomerMapper.xml @@ -168,61 +168,65 @@ and ( - t1.adviser_id is not null - - - and t1.current_mileage >= #{condition.minMileage} + t1.adviser_id is not null and + + + + and t1.current_mileage >= #{condition.minMileage} + + + and t1.current_mileage <= #{condition.maxMileage} + - - and t1.current_mileage <= #{condition.maxMileage} - - - - - and t1.buy_date >= #{condition.minBuyDate} + + + and t1.buy_date >= #{condition.minBuyDate} + + + and t1.buy_date <= #{condition.maxBuyDate} + - - 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} + + ) -- libgit2 0.22.2