|
@@ -48,14 +48,16 @@
|
|
<if test="search != null">
|
|
<if test="search != null">
|
|
and title_ like '%' #{search} '%'
|
|
and title_ like '%' #{search} '%'
|
|
</if>
|
|
</if>
|
|
- <choose>
|
|
|
|
- <when test="memo != null and memo != ''">
|
|
|
|
- and memo_ = #{memo}
|
|
|
|
- </when>
|
|
|
|
- <otherwise>
|
|
|
|
- and (memo_ is null or memo_ = '')
|
|
|
|
- </otherwise>
|
|
|
|
- </choose>
|
|
|
|
|
|
+ <if test="clientName != 'manage'">
|
|
|
|
+ <choose>
|
|
|
|
+ <when test="memo != null and memo != ''">
|
|
|
|
+ and memo_ = #{memo}
|
|
|
|
+ </when>
|
|
|
|
+ <otherwise>
|
|
|
|
+ and (memo_ is null or memo_ = '')
|
|
|
|
+ </otherwise>
|
|
|
|
+ </choose>
|
|
|
|
+ </if>
|
|
</where>
|
|
</where>
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
@@ -187,6 +189,7 @@
|
|
<if test="tenantId != null">
|
|
<if test="tenantId != null">
|
|
and tenant_id_ = #{tenantId}
|
|
and tenant_id_ = #{tenantId}
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="clientName != 'manage'">
|
|
<choose>
|
|
<choose>
|
|
<when test="memo != null and memo != ''">
|
|
<when test="memo != null and memo != ''">
|
|
and memo_ = #{memo}
|
|
and memo_ = #{memo}
|
|
@@ -195,6 +198,7 @@
|
|
and (memo_ is null or memo_ = '')
|
|
and (memo_ is null or memo_ = '')
|
|
</otherwise>
|
|
</otherwise>
|
|
</choose>
|
|
</choose>
|
|
|
|
+ </if>
|
|
order by status_ desc,order_ desc,update_time_ desc
|
|
order by status_ desc,order_ desc,update_time_ desc
|
|
<include refid="global.limit" />
|
|
<include refid="global.limit" />
|
|
</select>
|
|
</select>
|
|
@@ -221,6 +225,7 @@
|
|
<if test="tenantId != null">
|
|
<if test="tenantId != null">
|
|
and tenant_id_ = #{tenantId}
|
|
and tenant_id_ = #{tenantId}
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="clientName != 'manage'">
|
|
<choose>
|
|
<choose>
|
|
<when test="memo != null and memo != ''">
|
|
<when test="memo != null and memo != ''">
|
|
and memo_ = #{memo}
|
|
and memo_ = #{memo}
|
|
@@ -229,5 +234,6 @@
|
|
and (memo_ is null or memo_ = '')
|
|
and (memo_ is null or memo_ = '')
|
|
</otherwise>
|
|
</otherwise>
|
|
</choose>
|
|
</choose>
|
|
|
|
+ </if>
|
|
</select>
|
|
</select>
|
|
</mapper>
|
|
</mapper>
|