角色注解\类型转换bug修复
This commit is contained in:
parent
0b775f06b4
commit
58c89daa19
@ -43,7 +43,7 @@ public class EbikeOperatorController {
|
|||||||
.operatorName(ebikeOperator.getOperatorName())
|
.operatorName(ebikeOperator.getOperatorName())
|
||||||
.address(ebikeOperator.getAddress())
|
.address(ebikeOperator.getAddress())
|
||||||
.contactPhone(ebikeOperator.getContactPhone())
|
.contactPhone(ebikeOperator.getContactPhone())
|
||||||
.createBy((Long) StpUtil.getLoginId())
|
.createBy(Long.valueOf((String) StpUtil.getLoginId()))
|
||||||
.build();
|
.build();
|
||||||
ebikeOperatorService.save(operator);
|
ebikeOperatorService.save(operator);
|
||||||
return JsonResult.success();
|
return JsonResult.success();
|
||||||
|
|||||||
@ -46,7 +46,6 @@ public class EbikeOperatorStaffServiceImpl extends ServiceImpl<EbikeOperatorStaf
|
|||||||
throw new EbikeException("密码错误");
|
throw new EbikeException("密码错误");
|
||||||
} else {
|
} else {
|
||||||
StpUtil.login(ebikeOperatorStaff.getStaffId());
|
StpUtil.login(ebikeOperatorStaff.getStaffId());
|
||||||
//TODO:查询员工详情填充
|
|
||||||
StpUtil.getSession().set(String.valueOf(ebikeOperatorStaff.getStaffId()), getStaffInfo());
|
StpUtil.getSession().set(String.valueOf(ebikeOperatorStaff.getStaffId()), getStaffInfo());
|
||||||
return StpUtil.getTokenValueByLoginId(ebikeOperatorStaff.getStaffId());
|
return StpUtil.getTokenValueByLoginId(ebikeOperatorStaff.getStaffId());
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user