Browse Source

调整获取消息接口type筛选

wangyc 7 years ago
parent
commit
ad7b03c2a8

+ 1 - 1
src/main/java/com/uas/ps/message/service/impl/MessageServiceImpl.java

@@ -126,7 +126,7 @@ public class MessageServiceImpl implements MessageService {
         }
 
         if (!StringUtils.isEmpty(type)) {
-            sql += String.format(" and ms_type = %s", type);
+            sql += String.format(" and ms_type = '%%s%'", type);
         }
 
         // 关键词搜索