更新
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user