소스 검색

子项目报表只统计审核通过的

QuYueTing 10 달 전
부모
커밋
b3bd5cac8c
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      fhKeeper/formulahousekeeper/management-platform/src/main/resources/mapper/ProjectMapper.xml

+ 2 - 0
fhKeeper/formulahousekeeper/management-platform/src/main/resources/mapper/ProjectMapper.xml

@@ -218,6 +218,7 @@
         left join project b on b.id=a.project_id
         left join report c on c.sub_project_id=a.id
         where a.company_id=#{companyId}
+        and c.state = 1
         <if test="startDate != null and endDate != null">
             and c.create_date between #{startDate} and #{endDate}
         </if>
@@ -242,6 +243,7 @@
         left join project b on b.id=a.project_id
         left join report c on c.sub_project_id=a.id
         where a.company_id=#{companyId}
+        and c.state = 1
         <if test="startDate != null and endDate != null">
             and c.create_date between #{startDate} and #{endDate}
         </if>