|
|
@@ -73,6 +73,8 @@
|
|
|
<result column="honor_picture" jdbcType="VARCHAR" property="honorPicture" />
|
|
|
<result column="sales_target" jdbcType="VARCHAR" property="salesTarget" />
|
|
|
<result column="intended_project" jdbcType="VARCHAR" property="intendedProject" />
|
|
|
+ <result column="contacts_dep" jdbcType="VARCHAR" property="contactsDep" />
|
|
|
+ <result column="contacts_position" jdbcType="VARCHAR" property="contactsPosition" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List">
|
|
|
id, `uid`, contacts, contact_mobile, fixed_tel, qq, postal_address, postcode, unit_name,
|
|
|
@@ -86,7 +88,8 @@
|
|
|
enterprise_scale, register_type, foreign_investment, field, tax_authority, ratepay_method,
|
|
|
high_tech_zone, risk_investment, business_scope, high_tech_name, patent_prory_statement_url,
|
|
|
international, review_instructions, investment, year_sales_amount, last_year_research_amount,
|
|
|
- assets, qualification, cooperation_situation, honor_picture, sales_target, intended_project
|
|
|
+ assets, qualification, cooperation_situation, honor_picture, sales_target, intended_project,
|
|
|
+ contacts_dep, contacts_position
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
select
|
|
|
@@ -99,7 +102,7 @@
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</delete>
|
|
|
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.OrganizationIdentity" useGeneratedKeys="true">
|
|
|
- insert into organization_identity (id,`uid`, contacts, contact_mobile,
|
|
|
+ insert into organization_identity (`uid`, contacts, contact_mobile,
|
|
|
fixed_tel, qq, postal_address,
|
|
|
postcode, unit_name, registered_capital,
|
|
|
licence_number, licence_province, licence_city,
|
|
|
@@ -122,9 +125,9 @@
|
|
|
international, review_instructions, investment,
|
|
|
year_sales_amount, last_year_research_amount,
|
|
|
assets, qualification, cooperation_situation,
|
|
|
- honor_picture, sales_target, intended_project
|
|
|
- )
|
|
|
- values (#{id,jdbcType=VARCHAR},#{uid,jdbcType=VARCHAR}, #{contacts,jdbcType=VARCHAR}, #{contactMobile,jdbcType=VARCHAR},
|
|
|
+ honor_picture, sales_target, intended_project,
|
|
|
+ contacts_dep, contacts_position)
|
|
|
+ values (#{uid,jdbcType=VARCHAR}, #{contacts,jdbcType=VARCHAR}, #{contactMobile,jdbcType=VARCHAR},
|
|
|
#{fixedTel,jdbcType=VARCHAR}, #{qq,jdbcType=VARCHAR}, #{postalAddress,jdbcType=VARCHAR},
|
|
|
#{postcode,jdbcType=VARCHAR}, #{unitName,jdbcType=VARCHAR}, #{registeredCapital,jdbcType=DECIMAL},
|
|
|
#{licenceNumber,jdbcType=VARCHAR}, #{licenceProvince,jdbcType=INTEGER}, #{licenceCity,jdbcType=INTEGER},
|
|
|
@@ -147,15 +150,12 @@
|
|
|
#{international,jdbcType=INTEGER}, #{reviewInstructions,jdbcType=VARCHAR}, #{investment,jdbcType=INTEGER},
|
|
|
#{yearSalesAmount,jdbcType=DECIMAL}, #{lastYearResearchAmount,jdbcType=DECIMAL},
|
|
|
#{assets,jdbcType=DECIMAL}, #{qualification,jdbcType=VARCHAR}, #{cooperationSituation,jdbcType=VARCHAR},
|
|
|
- #{honorPicture,jdbcType=VARCHAR}, #{salesTarget,jdbcType=VARCHAR}, #{intendedProject,jdbcType=VARCHAR}
|
|
|
- )
|
|
|
+ #{honorPicture,jdbcType=VARCHAR}, #{salesTarget,jdbcType=VARCHAR}, #{intendedProject,jdbcType=VARCHAR},
|
|
|
+ #{contactsDep,jdbcType=VARCHAR}, #{contactsPosition,jdbcType=VARCHAR})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.OrganizationIdentity" useGeneratedKeys="true">
|
|
|
insert into organization_identity
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
- <if test="id != null">
|
|
|
- `id`,
|
|
|
- </if>
|
|
|
<if test="uid != null">
|
|
|
`uid`,
|
|
|
</if>
|
|
|
@@ -366,11 +366,14 @@
|
|
|
<if test="intendedProject != null">
|
|
|
intended_project,
|
|
|
</if>
|
|
|
+ <if test="contactsDep != null">
|
|
|
+ contacts_dep,
|
|
|
+ </if>
|
|
|
+ <if test="contactsPosition != null">
|
|
|
+ contacts_position,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
- <if test="id != null">
|
|
|
- #{id,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
<if test="uid != null">
|
|
|
#{uid,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
@@ -581,6 +584,12 @@
|
|
|
<if test="intendedProject != null">
|
|
|
#{intendedProject,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="contactsDep != null">
|
|
|
+ #{contactsDep,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="contactsPosition != null">
|
|
|
+ #{contactsPosition,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.OrganizationIdentity">
|
|
|
@@ -796,6 +805,12 @@
|
|
|
<if test="intendedProject != null">
|
|
|
intended_project = #{intendedProject,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="contactsDep != null">
|
|
|
+ contacts_dep = #{contactsDep,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="contactsPosition != null">
|
|
|
+ contacts_position = #{contactsPosition,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
@@ -870,7 +885,9 @@
|
|
|
cooperation_situation = #{cooperationSituation,jdbcType=VARCHAR},
|
|
|
honor_picture = #{honorPicture,jdbcType=VARCHAR},
|
|
|
sales_target = #{salesTarget,jdbcType=VARCHAR},
|
|
|
- intended_project = #{intendedProject,jdbcType=VARCHAR}
|
|
|
+ intended_project = #{intendedProject,jdbcType=VARCHAR},
|
|
|
+ contacts_dep = #{contactsDep,jdbcType=VARCHAR},
|
|
|
+ contacts_position = #{contactsPosition,jdbcType=VARCHAR}
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
<select id="selectOrgIdentityByUserId" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
@@ -1302,6 +1319,12 @@
|
|
|
<if test="intendedProject != null">
|
|
|
intended_project = #{intendedProject,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="contactsDep != null">
|
|
|
+ contacts_dep = #{contactsDep,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="contactsPosition != null">
|
|
|
+ contacts_position = #{contactsPosition,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where uid = #{uid,jdbcType=VARCHAR}
|
|
|
</update>
|