|
@@ -576,7 +576,7 @@ public class PmDemandServiceImpl extends ServiceImpl<PmDemandMapper, PmDemand> i
|
|
|
list = pmAuditDeptRefService.list(l);
|
|
|
if (!pmDemandReqVo.getIsAdmin()) {
|
|
|
if (Arrays.asList(1, 2, 3).contains(reqType)) {
|
|
|
- if (!ObjectUtils.isEmpty(list) && !SecurityUtils.getUserId().equals(Integer.parseInt("1"))) {
|
|
|
+ if (!ObjectUtils.isEmpty(list) && !SysUser.isAdmin(SecurityUtils.getUserId())) {
|
|
|
lw.in(PmDemand::getDemandId, list.stream().map(PmAuditDeptRef::getRefId).collect(Collectors.toList()));
|
|
|
}
|
|
|
lw.eq(PmDemand::getPurchaseDeptId, SecurityUtils.getDeptId());
|
|
@@ -3901,7 +3901,7 @@ public class PmDemandServiceImpl extends ServiceImpl<PmDemandMapper, PmDemand> i
|
|
|
l.eq(PmAuditDeptRef::getDeptId, SecurityUtils.getDeptId());
|
|
|
l.eq(PmAuditDeptRef::getRefType, "2");
|
|
|
list = pmAuditDeptRefService.list(l);
|
|
|
- if (!ObjectUtils.isEmpty(list) && !SecurityUtils.getUserId().equals(Integer.parseInt("1"))) {
|
|
|
+ if (!ObjectUtils.isEmpty(list) && !SysUser.isAdmin(SecurityUtils.getUserId())) {
|
|
|
lw.in(PmDemand::getDemandId, list.stream().map(PmAuditDeptRef::getRefId).collect(Collectors.toList()));
|
|
|
}
|
|
|
|