|
|
@@ -86,38 +86,24 @@
|
|
|
name, keyword, category,
|
|
|
summary, introduction, technical_picture_url,
|
|
|
field_a, field_b, field_c,
|
|
|
- maturity, maturity_picture_url, maturity_text_file_url,
|
|
|
- maturity_video_url, innovation, owner_id, owner_name,
|
|
|
- owner_type, owner_id_number, owner_mobile,
|
|
|
- owner_email, owner_postal_address, cooperation_mode,
|
|
|
- transfer_mode, bargaining_mode, transfer_price,
|
|
|
- technical_scene, breakthrough, patent_case,
|
|
|
- awards, team_des, parameter,
|
|
|
- tech_plan_url, business_plan_url, org_id,
|
|
|
- org_name, org_address, org_email,
|
|
|
- org_contacts, org_contacts_mobile,
|
|
|
- manager_id, salesman_id, status,
|
|
|
+ maturity, innovation, owner_id, owner_postal_address, cooperation_mode,
|
|
|
+ transfer_mode, bargaining_mode, transfer_price, patent_case,
|
|
|
+ awards, team_des, parameter, status,
|
|
|
create_time, release_status, release_date,
|
|
|
- deleted_sign, audit_status, tech_broker_id,
|
|
|
- country_name_zh,international_flag,jmrh_flag,boutique,remark,contacts,contact_mobile )
|
|
|
+ deleted_sign, audit_status,international_flag,boutique)
|
|
|
values (#{id,jdbcType=VARCHAR}, #{serialNumber,jdbcType=INTEGER}, #{dataCategory,jdbcType=INTEGER},
|
|
|
#{name,jdbcType=VARCHAR}, #{keyword,jdbcType=VARCHAR}, #{category,jdbcType=INTEGER},
|
|
|
#{summary,jdbcType=VARCHAR}, #{introduction,jdbcType=LONGVARCHAR}, #{technicalPictureUrl,jdbcType=VARCHAR},
|
|
|
#{fieldA,jdbcType=INTEGER}, #{fieldB,jdbcType=INTEGER}, #{fieldC,jdbcType=INTEGER},
|
|
|
- #{maturity,jdbcType=INTEGER}, #{maturityPictureUrl,jdbcType=LONGVARCHAR}, #{maturityTextFileUrl,jdbcType=VARCHAR},
|
|
|
- #{maturityVideoUrl,jdbcType=VARCHAR}, #{innovation,jdbcType=INTEGER}, #{ownerId,jdbcType=VARCHAR}, #{ownerName,jdbcType=VARCHAR},
|
|
|
- #{ownerType,jdbcType=INTEGER}, #{ownerIdNumber,jdbcType=VARCHAR}, #{ownerMobile,jdbcType=VARCHAR},
|
|
|
- #{ownerEmail,jdbcType=VARCHAR}, #{ownerPostalAddress,jdbcType=VARCHAR}, #{cooperationMode,jdbcType=INTEGER},
|
|
|
+ #{maturity,jdbcType=INTEGER}, #{innovation,jdbcType=INTEGER}, #{ownerId,jdbcType=VARCHAR}
|
|
|
+ , #{ownerPostalAddress,jdbcType=VARCHAR}, #{cooperationMode,jdbcType=INTEGER},
|
|
|
#{transferMode,jdbcType=INTEGER}, #{bargainingMode,jdbcType=INTEGER}, #{transferPrice,jdbcType=DECIMAL},
|
|
|
- #{technicalScene,jdbcType=VARCHAR}, #{breakthrough,jdbcType=VARCHAR}, #{patentCase,jdbcType=VARCHAR},
|
|
|
+ #{patentCase,jdbcType=VARCHAR},
|
|
|
#{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},
|
|
|
- #{managerId,jdbcType=VARCHAR}, #{salesmanId,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER},
|
|
|
+ #{status,jdbcType=INTEGER},
|
|
|
#{createTime,jdbcType=TIMESTAMP}, #{releaseStatus,jdbcType=INTEGER}, #{releaseDate,jdbcType=TIMESTAMP},
|
|
|
- #{deletedSign,jdbcType=INTEGER}, #{auditStatus,jdbcType=INTEGER}, #{techBrokerId,jdbcType=VARCHAR},
|
|
|
- #{countryNameZh,jdbcType=VARCHAR}, #{internationalFlag,jdbcType=INTEGER},#{jmrhFlag,jdbcType=INTEGER},#{boutique,jdbcType=INTEGER},#{remark,jdbcType=VARCHAR},#{contacts,jdbcType=VARCHAR},#{contactMobile,jdbcType=VARCHAR})
|
|
|
+ #{deletedSign,jdbcType=INTEGER}, #{auditStatus,jdbcType=INTEGER},
|
|
|
+ #{internationalFlag,jdbcType=INTEGER},#{boutique,jdbcType=INTEGER})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.goafanti.common.model.Achievement">
|
|
|
insert into achievement
|
|
|
@@ -501,36 +487,12 @@
|
|
|
<if test="maturity != null">
|
|
|
maturity = #{maturity,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
- <if test="maturityPictureUrl != null">
|
|
|
- maturity_picture_url = #{maturityPictureUrl,jdbcType=LONGVARCHAR},
|
|
|
- </if>
|
|
|
- <if test="maturityTextFileUrl != null">
|
|
|
- maturity_text_file_url = #{maturityTextFileUrl,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="maturityVideoUrl != null">
|
|
|
- maturity_video_url = #{maturityVideoUrl,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
<if test="innovation != null">
|
|
|
innovation = #{innovation,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="ownerId != null">
|
|
|
owner_id = #{ownerId,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="ownerName != null">
|
|
|
- owner_name = #{ownerName,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="ownerType != null">
|
|
|
- owner_type = #{ownerType,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="ownerIdNumber != null">
|
|
|
- owner_id_number = #{ownerIdNumber,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="ownerMobile != null">
|
|
|
- owner_mobile = #{ownerMobile,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="ownerEmail != null">
|
|
|
- owner_email = #{ownerEmail,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
<if test="ownerPostalAddress != null">
|
|
|
owner_postal_address = #{ownerPostalAddress,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
@@ -546,12 +508,6 @@
|
|
|
<if test="transferPrice != null">
|
|
|
transfer_price = #{transferPrice,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
- <if test="technicalScene != null">
|
|
|
- technical_scene = #{technicalScene,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="breakthrough != null">
|
|
|
- breakthrough = #{breakthrough,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
<if test="patentCase != null">
|
|
|
patent_case = #{patentCase,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
@@ -564,39 +520,6 @@
|
|
|
<if test="parameter != null">
|
|
|
parameter = #{parameter,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="techPlanUrl != null">
|
|
|
- tech_plan_url = #{techPlanUrl,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="businessPlanUrl != null">
|
|
|
- business_plan_url = #{businessPlanUrl,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="orgId != null">
|
|
|
- org_id = #{orgId,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="orgName != null">
|
|
|
- org_name = #{orgName,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="orgAddress != null">
|
|
|
- org_address = #{orgAddress,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="orgEmail != null">
|
|
|
- org_email = #{orgEmail,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="orgContacts != null">
|
|
|
- org_contacts = #{orgContacts,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="orgContactsMobile != null">
|
|
|
- org_contacts_mobile = #{orgContactsMobile,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="contacts != null">
|
|
|
- contacts = #{contacts,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="managerId != null">
|
|
|
- manager_id = #{managerId,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="salesmanId != null">
|
|
|
- salesman_id = #{salesmanId,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
<if test="status != null">
|
|
|
status = #{status,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
@@ -615,30 +538,15 @@
|
|
|
<if test="auditStatus != null">
|
|
|
audit_status = #{auditStatus,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
- <if test="techBrokerId != null">
|
|
|
- tech_broker_id = #{techBrokerId,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
<if test="countryNameZh != null">
|
|
|
country_name_zh = #{countryNameZh,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="internationalFlag != null">
|
|
|
international_flag = #{internationalFlag,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
- <if test="jmrhFlag != null">
|
|
|
- jmrh_flag = #{jmrhFlag,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
<if test="boutique != null">
|
|
|
boutique = #{boutique,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
- <if test="remark != null">
|
|
|
- remark = #{remark,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="contacts != null">
|
|
|
- contacts = #{contacts,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="contactMobile != null">
|
|
|
- contact_mobile = #{contactMobile ,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
@@ -2363,4 +2271,34 @@ audit_status=2
|
|
|
and info_sources=1
|
|
|
order by release_date limit #{0}
|
|
|
</select>
|
|
|
+<select id="ListMyAchievement" resultType="com.goafanti.demand.bo.DemandAchievementListBo">
|
|
|
+select
|
|
|
+ a.id, a.serial_number as serialNumber, a.data_category as dataCategory,
|
|
|
+ a.name, a.release_date as releaseDate, a.audit_status as auditStatus
|
|
|
+ from achievement a
|
|
|
+ where deleted_sign = 0
|
|
|
+ <if test="ownerId != null">
|
|
|
+ and a.owner_id = #{ownerId,jdbcType=VARCHAR}
|
|
|
+ </if>
|
|
|
+ <if test="auditStatus != null">
|
|
|
+ and a.audit_status = #{auditStatus,jdbcType=INTEGER}
|
|
|
+ </if>
|
|
|
+ <if test="name != null">
|
|
|
+ and a.name like "%"#{name,jdbcType=VARCHAR}"%"
|
|
|
+ </if>
|
|
|
+
|
|
|
+ <if test="dataCategory != null and dataCategory != ''">
|
|
|
+ and a.data_category = #{dataCategory,jdbcType=INTEGER}
|
|
|
+ </if>
|
|
|
+ <if test="rStart != null">
|
|
|
+ and a.release_date <![CDATA[ >= ]]> #{rStart,jdbcType=TIMESTAMP}
|
|
|
+ </if>
|
|
|
+ <if test="rEnd != null">
|
|
|
+ and a.release_date <![CDATA[ < ]]> #{rEnd,jdbcType=TIMESTAMP}
|
|
|
+ </if>
|
|
|
+ order by serial_number desc
|
|
|
+ <if test="page_sql!=null">
|
|
|
+ ${page_sql}
|
|
|
+ </if>
|
|
|
+</select>
|
|
|
</mapper>
|