修复job无法获取登录用户问题
This commit is contained in:
+6
-2
@@ -180,8 +180,12 @@ public class SysParamServiceImpl implements SysParamService, BaseParams {
|
||||
throw new BizWarning("数据不存在");
|
||||
}
|
||||
entity.setId(oldEntity.getId());
|
||||
LoginUserDto loginUser = AuthUtils.get();
|
||||
entity.setUpdateBy(loginUser.getId());
|
||||
try {
|
||||
LoginUserDto loginUser = AuthUtils.get();
|
||||
entity.setUpdateBy(loginUser.getId());
|
||||
} catch (Exception e) {
|
||||
log.debug("job更新");
|
||||
}
|
||||
boolean updated = sysParamBaseService.updateById(entity);
|
||||
if (!updated) {
|
||||
throw new BizWarning("修改失败");
|
||||
|
||||
Reference in New Issue
Block a user