角色注解\类型转换bug修复
This commit is contained in:
parent
0b775f06b4
commit
58c89daa19
@ -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();
|
||||
|
||||
@ -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());
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user