Dockerfile

master
Cui YongXing 2024-08-29 23:36:05 +08:00
parent 62977afb65
commit 6aabf24b1c
1 changed files with 10 additions and 10 deletions

View File

@ -131,11 +131,11 @@ public class SysUserController extends BaseController {
return Result.error("保存用户'" + username + "'失败,注册账号已存在");
}
boolean data = userService.registerUser(sysUser);
Long userId = sysUser.getUserId();
SysNotice sysNotice = new SysNotice();
sysNotice.setNoticeType("2");
List<SysNotice> sysNotices = sysNoticeService.selectNoticeList(sysNotice);
sysNoticeService.addNoticesUserIdAndNoticeId(userId, sysNotices);
// Long userId = sysUser.getUserId();
// SysNotice sysNotice = new SysNotice();
// sysNotice.setNoticeType("2");
// List<SysNotice> sysNotices = sysNoticeService.selectNoticeList(sysNotice);
// sysNoticeService.addNoticesUserIdAndNoticeId(userId, sysNotices);
return Result.success(data);
}
@ -201,11 +201,11 @@ public class SysUserController extends BaseController {
user.setCreateBy(SecurityUtils.getUsername());
user.setPassword(SecurityUtils.encryptPassword(user.getPassword()));
int rows = userService.insertUser(user);
Long userId = user.getUserId();
SysNotice sysNotice = new SysNotice();
sysNotice.setNoticeType("2");
List<SysNotice> sysNotices = sysNoticeService.selectNoticeList(sysNotice);
sysNoticeService.addNoticesUserIdAndNoticeId(userId, sysNotices);
// Long userId = user.getUserId();
// SysNotice sysNotice = new SysNotice();
// sysNotice.setNoticeType("2");
// List<SysNotice> sysNotices = sysNoticeService.selectNoticeList(sysNotice);
// sysNoticeService.addNoticesUserIdAndNoticeId(userId, sysNotices);
return toAjax(rows);
}