|
@@ -287,6 +287,7 @@ public class StaffService extends BaseService<Staff> {
|
|
|
}else{
|
|
}else{
|
|
|
return ResponseResultUtil.error(ErrorCodeEnum.STAFF_NOT_EXIST.getCode(), ErrorCodeEnum.STAFF_NOT_EXIST.getMessage());
|
|
return ResponseResultUtil.error(ErrorCodeEnum.STAFF_NOT_EXIST.getCode(), ErrorCodeEnum.STAFF_NOT_EXIST.getMessage());
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
// 获取菜单
|
|
// 获取菜单
|
|
|
List menuList = commonMapper.getMenuByUser(param);
|
|
List menuList = commonMapper.getMenuByUser(param);
|
|
|
Dictionary<String,Object> dic = new Hashtable<>();
|
|
Dictionary<String,Object> dic = new Hashtable<>();
|
|
@@ -295,4 +296,17 @@ public class StaffService extends BaseService<Staff> {
|
|
|
return ResponseResultUtil.success(dic);
|
|
return ResponseResultUtil.success(dic);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * @desc : 退出登录
|
|
|
|
|
+ * @author : 周兴
|
|
|
|
|
+ * @date : 2024-03-18 09:03
|
|
|
|
|
+ */
|
|
|
|
|
+ @Transactional(
|
|
|
|
|
+ rollbackFor = {Exception.class}
|
|
|
|
|
+ )
|
|
|
|
|
+ public ResponseResultVO<Boolean> logout(Map<String, Object> param) {
|
|
|
|
|
+ // 更新员工登录状态
|
|
|
|
|
+ this.updateByUuid(new Staff().setStaffId(param.get("staffId").toString()).setFlgCanLogin(false));
|
|
|
|
|
+ return ResponseResultUtil.success(true);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|