|
|
|
@ -16,20 +16,22 @@ |
|
|
|
|
|
|
|
|
|
|
|
<select id="listWithProjectInfo" parameterType="HashMap" resultType="HashMap"> |
|
|
|
select res.*,p.name as project_name,p.id as project_id,i.iteration_name from xm_iteration_link res inner join xm_project p on res.pro_id=p.id |
|
|
|
select res.*,p.name as project_name,p.id as project_id,i.iteration_name,i.seq_no from xm_iteration_link res inner join xm_project p on res.pro_id=p.id |
|
|
|
inner join xm_iteration i on i.id=res.iteration_id |
|
|
|
<where> |
|
|
|
<include refid="whereForMap"/> |
|
|
|
<include refid="where"/> |
|
|
|
</where> |
|
|
|
order by i.seq_no desc |
|
|
|
</select> |
|
|
|
<select id="listWithProductInfo" parameterType="HashMap" resultType="HashMap"> |
|
|
|
select res.*,p.product_name,p.id as product_id,i.iteration_name from xm_iteration_link res inner join xm_product p on res.pro_id=p.id |
|
|
|
select res.*,p.product_name,p.id as product_id,i.iteration_name,i.seq_no from xm_iteration_link res inner join xm_product p on res.pro_id=p.id |
|
|
|
inner join xm_iteration i on i.id=res.iteration_id |
|
|
|
<where> |
|
|
|
<include refid="whereForMap"/> |
|
|
|
<include refid="where"/> |
|
|
|
</where> |
|
|
|
order by i.seq_no desc |
|
|
|
</select> |
|
|
|
<!--结束 自定义sql函数区域--> |
|
|
|
|
|
|
|
|