|
|
@@ -906,4 +906,14 @@
|
|
|
limit #{size}
|
|
|
</select>
|
|
|
|
|
|
+ <!-- 根据项目标签名称查出拥有该标签的项目 -->
|
|
|
+ <select id="getProjectByTag" resultType="com.goafanti.common.model.JtBusinessProject">
|
|
|
+ select p.* from jt_tag t
|
|
|
+ inner join jt_business_project_tag pt on t.id = pt.tag_id
|
|
|
+ inner join jt_business_project p on pt.project_id = p.id
|
|
|
+ where p.audit_status = 2 and t.name = #{name}
|
|
|
+ order by p.release_date desc
|
|
|
+ limit #{size}
|
|
|
+ </select>
|
|
|
+
|
|
|
</mapper>
|