给租户查询接口增加备注查询字段

This commit is contained in:
季圣华
2023-02-09 20:55:07 +08:00
parent dcbafd2f2a
commit 16e38703c7
4 changed files with 19 additions and 7 deletions

View File

@@ -21,6 +21,10 @@
<if test="enabled != null and enabled != ''">
and enabled = #{enabled}
</if>
<if test="remark != null">
<bind name="bindRemark" value="'%'+remark+'%'"/>
and remark like #{bindRemark}
</if>
order by id desc
<if test="offset != null and rows != null">
limit #{offset},#{rows}
@@ -41,5 +45,9 @@
<if test="enabled != null and enabled != ''">
and enabled = #{enabled}
</if>
<if test="remark != null">
<bind name="bindRemark" value="'%'+remark+'%'"/>
and remark like #{bindRemark}
</if>
</select>
</mapper>