|
|
@@ -96,7 +96,7 @@ public class MessageServiceImpl implements MessageService {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public Page<Message> getMessages(String receiverUu, String receiverEnuu, String consumerApp, String isRead,
|
|
|
+ public Page<Message> getMessages(String receiverUu, String receiverEnuu, String consumerApp, String isRead, String type,
|
|
|
String keyword, PageParams pageParams) {
|
|
|
if (StringUtils.isEmpty(receiverUu) || StringUtils.isEmpty(receiverEnuu)) {
|
|
|
throw new ParameterMissingException("接收人信息为空");
|
|
|
@@ -125,6 +125,10 @@ public class MessageServiceImpl implements MessageService {
|
|
|
sql += String.format(" and ms_isread = %s", Short.valueOf(isRead));
|
|
|
}
|
|
|
|
|
|
+ if (!StringUtils.isEmpty(type)) {
|
|
|
+ sql += String.format(" and ms_type = %s", type);
|
|
|
+ }
|
|
|
+
|
|
|
// 关键词搜索
|
|
|
if (!StringUtils.isEmpty(keyword)) {
|
|
|
// SimpleExpression contentExp = PredicateUtils.like("content", keyword, true);
|