|
@@ -509,7 +509,7 @@ public class LawyerUserServiceImpl extends ServiceImpl<LawyerUserMapper, LawyerU
|
|
|
// baseRedisService.delete(key);
|
|
// baseRedisService.delete(key);
|
|
|
// }
|
|
// }
|
|
|
// 检查是否已经注销
|
|
// 检查是否已经注销
|
|
|
- if (lawyerUser.getLogoutFlag() != null && lawyerUser.getLogoutFlag() == 1) {
|
|
|
|
|
|
|
+ if (lawyerUser.getLogoutFlag() != null && lawyerUser.getLogoutFlag() == 1 && lawyerUser.getDeleteFlag() == 1) {
|
|
|
log.warn("注销律师用户失败:律师已注销,律师ID={}, 律师姓名={}", id, lawyerUser.getName());
|
|
log.warn("注销律师用户失败:律师已注销,律师ID={}, 律师姓名={}", id, lawyerUser.getName());
|
|
|
return R.fail("该律师账号已注销,无需重复注销");
|
|
return R.fail("该律师账号已注销,无需重复注销");
|
|
|
}
|
|
}
|
|
@@ -548,8 +548,8 @@ public class LawyerUserServiceImpl extends ServiceImpl<LawyerUserMapper, LawyerU
|
|
|
lawyerUser.setLastOnlineTime(new Date());
|
|
lawyerUser.setLastOnlineTime(new Date());
|
|
|
|
|
|
|
|
// 执行更新操作
|
|
// 执行更新操作
|
|
|
- boolean result = this.updateById(lawyerUser);
|
|
|
|
|
- if (!result) {
|
|
|
|
|
|
|
+ int result = lawyerUserMapper.updateLawyerUser(lawyerUser);
|
|
|
|
|
+ if (result==0) {
|
|
|
log.error("注销律师用户失败:更新数据库失败,律师ID={}", id);
|
|
log.error("注销律师用户失败:更新数据库失败,律师ID={}", id);
|
|
|
return R.fail("注销失败,请稍后重试");
|
|
return R.fail("注销失败,请稍后重试");
|
|
|
}
|
|
}
|