소스 검색

用户查找BUG

chenw 6 년 전
부모
커밋
a4fbfe94fe
1개의 변경된 파일1개의 추가작업 그리고 10개의 파일을 삭제
  1. 1 10
      bi-server/src/main/java/com/usoftchina/bi/server/service/user/UserService.java

+ 1 - 10
bi-server/src/main/java/com/usoftchina/bi/server/service/user/UserService.java

@@ -155,16 +155,7 @@ public class UserService {
     查询匹配用户
     查询匹配用户
      */
      */
     public RepEntity getNameList(String condition, Long count){
     public RepEntity getNameList(String condition, Long count){
-        String value = null;
-        String v = null;
-        try {
-            v = objectMapper.readValue(condition, String.class);
-        } catch (IOException e) {
-            e.printStackTrace();
-        }
-
-        value = "like '%" + v + "%'";
-
+        String value = "like '%" + condition + "%'";
         List<User> userName = userMapper.getNameList(value, count);
         List<User> userName = userMapper.getNameList(value, count);
         return new RepEntity(RepCode.success, userName);
         return new RepEntity(RepCode.success, userName);
     }
     }