Commit 749be96b authored by hongguangwu's avatar hongguangwu

MVP1.6.6-预入职相关_项目列表加权限

parent 11f5eb1c
......@@ -31,8 +31,11 @@ import com.yifu.cloud.plus.v1.yifu.archives.vo.*;
import com.yifu.cloud.plus.v1.yifu.common.core.constant.CommonConstants;
import com.yifu.cloud.plus.v1.yifu.common.core.util.Common;
import com.yifu.cloud.plus.v1.yifu.common.core.util.R;
import com.yifu.cloud.plus.v1.yifu.common.core.vo.YifuUser;
import com.yifu.cloud.plus.v1.yifu.common.dapr.util.MenuUtil;
import com.yifu.cloud.plus.v1.yifu.common.log.annotation.SysLog;
import com.yifu.cloud.plus.v1.yifu.common.security.annotation.Inner;
import com.yifu.cloud.plus.v1.yifu.common.security.util.SecurityUtils;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
......@@ -61,7 +64,7 @@ public class TSettleDomainController {
private final TSettleDomainService tSettleDomainService;
private final TDepartSettlementInfoService tDepartSettlementInfoService;
private final MenuUtil menuUtil;
/**
* 分页查询
*
......@@ -73,6 +76,9 @@ public class TSettleDomainController {
@Operation(summary = "分页查询", description = "分页查询")
@GetMapping("/page")
public R<IPage<TSettleDomain>> getTSettleDomainPage(Page<TSettleDomain> page, TSettleDomain tSettleDomain) {
YifuUser user = SecurityUtils.getUser();
menuUtil.setAuthSql(user, tSettleDomain);
return R.ok(tSettleDomainService.getPage(page, tSettleDomain));
}
......
......@@ -244,6 +244,9 @@
<if test="tSettleDomain.issueStatus != null">
and a.ISSUE_STATUS = #{tSettleDomain.issueStatus}
</if>
<if test="tSettleDomain.authSql != null and tSettleDomain.authSql.trim() != ''">
${tSettleDomain.authSql}
</if>
</if>
order by CREATE_TIME desc
</select>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment