feat(system): 添加用户公告阅读状态查询功能并优化邮箱验证码缓存键生成- 在UserNoticeMapper.xml中新增isRead查询条件,支持按阅读状态筛选公告
- 修改UserServiceImpl.java中的邮箱验证码缓存键生成方式,使用StrUtil.format替代字符串拼接,提高代码可读性和维护性
This commit is contained in:
@@ -21,6 +21,9 @@
|
||||
<if test="queryParams.title != null and queryParams.title != ''">
|
||||
AND t2.title LIKE CONCAT('%',#{queryParams.title},'%')
|
||||
</if>
|
||||
<if test="queryParams.isRead != null">
|
||||
AND t1.is_read = #{queryParams.isRead}
|
||||
</if>
|
||||
ORDER BY
|
||||
t2.publish_time DESC,
|
||||
t2.create_time DESC
|
||||
|
||||
Reference in New Issue
Block a user