From ae71df9edcf5715dcaf548315fe8f30fdbb65ff0 Mon Sep 17 00:00:00 2001 From: mashuai Date: Fri, 8 Dec 2023 11:02:38 +0800 Subject: [PATCH] =?UTF-8?q?bigscreen=20=E6=B7=BB=E5=8A=A0=E9=80=BB?= =?UTF-8?q?=E8=BE=91=E5=88=A0=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/resources/mapper/BmCompanyInfoMapper.xml | 3 ++- .../src/main/resources/mapper/MaDevInfoMapper.xml | 14 ++++++++------ 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/zlpt-modules/zlpt-bigScreen/src/main/resources/mapper/BmCompanyInfoMapper.xml b/zlpt-modules/zlpt-bigScreen/src/main/resources/mapper/BmCompanyInfoMapper.xml index 817bb61..e102a7d 100644 --- a/zlpt-modules/zlpt-bigScreen/src/main/resources/mapper/BmCompanyInfoMapper.xml +++ b/zlpt-modules/zlpt-bigScreen/src/main/resources/mapper/BmCompanyInfoMapper.xml @@ -23,7 +23,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" JOIN bm_company_info c ON m.own_co = c.company_id JOIN gps_real_info g ON m.gps_code = g.gps_code WHERE - m.ma_status IN ('在租', '自有', '待租') + m.ma_status IN ('在租', '自有', '待租') and m.is_active = '1' GROUP BY c.company_ltd, m.ma_status, g.lon, g.lat,maId @@ -43,6 +43,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" and md.ma_id = #{maId} + and md.is_active = '1' \ No newline at end of file diff --git a/zlpt-modules/zlpt-bigScreen/src/main/resources/mapper/MaDevInfoMapper.xml b/zlpt-modules/zlpt-bigScreen/src/main/resources/mapper/MaDevInfoMapper.xml index 67fd6a1..2e61017 100644 --- a/zlpt-modules/zlpt-bigScreen/src/main/resources/mapper/MaDevInfoMapper.xml +++ b/zlpt-modules/zlpt-bigScreen/src/main/resources/mapper/MaDevInfoMapper.xml @@ -9,7 +9,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" SELECT bc.company_ltd AS coType, COUNT(*) AS Count FROM ma_dev_info md JOIN bm_company_info bc ON md.own_co = bc.company_id - WHERE md.ma_status = '自有' + WHERE md.ma_status = '自有' and md.is_active = '1' GROUP BY bc.company_ltd @@ -19,26 +19,27 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" SELECT mti.type_name as ownCo, COUNT(*) as count FROM ma_type_info mti INNER JOIN ma_dev_info mdi ON mti.type_id = mdi.type_id - WHERE mdi.ma_status = '在租' + WHERE mdi.ma_status = '在租' and mdi.is_active = '1' GROUP BY mti.type_name ORDER BY count DESC @@ -47,6 +48,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" FROM ma_hot_search hs LEFT JOIN ma_dev_info md ON hs.ma_id = md.ma_id LEFT JOIN bm_company_info bc ON md.own_co = bc.company_id + WHERE md.is_active = '1' GROUP BY bc.company_name ORDER BY count DESC @@ -60,7 +62,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" FROM ma_dev_info md LEFT JOIN ma_type_info mt ON md.type_id = mt.type_id LEFT JOIN ma_order_details mo ON md.ma_id = mo.ma_id - where md.ma_id = #{maId} + where md.ma_id = #{maId} and md.is_active = '1' GROUP BY maName,maStatus,needCompany,planStartTime,duration