Commit 7a13d5cae47c7e65ae384ac7b2dd0f5267e58f75

Authored by changpengfei
1 parent b676773eb6
Exists in master and in 1 other branch dev

bug

Showing 1 changed file with 4 additions and 0 deletions

talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/UserContoller.java View file @ 7a13d5c
... ... @@ -17,6 +17,7 @@
17 17 import org.springframework.beans.factory.annotation.Autowired;
18 18 import org.springframework.beans.factory.annotation.Value;
19 19 import org.springframework.util.DigestUtils;
  20 +import org.springframework.util.StringUtils;
20 21 import org.springframework.validation.BindingResult;
21 22 import org.springframework.validation.annotation.Validated;
22 23 import org.springframework.web.bind.annotation.*;
... ... @@ -209,6 +210,9 @@
209 210 // }
210 211 public BaseResponse sltUser(UserroleInfo user, int current, int size){
211 212 BaseResponse baseResponse=new BaseResponse();
  213 + if (StringUtils.isEmpty(user.getUname())){
  214 + user.setUname(null);
  215 + }
212 216 Page<UserroleInfo> page=new Page<>(current,size);
213 217 Page<UserroleInfo> userIPage= userroleInfoService.page(page,Wrappers.query(user).orderByDesc("updated_time","createdtime"));
214 218 baseResponse.setObject(userIPage);