liurunyu
2024-08-09 8739a65826f197156624880172983ca8faee4dfc
pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/global/SysSetCtrl.java
@@ -1,9 +1,9 @@
package com.dy.pmsGlobal.global;
import com.dy.common.aop.SsoPowerAop;
import com.dy.common.webUtil.BaseResponse;
import com.dy.common.webUtil.BaseResponseUtils;
import com.dy.pmsGlobal.pojoBa.BaSysSet;
import com.dy.pmsGlobal.pojoBa.BaUser;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
@@ -28,10 +28,10 @@
     * @return 唯一系统设置
     */
    //@GetMapping(path = "one", consumes = MediaType.TEXT_PLAIN_VALUE)//指前端向后传的参数类型
    @GetMapping(path = "one")
    @GetMapping(path = "single")
    //@SsoAop() //只有登录验证,没有权限验证
    @SsoPowerAop(power = "-1") //登录与权限同时验证
    public BaseResponse<BaUser> single() {
    public BaseResponse<BaSysSet> single() {
        try {
            return BaseResponseUtils.buildSuccess(this.sv.selectSingle());
        } catch (Exception e) {