|
@@ -74,11 +74,11 @@ |
|
|
|
|
|
|
|
|
<sql id="reviewedByHeadman"> |
|
|
<sql id="reviewedByHeadman"> |
|
|
<if test="p.reviewed"> |
|
|
<if test="p.reviewed"> |
|
|
exists(select 1 from nd_expert_review ner where ner.project_id = np.id and ner.create_by = |
|
|
|
|
|
|
|
|
exists(select 1 from nd_expert_review ner where ner.meeting_id = m.id and ner.project_id = np.id and ner.create_by = |
|
|
me.expert_id and is_final = true) |
|
|
me.expert_id and is_final = true) |
|
|
</if> |
|
|
</if> |
|
|
<if test="!p.reviewed"> |
|
|
<if test="!p.reviewed"> |
|
|
not exists(select 1 from nd_expert_review ner where ner.project_id = np.id and ner.create_by = |
|
|
|
|
|
|
|
|
not exists(select 1 from nd_expert_review ner where ner.meeting_id = m.id and ner.project_id = np.id and ner.create_by = |
|
|
me.expert_id and is_final = true) |
|
|
me.expert_id and is_final = true) |
|
|
</if> |
|
|
</if> |
|
|
</sql> |
|
|
</sql> |
|
@@ -97,7 +97,7 @@ |
|
|
<select id="pageReviewProjectList" resultType="com.ningdatech.pmapi.meeting.entity.dto.ReviewProjectDTO"> |
|
|
<select id="pageReviewProjectList" resultType="com.ningdatech.pmapi.meeting.entity.dto.ReviewProjectDTO"> |
|
|
select mip.project_id, np.project_name, np.project_type, np.project_year, np.build_org_name, m.type review_type, |
|
|
select mip.project_id, np.project_name, np.project_type, np.project_year, np.build_org_name, m.type review_type, |
|
|
np.biz_domain, np.declare_amount declared_amount, mip.meeting_id, m.type meetingType, m.start_time reviewTime, |
|
|
np.biz_domain, np.declare_amount declared_amount, mip.meeting_id, m.type meetingType, m.start_time reviewTime, |
|
|
m.connecter, m.contact, me.is_headman, (select count(1) from nd_expert_review ner where ner.project_id = np.id |
|
|
|
|
|
|
|
|
m.connecter, m.contact, me.is_headman, (select count(1) from nd_expert_review ner where ner.meeting_id = m.id and ner.project_id = np.id |
|
|
and ner.create_by = me.expert_id) reviewed |
|
|
and ner.create_by = me.expert_id) reviewed |
|
|
from nd_project np inner join meeting_inner_project mip on mip.project_id = np.id |
|
|
from nd_project np inner join meeting_inner_project mip on mip.project_id = np.id |
|
|
inner join meeting m on m.id = mip.meeting_id |
|
|
inner join meeting m on m.id = mip.meeting_id |
|
|