知识库数目不一致的问题处理
This commit is contained in:
parent
e836bcb271
commit
088559f089
|
@ -282,7 +282,7 @@
|
||||||
AND tdr.type != '知识库'
|
AND tdr.type != '知识库'
|
||||||
AND tdr.type != '赋能案例'
|
AND tdr.type != '赋能案例'
|
||||||
<if test="type != null and type != ''">
|
<if test="type != null and type != ''">
|
||||||
AND MATCH (tdr.type) AGAINST ( #{type} IN BOOLEAN MODE)
|
AND tdr.type = #{type}
|
||||||
</if>
|
</if>
|
||||||
<if test="name != null and name != ''">
|
<if test="name != null and name != ''">
|
||||||
AND MATCH (tdr.name) AGAINST ( #{name} IN BOOLEAN MODE)
|
AND MATCH (tdr.name) AGAINST ( #{name} IN BOOLEAN MODE)
|
||||||
|
@ -451,7 +451,7 @@
|
||||||
AND tdr.name LIKE CONCAT( '%', #{dto.name}, '%' )
|
AND tdr.name LIKE CONCAT( '%', #{dto.name}, '%' )
|
||||||
</if>
|
</if>
|
||||||
<if test="dto.type != null and dto.type != '' ">
|
<if test="dto.type != null and dto.type != '' ">
|
||||||
AND MATCH (tdr.type) AGAINST ( #{dto.type} IN BOOLEAN MODE)
|
AND tdr.type = #{dto.type}
|
||||||
</if>
|
</if>
|
||||||
|
|
||||||
|
|
||||||
|
@ -511,7 +511,7 @@
|
||||||
AND MATCH (tdr.name) AGAINST ( #{dto.name} IN BOOLEAN MODE)
|
AND MATCH (tdr.name) AGAINST ( #{dto.name} IN BOOLEAN MODE)
|
||||||
</if>
|
</if>
|
||||||
<if test="dto.type != null and dto.type != ''">
|
<if test="dto.type != null and dto.type != ''">
|
||||||
AND MATCH (tdr.type) AGAINST ( #{dto.type} IN BOOLEAN MODE)
|
AND tdr.type = #{dto.type}
|
||||||
</if>
|
</if>
|
||||||
<if test="dto.districtId != null and dto.districtId != ''">
|
<if test="dto.districtId != null and dto.districtId != ''">
|
||||||
AND tdr.district_id = #{dto.districtId}
|
AND tdr.district_id = #{dto.districtId}
|
||||||
|
@ -543,7 +543,7 @@
|
||||||
AND MATCH (tdr.name) AGAINST ( #{dto.name} IN BOOLEAN MODE)
|
AND MATCH (tdr.name) AGAINST ( #{dto.name} IN BOOLEAN MODE)
|
||||||
</if>
|
</if>
|
||||||
<if test="dto.type != null and dto.type != ''">
|
<if test="dto.type != null and dto.type != ''">
|
||||||
AND MATCH (tdr.type) AGAINST ( #{dto.type} IN BOOLEAN MODE)
|
AND tdr.type = #{dto.type}
|
||||||
</if>
|
</if>
|
||||||
<if test="dto.districtId != null and dto.districtId != ''">
|
<if test="dto.districtId != null and dto.districtId != ''">
|
||||||
AND tdr.district_id = #{dto.districtId}
|
AND tdr.district_id = #{dto.districtId}
|
||||||
|
@ -663,7 +663,7 @@
|
||||||
sys_dept sd
|
sys_dept sd
|
||||||
LEFT JOIN ( SELECT dept_id, COUNT( id ) AS "deptCount" FROM tb_data_resource WHERE 1 = 1 AND del_flag = 0
|
LEFT JOIN ( SELECT dept_id, COUNT( id ) AS "deptCount" FROM tb_data_resource WHERE 1 = 1 AND del_flag = 0
|
||||||
<if test="resourceType != null and resourceType != ''">
|
<if test="resourceType != null and resourceType != ''">
|
||||||
AND MATCH (type) AGAINST ( #{resourceType} IN BOOLEAN MODE)
|
AND type = #{resourceType}
|
||||||
</if>
|
</if>
|
||||||
GROUP BY dept_id ) tdr ON sd.id = tdr.dept_id
|
GROUP BY dept_id ) tdr ON sd.id = tdr.dept_id
|
||||||
) temp1
|
) temp1
|
||||||
|
@ -704,7 +704,7 @@
|
||||||
LEFT JOIN ( SELECT dept_id, COUNT( id ) AS "deptCount" FROM tb_data_resource
|
LEFT JOIN ( SELECT dept_id, COUNT( id ) AS "deptCount" FROM tb_data_resource
|
||||||
WHERE 1 = 1 AND del_flag = 0
|
WHERE 1 = 1 AND del_flag = 0
|
||||||
<if test="resourceType != null and resourceType != ''">
|
<if test="resourceType != null and resourceType != ''">
|
||||||
AND MATCH (type) AGAINST ( #{resourceType} IN BOOLEAN MODE)
|
AND type = #{resourceType}
|
||||||
</if>
|
</if>
|
||||||
GROUP BY dept_id ) tdr ON sd.id = tdr.dept_id
|
GROUP BY dept_id ) tdr ON sd.id = tdr.dept_id
|
||||||
LEFT JOIN sys_region sr ON sd.district = sr.id
|
LEFT JOIN sys_region sr ON sd.district = sr.id
|
||||||
|
@ -1076,7 +1076,7 @@
|
||||||
FROM tb_data_resource
|
FROM tb_data_resource
|
||||||
WHERE 1 = 1
|
WHERE 1 = 1
|
||||||
AND del_flag = 0
|
AND del_flag = 0
|
||||||
AND MATCH (type) AGAINST ( #{type} IN BOOLEAN MODE)
|
AND type = #{type}
|
||||||
AND type != '赋能案例'
|
AND type != '赋能案例'
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue