|
|
@ -77,6 +77,12 @@ |
|
|
<if test="linkProductId!=null and linkProductId!=''"> |
|
|
<if test="linkProductId!=null and linkProductId!=''"> |
|
|
and exists( select 1 from xm_product_project_link link where and link.product_id=#{linkProductId} and link.project_id=res.project_id) |
|
|
and exists( select 1 from xm_product_project_link link where and link.product_id=#{linkProductId} and link.project_id=res.project_id) |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="minSupRequires!=null"> |
|
|
|
|
|
and res.sup_requires >= #{minSupRequires} |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="minCapaLvls!=null"> |
|
|
|
|
|
and res.capa_lvls >= #{minCapaLvls} |
|
|
|
|
|
</if> |
|
|
</sql> |
|
|
</sql> |
|
|
<select id="getAvgRate" parameterType="String" resultType="long" > |
|
|
<select id="getAvgRate" parameterType="String" resultType="long" > |
|
|
select avg(res.rate) from xm_task res where res.parent_taskid = #{parentTaskid} |
|
|
select avg(res.rate) from xm_task res where res.parent_taskid = #{parentTaskid} |
|
|
|