mirror of
				https://github.com/continew-org/continew-admin.git
				synced 2025-10-31 22:57:17 +08:00 
			
		
		
		
	fix: 通知列表查询的数据不准确的问题
This commit is contained in:
		| @@ -10,7 +10,7 @@ | |||||||
|         WHERE (effective_time IS NULL OR NOW() > effective_time) |         WHERE (effective_time IS NULL OR NOW() > effective_time) | ||||||
|         AND (terminate_time IS NULL OR terminate_time > NOW()) |         AND (terminate_time IS NULL OR terminate_time > NOW()) | ||||||
|         <if test="userId != null"> |         <if test="userId != null"> | ||||||
|             AND (notice_scope = 1 OR (notice_scope = 2 AND JSON_EXTRACT(notice_users, "$[0]") = CAST(#{userId} AS CHAR))) |             AND (notice_scope = 1 OR (notice_scope = 2 AND JSON_CONTAINS(notice_users, CONCAT('"', #{userId}, '"')))) | ||||||
|         </if> |         </if> | ||||||
|         ORDER BY sort ASC, effective_time DESC |         ORDER BY sort ASC, effective_time DESC | ||||||
|         LIMIT 5 |         LIMIT 5 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 KAI
					KAI