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