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 != '赋能案例'