角色注解\类型转换bug修复

This commit is contained in:
attiya 2025-09-03 11:21:52 +08:00
parent 0b775f06b4
commit 58c89daa19
2 changed files with 1 additions and 2 deletions

View File

@ -43,7 +43,7 @@ public class EbikeOperatorController {
.operatorName(ebikeOperator.getOperatorName())
.address(ebikeOperator.getAddress())
.contactPhone(ebikeOperator.getContactPhone())
.createBy((Long) StpUtil.getLoginId())
.createBy(Long.valueOf((String) StpUtil.getLoginId()))
.build();
ebikeOperatorService.save(operator);
return JsonResult.success();

View File

@ -46,7 +46,6 @@ public class EbikeOperatorStaffServiceImpl extends ServiceImpl<EbikeOperatorStaf
throw new EbikeException("密码错误");
} else {
StpUtil.login(ebikeOperatorStaff.getStaffId());
//TODO查询员工详情填充
StpUtil.getSession().set(String.valueOf(ebikeOperatorStaff.getStaffId()), getStaffInfo());
return StpUtil.getTokenValueByLoginId(ebikeOperatorStaff.getStaffId());
}