|
@@ -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);
|
|
|
}
|
|
|
|