Commit b0e2cfd5 by guojuxing

添加组员判断数据为空

parent 6725c425
......@@ -175,6 +175,12 @@ public class AccountGroupApiServiceImpl implements AccountGroupApiService {
for (AccountGroupMemberDTO dto : list) {
AccountGroupRelDTO temp = new AccountGroupRelDTO();
temp.setStatus(1);
if (dto.getAccountGroupId() == null) {
return ServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "分组ID不能改为空");
}
if (dto.getUserId() == null) {
return ServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "组员ID不能改为空");
}
temp.setAccountGroupId(dto.getAccountGroupId());
temp.setCreateTime(now);
temp.setUpdateTime(now);
......
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