fix BaseMapper.NOT_DELETE invalid

This commit is contained in:
Timi
2026-01-05 12:59:52 +08:00
parent 77f9feb1a1
commit 430921a16c

View File

@ -36,15 +36,15 @@ public interface BaseMapper<T, P> {
DESC
}
/** 当前时间戳毫秒 */
String UNIX_TIME = " FLOOR(UNIX_TIMESTAMP(NOW(3)) * 1000) ";
/** 未删除条件 */
String NOT_DELETE = " AND `deleted_at` IS NULL ";
String NOT_DELETE = " AND (`deleted_at` IS NULL OR " + UNIX_TIME + " < `deleted_at`) ";
/** 限制一条 */
String LIMIT_1 = " LIMIT 1";
/** 当前时间戳毫秒 */
String UNIX_TIME = " FLOOR(UNIX_TIMESTAMP(NOW(3)) * 1000) ";
/** 分页限制 */
String PAGE = NOT_DELETE + " LIMIT #{offset}, #{limit}";