Browse Source

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

lgl 5 months ago
parent
commit
88300e3b5d
1 changed files with 14 additions and 14 deletions
  1. 14 14
      src/main/resources/mapper/PrjAnnualbudgetdetailDao.xml

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

@@ -605,20 +605,20 @@
605 605
 
606 606
     <select id="selectXMZYS" resultType="java.math.BigDecimal">
607 607
 
608
-        (
609
-         SELECT SUM(CZJE)
610
-        from prj_feescheme
611
-        where ZB = #{id}
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
-              )
608
+        select (
609
+                   SELECT SUM(CZJE)
610
+                   from prj_feescheme
611
+                   where ZB = #{id}
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
+               )
622 622
 
623 623
     </select>
624 624
     <select id="selectXMZYS_SX" resultType="java.math.BigDecimal">