This commit is contained in:
2024-11-01 16:08:55 +08:00
parent e3822fef96
commit 28f7e5bc26
2 changed files with 5 additions and 1 deletions

View File

@@ -40,6 +40,11 @@ public class EntrustAlterApplyServiceImpl extends ServiceImpl<EntrustAlterApplyM
@Override @Override
public IPage<EntrustAlterApplyVO> voPage(EntrustAlterApplyQuery query) { public IPage<EntrustAlterApplyVO> voPage(EntrustAlterApplyQuery query) {
DLPUser user = SecurityUtils.getUser();
if (!user.isStaff()) {
query.setClientOrgId(user.getOrgId());
query.setIsStaff(false);
}
IPage<EntrustAlterApplyVO> entrustAlterApplyVOPage = baseMapper.getEntrustAlterApplyVOPage(new Page<>(query.getCurrent(), query.getSize()), query); IPage<EntrustAlterApplyVO> entrustAlterApplyVOPage = baseMapper.getEntrustAlterApplyVOPage(new Page<>(query.getCurrent(), query.getSize()), query);
entrustAlterApplyVOPage.getRecords().forEach(e -> { entrustAlterApplyVOPage.getRecords().forEach(e -> {
fillVOInfo(e); fillVOInfo(e);

View File

@@ -35,7 +35,6 @@
</sql> </sql>
<select id="getEntrustAlterApplyVOPage" <select id="getEntrustAlterApplyVOPage"
parameterType="digital.laboratory.platform.entrustment.query.EntrustAlterApplyQuery"
resultType="digital.laboratory.platform.entrustment.vo.EntrustAlterApplyVO"> resultType="digital.laboratory.platform.entrustment.vo.EntrustAlterApplyVO">
<include refid="getVOSQL"/> <include refid="getVOSQL"/>
<where> <where>