代码优化

This commit is contained in:
PC 2026-02-27 09:07:24 +08:00
parent 057a45d065
commit 62ee681df2

View File

@ -126,8 +126,8 @@ public class EbikeStatisticsController {
@GetMapping("getDiffOperatorOrderList") @GetMapping("getDiffOperatorOrderList")
public JsonResult<?> getDiffOperatorOrderList(String bikeCode, PageParam pageParam) { public JsonResult<?> getDiffOperatorOrderList(String bikeCode, PageParam pageParam) {
FeignDiffOperatorOrderList dto = new FeignDiffOperatorOrderList(); FeignDiffOperatorOrderList dto = new FeignDiffOperatorOrderList();
long staffId = StpUtil.getLoginIdAsLong(); String staffId = StpUtil.getLoginIdAsString();
CommonStaffInfo staffInfo = StpUtil.getSession().getModel(String.valueOf(staffId), CommonStaffInfo.class); CommonStaffInfo staffInfo = StpUtil.getSession().getModel(staffId, CommonStaffInfo.class);
if (staffInfo == null) { if (staffInfo == null) {
throw new EbikeException("当前用户信息不存在"); throw new EbikeException("当前用户信息不存在");
} }