This commit is contained in:
parent
51ab0f7c78
commit
ca0bb90e1f
|
@ -133,10 +133,10 @@
|
|||
AND tdr.type != '赋能案例'
|
||||
</if>
|
||||
<if test="dto.type != null and dto.type != ''">
|
||||
AND MATCH (tdr.type) AGAINST ( #{dto.type} IN NATURAL LANGUAGE MODE)
|
||||
AND MATCH (tdr.type) AGAINST ( #{dto.type} IN BOOLEAN MODE)
|
||||
</if>
|
||||
<if test="dto.name != null and dto.name != ''">
|
||||
AND MATCH (tdr.name) AGAINST ( #{dto.name} IN NATURAL LANGUAGE MODE)
|
||||
AND MATCH (tdr.name) AGAINST ( #{dto.name} IN BOOLEAN MODE)
|
||||
</if>
|
||||
<if test="dto.districtId != null and dto.districtId != ''">
|
||||
AND tdr.district_id = #{dto.districtId}
|
||||
|
@ -170,7 +170,7 @@
|
|||
<foreach collection="dto.infoList" item="item" separator="union all">
|
||||
SELECT data_resource_id FROM tb_data_attr
|
||||
WHERE attr_type = #{item.attrType}
|
||||
AND MATCH ( attr_value) AGAINST ( #{item.attrValue} IN NATURAL LANGUAGE MODE)
|
||||
AND MATCH ( attr_value) AGAINST ( #{item.attrValue} IN BOOLEAN MODE)
|
||||
AND del_flag = 0
|
||||
</foreach>) tb
|
||||
GROUP BY tb.data_resource_id
|
||||
|
@ -248,11 +248,11 @@
|
|||
AND tdr.del_flag = 0
|
||||
<if test="type != null and type != ''">
|
||||
<!-- AND tdr.type LIKE CONCAT('%',#{type},'%') -->
|
||||
AND MATCH (tdr.type) AGAINST ( #{type} IN NATURAL LANGUAGE MODE)
|
||||
AND MATCH (tdr.type) AGAINST ( #{type} IN BOOLEAN MODE)
|
||||
</if>
|
||||
<if test="name != null and name != ''">
|
||||
<!--AND tdr.name LIKE CONCAT('%',#{name},'%') -->
|
||||
AND MATCH (tdr.name) AGAINST ( #{name} IN NATURAL LANGUAGE MODE)
|
||||
AND MATCH (tdr.name) AGAINST ( #{name} IN BOOLEAN MODE)
|
||||
</if>
|
||||
ORDER BY ${orderFiled} ${orderType}
|
||||
LIMIT ${pageNum}, ${pageSize}
|
||||
|
@ -399,7 +399,7 @@
|
|||
AND tdr.type != '赋能案例'
|
||||
</if>
|
||||
<if test="dto.name != null and dto.name != ''">
|
||||
AND MATCH (tdr.name) AGAINST ( #{dto.name} IN NATURAL LANGUAGE MODE)
|
||||
AND MATCH (tdr.name) AGAINST ( #{dto.name} IN BOOLEAN MODE)
|
||||
</if>
|
||||
<if test="dto.type != null and dto.type != '' ">
|
||||
AND tdr.type = #{dto.type}
|
||||
|
@ -449,7 +449,7 @@
|
|||
1 = 1
|
||||
AND tdr.del_flag = 0
|
||||
<if test="dto.name != null and dto.name != ''">
|
||||
AND MATCH (tdr.name) AGAINST ( #{dto.name} IN NATURAL LANGUAGE MODE)
|
||||
AND MATCH (tdr.name) AGAINST ( #{dto.name} IN BOOLEAN MODE)
|
||||
</if>
|
||||
<if test="dto.type != null and dto.type != ''">
|
||||
AND tdr.type = #{dto.type}
|
||||
|
@ -481,8 +481,7 @@
|
|||
1 = 1
|
||||
AND tdr.del_flag = 0
|
||||
<if test="dto.name != null and dto.name != ''">
|
||||
AND MATCH (tdr.name) AGAINST ( #{dto.name} IN NATURAL LANGUAGE MODE)
|
||||
<!--AND tdr.name LIKE CONCAT('%',#{dto.name},'%') -->
|
||||
AND MATCH (tdr.name) AGAINST ( #{dto.name} IN BOOLEAN MODE)
|
||||
</if>
|
||||
<if test="dto.type != null and dto.type != ''">
|
||||
AND tdr.type = #{dto.type}
|
||||
|
@ -1051,7 +1050,7 @@
|
|||
AND tdr.del_flag = 0
|
||||
AND tda.del_flag = 0
|
||||
AND tdr.id = tda.data_resource_id
|
||||
AND MATCH (attr_value) AGAINST ( #{type} IN NATURAL LANGUAGE MODE)
|
||||
AND MATCH (attr_value) AGAINST ( #{type} IN BOOLEAN MODE)
|
||||
</select>
|
||||
|
||||
<select id="selectAppAreaCountList" resultType="java.util.Map">
|
||||
|
|
Loading…
Reference in New Issue