Commit b8208601 authored by hanfeng's avatar hanfeng

客户管理

parent 653f65bb
...@@ -80,4 +80,17 @@ public class AppStaffUserController extends BaseController<AppStaffUserBiz, AppS ...@@ -80,4 +80,17 @@ public class AppStaffUserController extends BaseController<AppStaffUserBiz, AppS
return ObjectRestResponse.succ(); return ObjectRestResponse.succ();
} }
@Override
@ApiOperation("修改")
@RequestMapping(value = "/{id}",method = RequestMethod.PUT)
@ResponseBody
public ObjectRestResponse update(@RequestBody AppStaffUser appStaffUser) throws Exception {
AppUserDTO userDTO = (AppUserDTO) publicController.userDetailByToken(authConfig.getToken(request)).getData();
if (appStaffUser.getPhone().equals(userDTO.getUsername())) {
return ObjectRestResponse.createFailedResult(ResultCode.FAILED_CODE,"不能绑定本人为客户");
}
baseBiz.updateSelectiveById(appStaffUser);
return ObjectRestResponse.succ();
}
} }
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