Browse Source

项目统计修改

anderx 2 years ago
parent
commit
d73dbe5ddf
1 changed files with 7 additions and 0 deletions
  1. 7 0
      src/main/java/com/goafanti/common/mapper/TOrderTaskMapper.xml

+ 7 - 0
src/main/java/com/goafanti/common/mapper/TOrderTaskMapper.xml

@@ -1527,6 +1527,9 @@
     <if test="screen ==0">
       and a.project_status in(0,1,2,3)
     </if>
+    <if test="screen ==1">
+      and ttm.complete_count > 0
+    </if>
     <if test="screen ==2">
       and a.project_status &gt; 3
     </if>
@@ -1629,6 +1632,7 @@
   <select id="selectProjectStatisticsCount" resultType="java.lang.Integer">
     select  count(*)
     from t_order_task a left join t_order_new b on a.order_no =b.order_no
+    left join t_task_mid ttm on a.id=ttm.tid
     <if test="province !=null">
       left join department c on b.order_dep =c.id
     </if>
@@ -1669,6 +1673,9 @@
     <if test="screen ==0">
       and a.project_status in(0,1,2,3)
     </if>
+    <if test="screen ==1">
+      and ttm.complete_count > 0
+    </if>
     <if test="screen ==2">
       and a.project_status &gt; 3
     </if>