提交 a64ac313 authored 作者: hzh's avatar hzh

代码优化

上级 7c68093f
...@@ -53,7 +53,6 @@ public class SysOssController extends BaseController { ...@@ -53,7 +53,6 @@ public class SysOssController extends BaseController {
* *
* @param ossIds OSS对象ID串 * @param ossIds OSS对象ID串
*/ */
@SaCheckPermission("system:oss:list")
@GetMapping("/listByIds/{ossIds}") @GetMapping("/listByIds/{ossIds}")
public R<List<SysOssVo>> listByIds(@NotEmpty(message = "主键不能为空") @PathVariable Long[] ossIds) { public R<List<SysOssVo>> listByIds(@NotEmpty(message = "主键不能为空") @PathVariable Long[] ossIds) {
List<SysOssVo> list = iSysOssService.listByIds(Arrays.asList(ossIds)); List<SysOssVo> list = iSysOssService.listByIds(Arrays.asList(ossIds));
...@@ -85,7 +84,6 @@ public class SysOssController extends BaseController { ...@@ -85,7 +84,6 @@ public class SysOssController extends BaseController {
* *
* @param ossId OSS对象ID * @param ossId OSS对象ID
*/ */
@SaCheckPermission("system:oss:download")
@GetMapping("/download/{ossId}") @GetMapping("/download/{ossId}")
public void download(@PathVariable Long ossId, HttpServletResponse response) throws IOException { public void download(@PathVariable Long ossId, HttpServletResponse response) throws IOException {
iSysOssService.download(ossId, response); iSysOssService.download(ossId, response);
......
...@@ -41,7 +41,6 @@ public class SysDeptOssController extends BaseController { ...@@ -41,7 +41,6 @@ public class SysDeptOssController extends BaseController {
/** /**
* 查询部门文件列表 * 查询部门文件列表
*/ */
@SaCheckPermission("system:deptOss:list")
@GetMapping("/list") @GetMapping("/list")
public TableDataInfo<SysDeptOssVo> list(SysDeptOssBo bo, PageQuery pageQuery) { public TableDataInfo<SysDeptOssVo> list(SysDeptOssBo bo, PageQuery pageQuery) {
return sysDeptOssService.queryPageList(bo, pageQuery); return sysDeptOssService.queryPageList(bo, pageQuery);
......
...@@ -41,7 +41,6 @@ public class SysDeptTravelLineController extends BaseController { ...@@ -41,7 +41,6 @@ public class SysDeptTravelLineController extends BaseController {
/** /**
* 查询部门主推线路列表 * 查询部门主推线路列表
*/ */
@SaCheckPermission("system:deptTravelLine:list")
@GetMapping("/list") @GetMapping("/list")
public TableDataInfo<SysDeptTravelLineVo> list(SysDeptTravelLineBo bo, PageQuery pageQuery) { public TableDataInfo<SysDeptTravelLineVo> list(SysDeptTravelLineBo bo, PageQuery pageQuery) {
return sysDeptTravelLineService.queryPageList(bo, pageQuery); return sysDeptTravelLineService.queryPageList(bo, pageQuery);
......
...@@ -11,7 +11,6 @@ import lombok.extern.slf4j.Slf4j; ...@@ -11,7 +11,6 @@ import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboReference; import org.apache.dubbo.config.annotation.DubboReference;
import org.apache.dubbo.config.annotation.DubboService; import org.apache.dubbo.config.annotation.DubboService;
import org.dromara.common.core.enums.UserStatus; import org.dromara.common.core.enums.UserStatus;
import org.dromara.common.core.enums.UserType;
import org.dromara.common.core.exception.ServiceException; import org.dromara.common.core.exception.ServiceException;
import org.dromara.common.core.exception.user.UserException; import org.dromara.common.core.exception.user.UserException;
import org.dromara.common.core.utils.DateUtils; import org.dromara.common.core.utils.DateUtils;
...@@ -184,7 +183,6 @@ public class RemoteUserServiceImpl implements RemoteUserService { ...@@ -184,7 +183,6 @@ public class RemoteUserServiceImpl implements RemoteUserService {
// 此处可根据登录用户的数据不同 自行创建 loginUser 属性不够用继承扩展就行了 // 此处可根据登录用户的数据不同 自行创建 loginUser 属性不够用继承扩展就行了
LoginUser loginUser = buildLoginUser(user); LoginUser loginUser = buildLoginUser(user);
XcxLoginUser xcxLoginUser = BeanUtil.copyProperties(loginUser, XcxLoginUser.class); XcxLoginUser xcxLoginUser = BeanUtil.copyProperties(loginUser, XcxLoginUser.class);
xcxLoginUser.setUserType(UserType.APP_USER.getUserType());
xcxLoginUser.setOpenid(openid); xcxLoginUser.setOpenid(openid);
xcxLoginUser.setPhone(sysUser.getPhonenumber()); xcxLoginUser.setPhone(sysUser.getPhonenumber());
return xcxLoginUser; return xcxLoginUser;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论