feat(项目管理产品需求重构): 完善产品中的需求规格功能开发
查询用户需求和需规评审人以及评审时间时应查询最新一条已通过评审的记录 Signed-off-by: OTTO <731554297@qq.com>
This commit is contained in:
parent
3f9fd173c6
commit
87de8b7f90
|
|
@ -69,7 +69,7 @@
|
|||
<select id="selectUserReqLatestReviewRecord" parameterType="Long"
|
||||
resultMap="PmsProductReqOperationRecordResult">
|
||||
<include refid="selectPmsProductReqOperationRecordVo"/>
|
||||
where type = 'reviewUserReq'
|
||||
where type = 'reviewUserReq' and operation = 'pass'
|
||||
and product_requirement_id=#{reqId}
|
||||
order by create_time desc
|
||||
limit 1
|
||||
|
|
@ -86,7 +86,7 @@
|
|||
<select id="selectReqSpecsLatestReviewRecord" parameterType="Long"
|
||||
resultMap="PmsProductReqOperationRecordResult">
|
||||
<include refid="selectPmsProductReqOperationRecordVo"/>
|
||||
where type = 'reviewReqSpecs'
|
||||
where type = 'reviewReqSpecs' and operation = 'pass'
|
||||
and product_requirement_id=#{reqId}
|
||||
order by create_time desc
|
||||
limit 1
|
||||
|
|
|
|||
|
|
@ -99,9 +99,10 @@
|
|||
record.review_time,
|
||||
record.content as review_content
|
||||
from pms_product_requirement as ppr
|
||||
left join (select product_requirement_id, MAX(operating_time) as review_time, content
|
||||
left join (select product_requirement_id, MAX(create_time) as review_time, content
|
||||
from pms_product_req_operation_record
|
||||
where type = 'reviewUserReq'
|
||||
and operation = 'pass'
|
||||
group by product_requirement_id, content) as record
|
||||
on record.product_requirement_id = ppr.id
|
||||
</sql>
|
||||
|
|
|
|||
Loading…
Reference in New Issue