From 9e0aad737ce7d97f6e94337038377228987053f3 Mon Sep 17 00:00:00 2001 From: yanyizhou <2311759275@qq.com> Date: Wed, 18 Aug 2021 13:46:45 +0800 Subject: [PATCH] =?UTF-8?q?=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/SarLawsDetailedListServiceImpl.java | 38 ++++++++++--------- 1 file changed, 21 insertions(+), 17 deletions(-) diff --git a/adc-da-slrs/src/main/java/com/adc/da/slrs/sarLawsDetailedList/service/impl/SarLawsDetailedListServiceImpl.java b/adc-da-slrs/src/main/java/com/adc/da/slrs/sarLawsDetailedList/service/impl/SarLawsDetailedListServiceImpl.java index eb6eeb92..63c916fd 100644 --- a/adc-da-slrs/src/main/java/com/adc/da/slrs/sarLawsDetailedList/service/impl/SarLawsDetailedListServiceImpl.java +++ b/adc-da-slrs/src/main/java/com/adc/da/slrs/sarLawsDetailedList/service/impl/SarLawsDetailedListServiceImpl.java @@ -62,7 +62,7 @@ public class SarLawsDetailedListServiceImpl extends ServiceImpl wrapper = new QueryWrapper<>(); - wrapper.select("DISTINCT country_area"); + wrapper.select("DISTINCT country_area,car_type"); List sarLawsDetailedLists = sarLawsDetailedListDao.selectList(wrapper); //多选是否可以添加的标识,true表示可以添加,false表示不许添加 boolean multiAddFlag = true; @@ -71,8 +71,8 @@ public class SarLawsDetailedListServiceImpl extends ServiceImpl AllSelectD(Integer page, Integer pageSize, String sortKey, - String countryArea, String projectName, + String countryArea, String carType, String detailedList, String detailedListName) { QueryWrapper wrapper = new QueryWrapper<>(); if ("1".equals(sortKey)) { wrapper.like(StringUtils.isNotEmpty(countryArea), "country_area", countryArea). like(StringUtils.isNotEmpty(detailedListName), "detailed_list_name", detailedListName); } else if ("2".equals(sortKey)) { - wrapper.like(StringUtils.isNotEmpty(projectName), "project_name", projectName). + wrapper.like(StringUtils.isNotEmpty(carType), "car_type", carType). like(StringUtils.isNotEmpty(detailedListName), "detailed_list_name", detailedListName); } else if ("3".equals(sortKey)) { @@ -475,9 +479,9 @@ public class SarLawsDetailedListServiceImpl extends ServiceImpl