| | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springblade.core.mp.support.Condition; |
| | | import org.springblade.core.tenant.annotation.NonDS; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | |
| | | public Integer getNotReadNumber(String phone) { |
| | | return messageRecordService.getNotReadNumber(phone); |
| | | } |
| | | |
| | | @Override |
| | | public List<MessageRecord> getNotReadList(String userId) { |
| | | MessageRecord messageRecord = new MessageRecord(); |
| | | messageRecord.setRecipient(userId); |
| | | messageRecord.setStatus(0); |
| | | return messageRecordService.list(Condition.getQueryWrapper(messageRecord)); |
| | | } |
| | | } |