给用户和租户的相关查询sql进行优化

This commit is contained in:
jishenghua
2024-12-09 00:37:31 +08:00
parent 411effc0a7
commit 328844c646
5 changed files with 22 additions and 14 deletions

View File

@@ -25,6 +25,7 @@
<bind name="bindRemark" value="'%'+remark+'%'"/>
and remark like #{bindRemark}
</if>
and ifnull(delete_flag,'0') !='1'
order by id desc
<if test="offset != null and rows != null">
limit #{offset},#{rows}
@@ -49,5 +50,6 @@
<bind name="bindRemark" value="'%'+remark+'%'"/>
and remark like #{bindRemark}
</if>
and ifnull(delete_flag,'0') !='1'
</select>
</mapper>