|
|
@@ -56,6 +56,7 @@
|
|
|
<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" />
|
|
|
+ <result column="jmrh_flag" jdbcType="INTEGER" property="jmrhFlag" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List">
|
|
|
id, serial_number, data_category, name, keyword, category, summary, introduction,
|
|
|
@@ -66,7 +67,7 @@
|
|
|
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,
|
|
|
- country_name_zh,international_flag
|
|
|
+ country_name_zh,international_flag,jmrh_flag
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
select
|
|
|
@@ -96,7 +97,7 @@
|
|
|
manager_id, salesman_id, status,
|
|
|
create_time, release_status, release_date,
|
|
|
deleted_sign, audit_status, tech_broker_id,
|
|
|
- country_name_zh,international_flag)
|
|
|
+ country_name_zh,international_flag,jmrh_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},
|
|
|
@@ -114,7 +115,7 @@
|
|
|
#{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},
|
|
|
- #{countryNameZh,jdbcType=VARCHAR}, #{internationalFlag,jdbcType=INTEGER})
|
|
|
+ #{countryNameZh,jdbcType=VARCHAR}, #{internationalFlag,jdbcType=INTEGER},#{jmrhFlag,jdbcType=INTEGER})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.goafanti.common.model.Achievement">
|
|
|
insert into achievement
|
|
|
@@ -281,6 +282,9 @@
|
|
|
<if test="internationalFlag != null">
|
|
|
international_flag,
|
|
|
</if>
|
|
|
+ <if test="jmrhFlag != null">
|
|
|
+ jmrh_flag,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">
|
|
|
@@ -442,9 +446,12 @@
|
|
|
<if test="countryNameZh != null">
|
|
|
#{countryNameZh,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="internationalFlag != null">
|
|
|
+ <if test="internationalFlag != null">
|
|
|
#{internationalFlag,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="jmrhFlag != null">
|
|
|
+ #{jmrhFlag,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.Achievement">
|
|
|
@@ -609,6 +616,9 @@
|
|
|
<if test="internationalFlag != null">
|
|
|
international_flag = #{internationalFlag,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="jmrhFlag != null">
|
|
|
+ jmrh_flag = #{jmrhFlag,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
@@ -666,7 +676,8 @@
|
|
|
audit_status = #{auditStatus,jdbcType=INTEGER},
|
|
|
tech_broker_id = #{techBrokerId,jdbcType=VARCHAR},
|
|
|
country_name_zh = #{countryNameZh,jdbcType=VARCHAR},
|
|
|
- international_flag = #{internationalFlag,jdbcType=INTEGER}
|
|
|
+ international_flag = #{internationalFlag,jdbcType=INTEGER},
|
|
|
+ jmrh_flag = #{jmrhFlag,jdbcType=INTEGER}
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
|
|
|
@@ -1376,4 +1387,37 @@
|
|
|
a.release_date desc
|
|
|
limit 0,5
|
|
|
</select>
|
|
|
+ <select id="selectJmrhAchievement" resultType="com.goafanti.residentIntegration.bo.ResidentIntegrationBo">
|
|
|
+ select
|
|
|
+ id, name
|
|
|
+ from
|
|
|
+ achievement t
|
|
|
+ where
|
|
|
+ jmrh_flag = 0 and data_category = 0
|
|
|
+ limit 5;
|
|
|
+ </select>
|
|
|
+ <select id="selectJmrTechnology" resultType="com.goafanti.residentIntegration.bo.ResidentIntegrationBo">
|
|
|
+ select
|
|
|
+ id, name, maturity
|
|
|
+ from
|
|
|
+ achievement t
|
|
|
+ where
|
|
|
+ jmrh_flag = 0 and data_category = 1
|
|
|
+ limit 5;
|
|
|
+ </select>
|
|
|
+ <select id="selectJmrProject" resultType="com.goafanti.residentIntegration.bo.ResidentIntegrationBo">
|
|
|
+ select
|
|
|
+ a.id, a.name, c.residence_city as residenceCity,d.name as industry
|
|
|
+ from
|
|
|
+ achievement a
|
|
|
+ left join
|
|
|
+ user b on a.owner_id = b.id
|
|
|
+ left join
|
|
|
+ user_info c on b.id = c.uid
|
|
|
+ left join
|
|
|
+ field_glossory d on a.field_a = d.id
|
|
|
+ where
|
|
|
+ jmrh_flag = 0 and data_category = 2
|
|
|
+ limit 5;
|
|
|
+ </select>
|
|
|
</mapper>
|