|
|
@@ -45,7 +45,7 @@ public class DeleteUserService { |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
public JsonResult deleteByIdList(List<String> idList) { |
|
|
|
log.info("进入删除用户业务接口"); |
|
|
|
log.info("进入删除用户业务接口, idList={}", idList); |
|
|
|
String tenantId = CurrentUserUtil.getTenantId(); |
|
|
|
JsonResult result = this.check(tenantId, idList); |
|
|
|
if (0 != result.getCode()) { |
|
|
@@ -74,26 +74,7 @@ public class DeleteUserService { |
|
|
|
if (CollectionUtil.isEmpty(idList)) { |
|
|
|
return JsonResult.error(DeleteUserCodeEnum.USER_ID_IS_NULL.getCode(), DeleteUserCodeEnum.USER_ID_IS_NULL.getMsg()); |
|
|
|
} |
|
|
|
|
|
|
|
return JsonResult.success(); |
|
|
|
} |
|
|
|
/** |
|
|
|
* |
|
|
|
* 构建实体字段数据 |
|
|
|
* |
|
|
|
* @param user |
|
|
|
*/ |
|
|
|
private void buildUser(User user) { |
|
|
|
if (StringUtils.isNotNull(user.getAvatar()) && user.getAvatar().contains(CommonConfig.imageURL)) { |
|
|
|
user.setAvatar(user.getAvatar().replaceAll(CommonConfig.imageURL, "")); |
|
|
|
} else { |
|
|
|
//添加默认头像 |
|
|
|
user.setAvatar("imagedir/n1o1j9ndau_1670488066287.png"); |
|
|
|
} |
|
|
|
user.setCityName(""); |
|
|
|
user.setUpdateUser(CurrentUserUtil.getUserId()); |
|
|
|
user.setUpdateTime(DateUtils.now()); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |