Antiloveg 8 years ago
parent
commit
660a1debe6
1 changed files with 4 additions and 2 deletions
  1. 4 2
      src/main/java/com/goafanti/common/mapper/TechProjectMapper.xml

+ 4 - 2
src/main/java/com/goafanti/common/mapper/TechProjectMapper.xml

@@ -341,9 +341,11 @@
 	  FROM  tech_project p
 		LEFT JOIN organization_identity i on i.uid = p.uid
 		LEFT JOIN admin a on p.consultant = a.id 
-    LEFT JOIN tech_website w on p.department = w.id where p.deleted_sign = 0 
+   	    LEFT JOIN tech_website w on p.department = w.id 
+   	    INNER JOIN tech_project_log l on p.id = l.pid
+   	    where p.deleted_sign = 0 
     <if test = "principal != null">
-    and p.id in (select  l.pid from tech_project_log l where l.principal = #{principal,jdbcType = VARCHAR})
+    and l.principal = #{principal,jdbcType = VARCHAR}
     </if>
     ) x where x.wd = 0 or x.wd is null
     <if test="province != null">