|
@@ -14,6 +14,8 @@
|
|
<result property="signTime" column="sign_time"/>
|
|
<result property="signTime" column="sign_time"/>
|
|
<result property="delFlag" column="del_flag"/>
|
|
<result property="delFlag" column="del_flag"/>
|
|
<result property="signType" column="sign_type"/>
|
|
<result property="signType" column="sign_type"/>
|
|
|
|
+ <result property="personName" column="person_name"/>
|
|
|
|
+ <result property="companyName" column="company_name"/>
|
|
</resultMap>
|
|
</resultMap>
|
|
<insert id="insert" parameterType="com.jpsoft.shinestar.modules.base.entity.MeetingPerson">
|
|
<insert id="insert" parameterType="com.jpsoft.shinestar.modules.base.entity.MeetingPerson">
|
|
<!--
|
|
<!--
|
|
@@ -85,7 +87,14 @@
|
|
select * from base_meeting_person
|
|
select * from base_meeting_person
|
|
</select>
|
|
</select>
|
|
<select id="findByMeetingId" resultMap="MeetingPersonMap">
|
|
<select id="findByMeetingId" resultMap="MeetingPersonMap">
|
|
- select * from base_meeting_person where del_flag=false and meetingInfo_id=#{0}
|
|
|
|
|
|
+ select a.*,
|
|
|
|
+ b.name_ as person_name,
|
|
|
|
+ c.name_ as company_name
|
|
|
|
+ from base_meeting_person a
|
|
|
|
+ inner join base_person_info b on a.person_id = b.id_
|
|
|
|
+ inner join base_company_info c on b.company_id = c.id_
|
|
|
|
+ where a.del_flag=false
|
|
|
|
+ and a.meetingInfo_id=#{0}
|
|
</select>
|
|
</select>
|
|
<select id="findByMeetingIdAndPersonId" resultMap="MeetingPersonMap">
|
|
<select id="findByMeetingIdAndPersonId" resultMap="MeetingPersonMap">
|
|
select * from base_meeting_person where del_flag=false and meetingInfo_id = #{meetingId} and person_id =
|
|
select * from base_meeting_person where del_flag=false and meetingInfo_id = #{meetingId} and person_id =
|