From 088559f089397956bbf07b935884610b096d32fc Mon Sep 17 00:00:00 2001 From: wangliwen Date: Wed, 26 Oct 2022 11:23:21 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9F=A5=E8=AF=86=E5=BA=93=E6=95=B0=E7=9B=AE?= =?UTF-8?q?=E4=B8=8D=E4=B8=80=E8=87=B4=E7=9A=84=E9=97=AE=E9=A2=98=E5=A4=84?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/resources/mapper/resource/ResourceDao.xml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/renren-admin/src/main/resources/mapper/resource/ResourceDao.xml b/renren-admin/src/main/resources/mapper/resource/ResourceDao.xml index d1638dec..dc19d09f 100644 --- a/renren-admin/src/main/resources/mapper/resource/ResourceDao.xml +++ b/renren-admin/src/main/resources/mapper/resource/ResourceDao.xml @@ -282,7 +282,7 @@ AND tdr.type != '知识库' AND tdr.type != '赋能案例' - AND MATCH (tdr.type) AGAINST ( #{type} IN BOOLEAN MODE) + AND tdr.type = #{type} AND MATCH (tdr.name) AGAINST ( #{name} IN BOOLEAN MODE) @@ -451,7 +451,7 @@ AND tdr.name LIKE CONCAT( '%', #{dto.name}, '%' ) - AND MATCH (tdr.type) AGAINST ( #{dto.type} IN BOOLEAN MODE) + AND tdr.type = #{dto.type} @@ -511,7 +511,7 @@ AND MATCH (tdr.name) AGAINST ( #{dto.name} IN BOOLEAN MODE) - AND MATCH (tdr.type) AGAINST ( #{dto.type} IN BOOLEAN MODE) + AND tdr.type = #{dto.type} AND tdr.district_id = #{dto.districtId} @@ -543,7 +543,7 @@ AND MATCH (tdr.name) AGAINST ( #{dto.name} IN BOOLEAN MODE) - AND MATCH (tdr.type) AGAINST ( #{dto.type} IN BOOLEAN MODE) + AND tdr.type = #{dto.type} AND tdr.district_id = #{dto.districtId} @@ -663,7 +663,7 @@ sys_dept sd LEFT JOIN ( SELECT dept_id, COUNT( id ) AS "deptCount" FROM tb_data_resource WHERE 1 = 1 AND del_flag = 0 - AND MATCH (type) AGAINST ( #{resourceType} IN BOOLEAN MODE) + AND type = #{resourceType} GROUP BY dept_id ) tdr ON sd.id = tdr.dept_id ) temp1 @@ -704,7 +704,7 @@ LEFT JOIN ( SELECT dept_id, COUNT( id ) AS "deptCount" FROM tb_data_resource WHERE 1 = 1 AND del_flag = 0 - AND MATCH (type) AGAINST ( #{resourceType} IN BOOLEAN MODE) + AND type = #{resourceType} GROUP BY dept_id ) tdr ON sd.id = tdr.dept_id LEFT JOIN sys_region sr ON sd.district = sr.id @@ -1076,7 +1076,7 @@ FROM tb_data_resource WHERE 1 = 1 AND del_flag = 0 - AND MATCH (type) AGAINST ( #{type} IN BOOLEAN MODE) + AND type = #{type} AND type != '赋能案例'