master
陈江保 4 months ago
parent e3822fef96
commit 28f7e5bc26
  1. 5
      src/main/java/digital/laboratory/platform/entrustment/service/impl/EntrustAlterApplyServiceImpl.java
  2. 1
      src/main/resources/mapper/EntrustAlterApplyMapper.xml

@ -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>

Loading…
Cancel
Save