|
@@ -105,6 +105,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="projectId != null and projectId != ''">
|
|
<if test="projectId != null and projectId != ''">
|
|
|
AND sp.project_id = #{projectId}
|
|
AND sp.project_id = #{projectId}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="name != null and name != ''">
|
|
|
|
|
+ AND (bm.name like concat('%',#{name},'%') or bm.description like concat('%',#{name},'%'))
|
|
|
|
|
+ </if>
|
|
|
</where>
|
|
</where>
|
|
|
ORDER BY sort IS NULL, sort ASC, bm.update_time DESC, bm.create_time DESC
|
|
ORDER BY sort IS NULL, sort ASC, bm.update_time DESC, bm.create_time DESC
|
|
|
</if>
|
|
</if>
|
|
@@ -155,6 +158,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="projectId != null and projectId != ''">
|
|
<if test="projectId != null and projectId != ''">
|
|
|
AND sp.project_id = #{projectId}
|
|
AND sp.project_id = #{projectId}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="name != null and name != ''">
|
|
|
|
|
+ AND (bm.name like concat('%',#{name},'%') or bm.description like concat('%',#{name},'%'))
|
|
|
|
|
+ </if>
|
|
|
<if test="projectId == null or projectId == ''">
|
|
<if test="projectId == null or projectId == ''">
|
|
|
<!-- 用户所属项目下以外的应用 -->
|
|
<!-- 用户所属项目下以外的应用 -->
|
|
|
UNION
|
|
UNION
|
|
@@ -194,6 +200,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="typeId != null and typeId != ''">
|
|
<if test="typeId != null and typeId != ''">
|
|
|
AND ba.type_id = #{typeId}
|
|
AND ba.type_id = #{typeId}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="name != null and name != ''">
|
|
|
|
|
+ AND (ba.name like concat('%',#{name},'%') or ba.description like concat('%',#{name},'%'))
|
|
|
|
|
+ </if>
|
|
|
<!-- 待审核的应用 -->
|
|
<!-- 待审核的应用 -->
|
|
|
UNION
|
|
UNION
|
|
|
SELECT DISTINCT
|
|
SELECT DISTINCT
|
|
@@ -239,6 +248,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="typeId != null and typeId != ''">
|
|
<if test="typeId != null and typeId != ''">
|
|
|
AND bl.type_id = #{typeId}
|
|
AND bl.type_id = #{typeId}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="name != null and name != ''">
|
|
|
|
|
+ AND (bl.name like concat('%',#{name},'%') or bl.description like concat('%',#{name},'%'))
|
|
|
|
|
+ </if>
|
|
|
</if>
|
|
</if>
|
|
|
<!-- 私有应用 -->
|
|
<!-- 私有应用 -->
|
|
|
UNION
|
|
UNION
|
|
@@ -267,6 +279,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
and ba.create_by= #{params.userId}
|
|
and ba.create_by= #{params.userId}
|
|
|
<if test="typeId != null and typeId != ''">
|
|
<if test="typeId != null and typeId != ''">
|
|
|
AND ba.type_id = #{typeId}
|
|
AND ba.type_id = #{typeId}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="name != null and name != ''">
|
|
|
|
|
+ AND (ba.name like concat('%',#{name},'%') or ba.description like concat('%',#{name},'%'))
|
|
|
</if>
|
|
</if>
|
|
|
<!-- 部门项目应用 -->
|
|
<!-- 部门项目应用 -->
|
|
|
UNION
|
|
UNION
|
|
@@ -310,6 +325,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="typeId != null and typeId != ''">
|
|
<if test="typeId != null and typeId != ''">
|
|
|
AND ba.type_id = #{typeId}
|
|
AND ba.type_id = #{typeId}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="name != null and name != ''">
|
|
|
|
|
+ AND (ba.name like concat('%',#{name},'%') or ba.description like concat('%',#{name},'%'))
|
|
|
|
|
+ </if>
|
|
|
<!-- 数据范围过滤 -->
|
|
<!-- 数据范围过滤 -->
|
|
|
${params.dataScope}
|
|
${params.dataScope}
|
|
|
<if test="addOrderBy == null or addOrderBy == 'Y'">
|
|
<if test="addOrderBy == null or addOrderBy == 'Y'">
|