Sfoglia il codice sorgente

年度预算-不能重复创建年度预算限制

lgl 5 mesi fa
parent
commit
e4939cd850
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      src/main/resources/mapper/PrjProjectDao.xml

+ 2 - 1
src/main/resources/mapper/PrjProjectDao.xml

@@ -503,9 +503,10 @@
503 503
         left join prj_Member m on m.XM = p.ID and m.XMJS = 1
504 504
         left join prj_Budget b on b.XM = p.ID and b.FJ = ''
505 505
         left join prj_FeeScheme f on f.ZB = p.ID
506
+        left join prj_AnnualBudget pa on pa.rws = f.zb and pa.nf = f.nf
506 507
         where p.XMMB != 1
507 508
         and p.SPZT = '审批结束'
508
-        and CONCAT(p.ID, f.NF) not in (select CONCAT(RWS, NF) from prj_AnnualBudget where XMLX !='s8')
509
+        and (p.xmlx = 's8' or ( pa.nf is null ))
509 510
         <if test="zwmc != null and zwmc != ''">
510 511
             and p.ZWMC like '%'+#{zwmc}+'%'
511 512
         </if>