Browse Source

fix white user search request body

huodongdong 6 years ago
parent
commit
12ee9bd962

+ 1 - 1
rankin-user-service/src/main/java/cn/rankin/userservice/controller/WhiteUserController.java

@@ -81,7 +81,7 @@ public class WhiteUserController {
     }
 
     @RequestMapping(value = "/list", method = RequestMethod.POST)
-    public APIResult<Page<WhiteUser>> search(WhiteUserSearchDTO searchDTO) {
+    public APIResult<Page<WhiteUser>> search(@RequestBody WhiteUserSearchDTO searchDTO) {
         WhiteUser sample = new WhiteUser();
         String code = searchDTO.getCode();
         if (!StringUtils.isEmpty(code)) {