|
|
@@ -44,7 +44,7 @@
|
|
|
<result column="org_email" jdbcType="VARCHAR" property="orgEmail" />
|
|
|
<result column="org_contacts" jdbcType="VARCHAR" property="orgContacts" />
|
|
|
<result column="org_contacts_mobile" jdbcType="VARCHAR" property="orgContactsMobile" />
|
|
|
- <result column="contacts" jdbcType="VARCHAR" property="contacts" />
|
|
|
+ <result column="contacts" jdbcType="INTEGER" property="contacts" />
|
|
|
<result column="manager_id" jdbcType="VARCHAR" property="managerId" />
|
|
|
<result column="salesman_id" jdbcType="VARCHAR" property="salesmanId" />
|
|
|
<result column="status" jdbcType="INTEGER" property="status" />
|
|
|
@@ -106,7 +106,7 @@
|
|
|
#{awards,jdbcType=VARCHAR}, #{teamDes,jdbcType=VARCHAR}, #{parameter,jdbcType=VARCHAR},
|
|
|
#{techPlanUrl,jdbcType=VARCHAR}, #{businessPlanUrl,jdbcType=VARCHAR}, #{orgId,jdbcType=VARCHAR},
|
|
|
#{orgName,jdbcType=VARCHAR}, #{orgAddress,jdbcType=VARCHAR}, #{orgEmail,jdbcType=VARCHAR},
|
|
|
- #{orgContacts,jdbcType=VARCHAR}, #{orgContactsMobile,jdbcType=VARCHAR}, #{contacts,jdbcType=VARCHAR},
|
|
|
+ #{orgContacts,jdbcType=VARCHAR}, #{orgContactsMobile,jdbcType=VARCHAR}, #{contacts,jdbcType=INTEGER},
|
|
|
#{managerId,jdbcType=VARCHAR}, #{salesmanId,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER},
|
|
|
#{createTime,jdbcType=TIMESTAMP}, #{releaseStatus,jdbcType=INTEGER}, #{releaseDate,jdbcType=TIMESTAMP},
|
|
|
#{deletedSign,jdbcType=INTEGER}, #{auditStatus,jdbcType=INTEGER}, #{techBrokerId,jdbcType=VARCHAR})
|
|
|
@@ -399,7 +399,7 @@
|
|
|
#{orgContactsMobile,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="contacts != null">
|
|
|
- #{contacts,jdbcType=VARCHAR},
|
|
|
+ #{contacts,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="managerId != null">
|
|
|
#{managerId,jdbcType=VARCHAR},
|
|
|
@@ -557,7 +557,7 @@
|
|
|
org_contacts_mobile = #{orgContactsMobile,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="contacts != null">
|
|
|
- contacts = #{contacts,jdbcType=VARCHAR},
|
|
|
+ contacts = #{contacts,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="managerId != null">
|
|
|
manager_id = #{managerId,jdbcType=VARCHAR},
|
|
|
@@ -632,7 +632,7 @@
|
|
|
org_email = #{orgEmail,jdbcType=VARCHAR},
|
|
|
org_contacts = #{orgContacts,jdbcType=VARCHAR},
|
|
|
org_contacts_mobile = #{orgContactsMobile,jdbcType=VARCHAR},
|
|
|
- contacts = #{contacts,jdbcType=VARCHAR},
|
|
|
+ contacts = #{contacts,jdbcType=INTEGER},
|
|
|
manager_id = #{managerId,jdbcType=VARCHAR},
|
|
|
salesman_id = #{salesmanId,jdbcType=VARCHAR},
|
|
|
status = #{status,jdbcType=INTEGER},
|
|
|
@@ -922,16 +922,39 @@
|
|
|
a.transfer_price as transferPrice, a.technical_scene as technicalScene, a.breakthrough,
|
|
|
a.patent_case as patentCase, a.awards, a.team_des as teamDes,
|
|
|
a.parameter, a.tech_plan_url as techPlanUrl, a.business_plan_url as businessPlanUrl,
|
|
|
- a.org_id as orgId, a.org_name as orgName, a.org_address as orgAddress,
|
|
|
- a.org_email as orgEmail, a.org_contacts as orgContacts, a.org_contacts_mobile as orgContactsMobile,
|
|
|
a.contacts, a.manager_id as managerId, a.salesman_id as salesmanId,
|
|
|
a.create_time as createTime, a.release_status as releaseStatus,
|
|
|
a.release_date as releaseDate, a.audit_status as auditStatus, a.tech_broker_id as techBrokerId,
|
|
|
- ui.username as iOwnerName, ui.province, ui.city, ui.area, u.email as iOwnerEmail
|
|
|
+ ui.username as iOwnerName, ui.province, ui.city, ui.area, u.email as iOwnerEmail,
|
|
|
+ ui.id_number as iOwnerIdNumber, u.mobile as iOwnerMobile
|
|
|
from achievement a
|
|
|
left join user_identity ui on a.owner_id = ui.uid
|
|
|
- left join organization_identity oi on a.org_id = oi.uid
|
|
|
left join user u on u.id = a.owner_id
|
|
|
- where a.id = #id,jdbcType=VARCHAR}
|
|
|
+ where a.id = #{id,jdbcType=VARCHAR}
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="selectOrgOwnerDetail" parameterType="java.lang.String" resultType="com.goafanti.achievement.bo.AchievementOrgOwnerDetailBo">
|
|
|
+ select
|
|
|
+ a.id, a.serial_number as serialNumber, a.data_category as dataCategory,
|
|
|
+ a.name, a.keyword, a.category,
|
|
|
+ a.summary, a.introduction, a.technical_picture_url as technicalPictureUrl,
|
|
|
+ a.field_a as fieldA, a.field_b as fieldB, a.field_c as fieldC,
|
|
|
+ a.maturity, a.maturity_picture_url as maturityPictureUrl, a.maturity_text_file_url as maturityTextFileUrl,
|
|
|
+ a.maturity_video_url as maturityVideoUrl, a.innovation, a.owner_id as ownerId,
|
|
|
+ a.owner_name as ownerName, a.owner_type as ownerType, a.owner_id_number as ownerIdNumber,
|
|
|
+ a.owner_mobile as ownerMobile, a.owner_email as ownerEmail, a.owner_postal_address as ownerPostalAddress,
|
|
|
+ a.cooperation_mode as cooperationMode, a.transfer_mode as transferMode, a.bargaining_mode as bargainingMode,
|
|
|
+ a.transfer_price as transferPrice, a.technical_scene as technicalScene, a.breakthrough,
|
|
|
+ a.patent_case as patentCase, a.awards, a.team_des as teamDes,
|
|
|
+ a.parameter, a.tech_plan_url as techPlanUrl, a.business_plan_url as businessPlanUrl,
|
|
|
+ a.contacts, a.manager_id as managerId, a.salesman_id as salesmanId,
|
|
|
+ a.create_time as createTime, a.release_status as releaseStatus,
|
|
|
+ a.release_date as releaseDate, a.audit_status as auditStatus, a.tech_broker_id as techBrokerId,
|
|
|
+ oi.unit_name as iOwnerName, oi.postal_address as iOwnerPostalAddress, u.email as iOwnerEmail,
|
|
|
+ oi.org_code as iOwnerIdNumber
|
|
|
+ from achievement a
|
|
|
+ left join organization_identity oi on a.owner_id = oi.uid
|
|
|
+ left join user u on u.id = a.owner_id
|
|
|
+ where a.id = #{id,jdbcType=VARCHAR}
|
|
|
</select>
|
|
|
</mapper>
|