Commit 626776aa by guojuxing

账号分组新增接口修复

parent 9b908a8c
......@@ -24,7 +24,7 @@ public class AccountGroupApiServiceImpl implements AccountGroupApiService{
@Override
public ServiceResponse<Integer> save(AccountGroupDTO dto) {
//参数校验
ServiceResponse paramValid = ValidParamsUtils.allCheckValidate(AccountGroupDTO.class, AccountGroupDTO.SaveValid.class);
ServiceResponse paramValid = ValidParamsUtils.allCheckValidate(dto, AccountGroupDTO.SaveValid.class);
if (!paramValid.isSuccess()) {
return paramValid;
}
......@@ -44,7 +44,7 @@ public class AccountGroupApiServiceImpl implements AccountGroupApiService{
return ServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "账号分组id有误,查无数据");
}
//参数校验
ServiceResponse paramValid = ValidParamsUtils.allCheckValidate(AccountGroupDTO.class, AccountGroupDTO.EditValid.class);
ServiceResponse paramValid = ValidParamsUtils.allCheckValidate(dto, AccountGroupDTO.EditValid.class);
if (!paramValid.isSuccess()) {
return paramValid;
}
......
......@@ -30,6 +30,7 @@ public class AccountGroupController {

 */
@RequestMapping("/save")
public RestResponse saveAccountGroup(AccountGroupDTO dto) {
dto.setEnterpriseId(UserDetailUtils.getUserDetail().getEnterpriseId());
return ResultControllerUtils.commonResult(accountGroupApiService.save(dto));
}
......
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