完善报价单填表与币种回填,并补齐账号末次登录、角色按钮权限与陆运全线匹配。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
linmianxun
2026-09-19 22:03:45 +08:00
co-authored by Cursor
parent 1a2e1d6cb2
commit e4743541f7
25 changed files with 2262 additions and 163 deletions
@@ -4,6 +4,7 @@ import cn.hutool.core.util.RandomUtil;
import com.alibaba.fastjson.JSONObject;
import com.aliyuncs.exceptions.ClientException;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import com.baomidou.mybatisplus.core.toolkit.IdWorker;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
@@ -465,6 +466,18 @@ public class LoginController {
// 获取用户部门信息
JSONObject obj = new JSONObject(new LinkedHashMap<>());
// 询价账号管理:写入最后登录时间,列表不再误用 createTime(种子常为 2019)
Date loginAt = new Date();
sysUser.setLastLoginTime(loginAt);
try {
sysUserService.update(
new LambdaUpdateWrapper<SysUser>()
.eq(SysUser::getId, sysUser.getId())
.set(SysUser::getLastLoginTime, loginAt));
} catch (Exception e) {
log.warn("写入最后登录时间失败 username={}", username, e);
}
//1.生成token
String token = JwtUtil.sign(username, syspassword);
// 设置token缓存有效时间
@@ -161,6 +161,16 @@ public class SysUser implements Serializable {
* 更新时间
*/
private Date updateTime;
/**
* 最后登录时间。
* 账号管理列表展示;登录成功时写入。禁止用 createTime 冒充(种子账号常为 2019)。
*/
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@TableField("last_login_time")
private Date lastLoginTime;
/**
* 同步工作流引擎1同步0不同步
*/