瀏覽代碼

调整获取消息接口type筛选为完全匹配

wangyc 7 年之前
父節點
當前提交
bc4c651429
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/java/com/uas/ps/message/service/impl/MessageServiceImpl.java

+ 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);
         }
 
         // 关键词搜索