|
|
@@ -54,6 +54,8 @@
|
|
|
<result column="deleted_sign" jdbcType="INTEGER" property="deletedSign" />
|
|
|
<result column="audit_status" jdbcType="INTEGER" property="auditStatus" />
|
|
|
<result column="tech_broker_id" jdbcType="VARCHAR" property="techBrokerId" />
|
|
|
+ <result column="country_name_zh" jdbcType="VARCHAR" property="countryNameZh" />
|
|
|
+ <result column="international_flag" jdbcType="INTEGER" property="internationalFlag" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List">
|
|
|
id, serial_number, data_category, name, keyword, category, summary, introduction,
|
|
|
@@ -63,7 +65,8 @@
|
|
|
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, contacts, manager_id, salesman_id,
|
|
|
- status, create_time, release_status, release_date, deleted_sign, audit_status, tech_broker_id
|
|
|
+ status, create_time, release_status, release_date, deleted_sign, audit_status, tech_broker_id,
|
|
|
+ country_name_zh,international_flag
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
select
|
|
|
@@ -92,7 +95,8 @@
|
|
|
org_contacts, org_contacts_mobile, contacts,
|
|
|
manager_id, salesman_id, status,
|
|
|
create_time, release_status, release_date,
|
|
|
- deleted_sign, audit_status, tech_broker_id)
|
|
|
+ deleted_sign, audit_status, tech_broker_id,
|
|
|
+ country_name_zh,international_flag)
|
|
|
values (#{id,jdbcType=VARCHAR}, #{serialNumber,jdbcType=INTEGER}, #{dataCategory,jdbcType=INTEGER},
|
|
|
#{name,jdbcType=VARCHAR}, #{keyword,jdbcType=VARCHAR}, #{category,jdbcType=INTEGER},
|
|
|
#{summary,jdbcType=VARCHAR}, #{introduction,jdbcType=VARCHAR}, #{technicalPictureUrl,jdbcType=VARCHAR},
|
|
|
@@ -109,7 +113,8 @@
|
|
|
#{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})
|
|
|
+ #{deletedSign,jdbcType=INTEGER}, #{auditStatus,jdbcType=INTEGER}, #{techBrokerId,jdbcType=VARCHAR},
|
|
|
+ #{countryNameZh,jdbcType=VARCHAR}, #{internationalFlag,jdbcType=INTEGER})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.goafanti.common.model.Achievement">
|
|
|
insert into achievement
|
|
|
@@ -270,6 +275,12 @@
|
|
|
<if test="techBrokerId != null">
|
|
|
tech_broker_id,
|
|
|
</if>
|
|
|
+ <if test="countryNameZh != null">
|
|
|
+ country_name_zh,
|
|
|
+ </if>
|
|
|
+ <if test="internationalFlag != null">
|
|
|
+ international_flag,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">
|
|
|
@@ -428,6 +439,12 @@
|
|
|
<if test="techBrokerId != null">
|
|
|
#{techBrokerId,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="countryNameZh != null">
|
|
|
+ #{countryNameZh,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="internationalFlag != null">
|
|
|
+ #{internationalFlag,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.Achievement">
|
|
|
@@ -586,6 +603,12 @@
|
|
|
<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>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
@@ -641,7 +664,9 @@
|
|
|
release_date = #{releaseDate,jdbcType=TIMESTAMP},
|
|
|
deleted_sign = #{deletedSign,jdbcType=INTEGER},
|
|
|
audit_status = #{auditStatus,jdbcType=INTEGER},
|
|
|
- tech_broker_id = #{techBrokerId,jdbcType=VARCHAR}
|
|
|
+ tech_broker_id = #{techBrokerId,jdbcType=VARCHAR},
|
|
|
+ country_name_zh = #{countryNameZh,jdbcType=VARCHAR},
|
|
|
+ international_flag = #{internationalFlag,jdbcType=INTEGER}
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
|
|
|
@@ -1325,4 +1350,21 @@
|
|
|
set owner_id = null
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
+
|
|
|
+ <select id="selectInternationalAchievement" resultType="com.goafanti.portal.bo.InternationalListBo">
|
|
|
+ select
|
|
|
+ a.id as uid,
|
|
|
+ a.name as techName,
|
|
|
+ a.introduction,
|
|
|
+ a.owner_name as ownerName,
|
|
|
+ a.technical_picture_url as technicalPictureUrl,
|
|
|
+ a.country_name_zh as countryNameZh
|
|
|
+ from achievement a
|
|
|
+ where
|
|
|
+ a.deleted_sign = 0 and a.data_category = 1
|
|
|
+ <!-- and a.release_status = 1 and nternational_flag = 1 -->
|
|
|
+ order by
|
|
|
+ a.release_date desc
|
|
|
+ limit 0,5
|
|
|
+ </select>
|
|
|
</mapper>
|