Browse Source

DeBugDeBugDeBug

buzhanyi 2 years ago
parent
commit
0dc71de69e

+ 1 - 0
purchase-system/src/main/java/com/ozs/pm/service/impl/PmDemandServiceImpl.java

@@ -578,6 +578,7 @@ public class PmDemandServiceImpl extends ServiceImpl<PmDemandMapper, PmDemand> i
             if (Arrays.asList(1, 2, 3).contains(reqType)) {
                 if (!ObjectUtils.isEmpty(list) && !SecurityUtils.getUserId().equals(Integer.parseInt("1"))) {
                     lw.in(PmDemand::getDemandId, list.stream().map(PmAuditDeptRef::getRefId).collect(Collectors.toList()));
+                    lw.eq(PmDemand::getPurchaseDeptId, SecurityUtils.getDeptId());
                 }
             } else {
                 lw.eq(PmDemand::getPurchaseDeptId, SecurityUtils.getDeptId());