@Mapper
public interface MessageManualMapper
| 限定符和类型 | 方法和说明 |
|---|---|
int |
countAdminUnreadMessage(Long userId) |
int |
countUserUnreadMessage(Long userId) |
@Select(value="select count(*) from tb_user_message where user_id = #{userId} and state = \'unread\'")
int countUserUnreadMessage(@Param(value="userId")
Long userId)
@Select(value="select count(*) from tb_admin_message where user_id = #{userId} and state = \'unread\'")
int countAdminUnreadMessage(@Param(value="userId")
Long userId)
Copyright © 2020. All rights reserved.