guozhaoshun %!s(int64=6) %!d(string=hai) anos
pai
achega
77554a0452

+ 5 - 2
rankin-user-service/src/main/java/cn/rankin/userservice/controller/StmtTerminalUserController.java

@@ -67,13 +67,16 @@ public class StmtTerminalUserController
 
     @RequestMapping(value = "/page", method = RequestMethod.GET)
     public APIResult<Page<TerminalUser>> search(TerminalUserSearchDTO terminalUserSearchDTO) {
+        log.info("request param = {}",terminalUserSearchDTO.toString());
         TerminalUser terminalUser = new TerminalUser();
 
         String code = terminalUserSearchDTO.getCode();
-        String campusId = terminalUserSearchDTO.getCampusId();
+
         if (!StringUtils.isEmpty(code)) {
             terminalUser.setCode("%" + code + "%");
-        }else if (!StringUtils.isEmpty(campusId)) {
+        }
+        String campusId = terminalUserSearchDTO.getCampusId();
+        if (!StringUtils.isEmpty(campusId)) {
             terminalUser.setCampusId(campusId);
         }