diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/meeting/mapper/MeetingExpertMapper.xml b/pmapi/src/main/java/com/ningdatech/pmapi/meeting/mapper/MeetingExpertMapper.xml index f1fe5d8..0d0f1ce 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/meeting/mapper/MeetingExpertMapper.xml +++ b/pmapi/src/main/java/com/ningdatech/pmapi/meeting/mapper/MeetingExpertMapper.xml @@ -74,22 +74,22 @@ - and 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.project_id = np.id and ner.create_by = me.expert_id and is_final = true) - and 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.project_id = np.id and ner.create_by = me.expert_id and is_final = true) - and 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.project_id = np.id and ner.create_by = me.expert_id) - and 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.project_id = np.id and ner.create_by = me.expert_id) @@ -104,7 +104,7 @@ inner join meeting_expert me on m.id = me.meeting_id where m.is_inner_project = true - if(me.is_headman,,) + and if(me.is_headman,,) and me.expert_id = #{p.userId}