Commit c232c0bd authored by wangxl's avatar wangxl

77

parent 222cdb38
......@@ -83,7 +83,7 @@ public class ComExpertServiceImpl extends BaseServiceImpl<ComExpertDAO, ComExper
criteria.eq("e.spec", vo.getSpec());
}
if (Objects.nonNull(vo.getSpecParentId())) {
criteria.eq("j.parent_id", vo.getSpecParentId());
criteria.and(qw -> qw.eq("j.id", vo.getSpecParentId()).or().eq("k.id", vo.getSpecParentId()).or().eq("m.id", vo.getSpecParentId()));
}
}
......
......@@ -19,10 +19,10 @@
left join system_parameter g on e.nation=g.id and g.type_id=11
left join system_parameter h on e.education=h.id and h.type_id=8
left join system_parameter i on e.title=i.id and i.type_id=7
-- left join system_parameter m on i.parent_id = m.id
left join com_expert_spec p on a.id=p.expert_id
left join system_parameter j on p.spec_id=j.id
-- left join system_parameter k on j.parent_id = k.id
left join system_parameter k on j.parent_id = k.id
left join system_parameter m on k.parent_id = m.id
<where>
${ew.sqlSegment}
</where>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment