Commit 8515898f authored by hanfeng's avatar hanfeng

Merge branch 'master-customer-management' into dev

parents 4dfd4444 9bdda6d7
...@@ -34,14 +34,13 @@ public class AppStaffUserController extends BaseController<AppStaffUserBiz, AppS ...@@ -34,14 +34,13 @@ public class AppStaffUserController extends BaseController<AppStaffUserBiz, AppS
* @return * @return
* @throws Exception * @throws Exception
*/ */
@Override
@GetMapping("/all") @GetMapping("/all")
public List<AppStaffUser> all() throws Exception { public ObjectRestResponse<List<AppStaffUser>> getAll() throws Exception {
AppUserDTO userDTO = (AppUserDTO) publicController.userDetailByToken(authConfig.getToken(request)).getData(); AppUserDTO userDTO = (AppUserDTO) publicController.userDetailByToken(authConfig.getToken(request)).getData();
if (POSITION_NAME.equals(userDTO.getPositionName())) { if (POSITION_NAME.equals(userDTO.getPositionName())) {
return baseBiz.getAll(userDTO.getUserid()) ; return ObjectRestResponse.succ(baseBiz.getAll(userDTO.getUserid())) ;
} }
return new ArrayList<>(); return ObjectRestResponse.succ();
} }
@Override @Override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment