Procházet zdrojové kódy

知识产权赚钱页面企业资质和管理体系

limin před 7 roky
rodič
revize
5df1eb9a0e

Rozdílová data souboru nebyla zobrazena, protože soubor je příliš velký
+ 78 - 58
src/main/java/com/goafanti/common/controller/WebpageController.java


+ 1 - 1
src/main/java/com/goafanti/common/mapper/JtBusinessProjectMapper.xml

@@ -576,7 +576,7 @@
     from jt_business_project jtbp left join `user` u on jtbp.owner_id=u.id
     left join jt_business_category jtbc on jtbc.id =  jtbp.category_id
     left join (select project_id,count(*) as count from project_interest group by project_id) p on jtbp.id=p.project_id
-    left join (select project_id from project_interest where uid= #{uid,jdbcType=VARCHAR} ) x on jtbp.id=x.project_id
+    left join (select project_id from project_interest <if test="uid != null"> where uid= #{uid,jdbcType=VARCHAR} </if>) x on jtbp.id=x.project_id
     where jtbp.id = #{id,jdbcType=VARCHAR}
   </select>