|
@@ -32,7 +32,9 @@
|
|
|
t.status,
|
|
|
t.remark
|
|
|
from dict_common_type t
|
|
|
- <include refid="getPageWhere"/>
|
|
|
+ <where>
|
|
|
+ <include refid="getPageWhere"/>
|
|
|
+ </where>
|
|
|
</sql>
|
|
|
|
|
|
<sql id="type2">
|
|
@@ -44,21 +46,21 @@
|
|
|
t.status,
|
|
|
t.remark
|
|
|
from dict_tenant_type t
|
|
|
- <include refid="getPageWhere"/>
|
|
|
- <if test="dto.tenantId neq null and dto.tenantId neq ''">
|
|
|
- and t.tenantId=#{dto.tenantId}
|
|
|
- </if>
|
|
|
- </sql>
|
|
|
-
|
|
|
- <sql id="getPageWhere">
|
|
|
<where>
|
|
|
- <if test="dto.status neq null and dto.status neq ''">
|
|
|
- and t.status = #{dto.status}
|
|
|
- </if>
|
|
|
- <if test="dto.keyword neq null and dto.keyword neq ''">
|
|
|
- and (instr(t.name,#{dto.keyword}) or instr(t.code,#{dto.keyword}))
|
|
|
+ <include refid="getPageWhere"/>
|
|
|
+ <if test="dto.tenantId neq null and dto.tenantId neq ''">
|
|
|
+ and t.tenant_id=#{dto.tenantId}
|
|
|
</if>
|
|
|
</where>
|
|
|
</sql>
|
|
|
|
|
|
+ <sql id="getPageWhere">
|
|
|
+ <if test="dto.status neq null and dto.status neq ''">
|
|
|
+ and t.status = #{dto.status}
|
|
|
+ </if>
|
|
|
+ <if test="dto.keyword neq null and dto.keyword neq ''">
|
|
|
+ and (instr(t.name,#{dto.keyword}) or instr(t.code,#{dto.keyword}))
|
|
|
+ </if>
|
|
|
+ </sql>
|
|
|
+
|
|
|
</mapper>
|