瀏覽代碼

国网项目计算项目总预算优化

lgl 5 月之前
父節點
當前提交
0c7cfac3c6
共有 1 個文件被更改,包括 9 次插入9 次删除
  1. 9 9
      src/main/resources/mapper/PrjAnnualbudgetdetailDao.xml

+ 9 - 9
src/main/resources/mapper/PrjAnnualbudgetdetailDao.xml

@@ -610,15 +610,15 @@
610 610
                    from prj_feescheme
611 611
                    where ZB = #{id}
612 612
                      and DWMC LIKE '%国网陕西省电力%'
613
-               ) + (
614
-                   SELECT SUM(puc.SKJE) skje
615
-                   from prj_FeeScheme pfs
616
-                            left join prj_UndertakeCompany puc  on puc.ZB = pfs.ID
617
-                   where
618
-                       pfs.ZB = #{id}
619
-                     and pfs.DWMC  not like '%国网陕西%'
620
-                     and puc.DWMC like '%国网陕西%'
621
-               )
613
+               ) + ISNULL((
614
+            SELECT SUM(puc.SKJE) skje
615
+            from prj_FeeScheme pfs
616
+                     left join prj_UndertakeCompany puc  on puc.ZB = pfs.ID
617
+            where
618
+                pfs.ZB = #{id}
619
+              and pfs.DWMC  not like '%国网陕西%'
620
+              and puc.DWMC like '%国网陕西%'
621
+        ) , 0 )
622 622
 
623 623
     </select>
624 624
     <select id="selectXMZYS_SX" resultType="java.math.BigDecimal">