管理员日志条件查询

This commit is contained in:
wsw
2023-07-29 17:10:45 +08:00
parent c6eef3477e
commit 935ee6a500
3 changed files with 32 additions and 12 deletions

View File

@@ -43,6 +43,12 @@
<if test="opt != null">
AND `admin_logs`.`opt` = #{opt}
</if>
<if test="startTime != null and startTime != ''">
AND `admin_logs`.`created_at` &gt;= #{startTime}
</if>
<if test="endTime != null and endTime != ''">
AND `admin_logs`.`created_at` &lt;= #{endTime}
</if>
</where>
<if test="sortAlgo == 'asc'">
@@ -84,6 +90,12 @@
<if test="opt != null">
AND `admin_logs`.`opt` = #{opt}
</if>
<if test="startTime != null and startTime != ''">
AND `admin_logs`.`created_at` &gt;= #{startTime}
</if>
<if test="endTime != null and endTime != ''">
AND `admin_logs`.`created_at` &lt;= #{endTime}
</if>
</where>
</select>
</mapper>