Explorar el Código

审核页面列表查询 数据过滤、添加一个字段判断是否有权限操作审核;
提交按钮添加审核数据插入;
审核功能添加 (状态判断)修改审核关联表的状态
审核退回添加 审核关联数据删除

hexiao hace 2 años
padre
commit
b465d50535

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

@@ -388,7 +388,7 @@ public class PmDemandServiceImpl extends ServiceImpl<PmDemandMapper, PmDemand> i
         l.eq(PmAuditDeptRef::getDeptId, pmDemandReqVo.getDeptId());
         l.eq(PmAuditDeptRef::getRefType, "2");
         List<PmAuditDeptRef> list = pmAuditDeptRefService.list(l);
-        if (!ObjectUtils.isEmpty(list)) {
+        if (!ObjectUtils.isEmpty(list) && !pmDemandReqVo.getUserId().equals(Integer.parseInt("1"))) {
             lw.in(PmDemand::getDemandId, list.stream().map(PmAuditDeptRef::getRefId).collect(Collectors.toList()));
         }