|
@@ -90,7 +90,7 @@
|
|
|
transfer_mode, bargaining_mode, transfer_price, patent_case,
|
|
transfer_mode, bargaining_mode, transfer_price, patent_case,
|
|
|
awards, team_des, parameter, status,
|
|
awards, team_des, parameter, status,
|
|
|
create_time, release_status, release_date,
|
|
create_time, release_status, release_date,
|
|
|
- deleted_sign, audit_status,international_flag,boutique,is_hot,info_sources)
|
|
|
|
|
|
|
+ deleted_sign, audit_status,international_flag,boutique,is_hot,info_sources,picture_url_min)
|
|
|
values (#{id,jdbcType=VARCHAR}, #{serialNumber,jdbcType=INTEGER}, #{dataCategory,jdbcType=INTEGER},
|
|
values (#{id,jdbcType=VARCHAR}, #{serialNumber,jdbcType=INTEGER}, #{dataCategory,jdbcType=INTEGER},
|
|
|
#{name,jdbcType=VARCHAR}, #{keyword,jdbcType=VARCHAR}, #{category,jdbcType=INTEGER},
|
|
#{name,jdbcType=VARCHAR}, #{keyword,jdbcType=VARCHAR}, #{category,jdbcType=INTEGER},
|
|
|
#{summary,jdbcType=VARCHAR}, #{introduction,jdbcType=LONGVARCHAR}, #{technicalPictureUrl,jdbcType=VARCHAR},
|
|
#{summary,jdbcType=VARCHAR}, #{introduction,jdbcType=LONGVARCHAR}, #{technicalPictureUrl,jdbcType=VARCHAR},
|
|
@@ -103,7 +103,7 @@
|
|
|
#{status,jdbcType=INTEGER},
|
|
#{status,jdbcType=INTEGER},
|
|
|
#{createTime,jdbcType=TIMESTAMP}, #{releaseStatus,jdbcType=INTEGER}, #{releaseDate,jdbcType=TIMESTAMP},
|
|
#{createTime,jdbcType=TIMESTAMP}, #{releaseStatus,jdbcType=INTEGER}, #{releaseDate,jdbcType=TIMESTAMP},
|
|
|
#{deletedSign,jdbcType=INTEGER}, #{auditStatus,jdbcType=INTEGER},
|
|
#{deletedSign,jdbcType=INTEGER}, #{auditStatus,jdbcType=INTEGER},
|
|
|
- #{internationalFlag,jdbcType=INTEGER},#{boutique,jdbcType=INTEGER},#{isHot,jdbcType=INTEGER},#{infoSources,jdbcType=INTEGER})
|
|
|
|
|
|
|
+ #{internationalFlag,jdbcType=INTEGER},#{boutique,jdbcType=INTEGER},#{isHot,jdbcType=INTEGER},#{infoSources,jdbcType=INTEGER},#{pictureUrlMin,jdbcType=VARCHAR})
|
|
|
</insert>
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.goafanti.common.model.Achievement">
|
|
<insert id="insertSelective" parameterType="com.goafanti.common.model.Achievement">
|
|
|
insert into achievement
|
|
insert into achievement
|
|
@@ -276,6 +276,9 @@
|
|
|
<if test="boutique !=null">
|
|
<if test="boutique !=null">
|
|
|
boutique,
|
|
boutique,
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="pictureUrlMin !=null">
|
|
|
|
|
+ picture_url_min,
|
|
|
|
|
+ </if>
|
|
|
</trim>
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">
|
|
<if test="id != null">
|
|
@@ -446,6 +449,9 @@
|
|
|
<if test="boutique != null">
|
|
<if test="boutique != null">
|
|
|
#{boutique,jdbcType=INTEGER}
|
|
#{boutique,jdbcType=INTEGER}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="pictureUrlMin !=null">
|
|
|
|
|
+ #{pictureUrlMin,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
</trim>
|
|
</trim>
|
|
|
</insert>
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.Achievement">
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.Achievement">
|
|
@@ -553,6 +559,9 @@
|
|
|
<if test="auditInfo != null">
|
|
<if test="auditInfo != null">
|
|
|
audit_info = #{auditInfo,jdbcType=VARCHAR},
|
|
audit_info = #{auditInfo,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="pictureUrlMin !=null">
|
|
|
|
|
+ picture_url_min = #{pictureUrlMin,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
</set>
|
|
</set>
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
</update>
|
|
@@ -585,7 +594,8 @@
|
|
|
audit_status = #{auditStatus,jdbcType=INTEGER},
|
|
audit_status = #{auditStatus,jdbcType=INTEGER},
|
|
|
country_name_zh = #{countryNameZh,jdbcType=VARCHAR},
|
|
country_name_zh = #{countryNameZh,jdbcType=VARCHAR},
|
|
|
international_flag = #{internationalFlag,jdbcType=INTEGER},
|
|
international_flag = #{internationalFlag,jdbcType=INTEGER},
|
|
|
- boutique = #{boutique,jdbcType=INTEGER}
|
|
|
|
|
|
|
+ boutique = #{boutique,jdbcType=INTEGER},
|
|
|
|
|
+ picture_url_min=#{pictureUrlMin,jdbcType=VARCHAR},
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
</update>
|
|
|
|
|
|
|
@@ -1414,9 +1424,9 @@ where
|
|
|
where ai.uid=#{uid,jdbcType=VARCHAR}
|
|
where ai.uid=#{uid,jdbcType=VARCHAR}
|
|
|
</select>
|
|
</select>
|
|
|
<select id="selectAppAchuevementDetail" resultType="com.goafanti.achievement.bo.AchievementEntity">
|
|
<select id="selectAppAchuevementDetail" resultType="com.goafanti.achievement.bo.AchievementEntity">
|
|
|
- select a.id,a.name,a.keyword,a.data_category as dataCategory,a.summary,a.introduction,a.transfer_mode as transferMode,a.status,a.transfer_price as transferPrice ,a.innovation,a.maturity,a.audit_status,a.technical_picture_url as technicalPictureUrl,
|
|
|
|
|
|
|
+ select a.id,a.name,a.keyword,a.data_category as dataCategory,a.category,a.summary,a.introduction,a.transfer_mode as transferMode,a.status,a.transfer_price as transferPrice ,a.innovation,a.maturity,a.audit_status,a.technical_picture_url as technicalPictureUrl,
|
|
|
a.field_a as fieldA,a.field_b as fieldB,a.field_c as fieldC,f.name as field1,f2.name as field2,f3.name as field3,a.release_status as releaseStatus,a.audit_status as auditStatus,a.boutique,a.field_a as fieldA,a.is_hot as isHot,a.release_date as releaseDate,if(isnull(b.count),0,b.count) as interestCount,
|
|
a.field_a as fieldA,a.field_b as fieldB,a.field_c as fieldC,f.name as field1,f2.name as field2,f3.name as field3,a.release_status as releaseStatus,a.audit_status as auditStatus,a.boutique,a.field_a as fieldA,a.is_hot as isHot,a.release_date as releaseDate,if(isnull(b.count),0,b.count) as interestCount,
|
|
|
- if(isnull(d.achievement_id),0,1) interest,ifnull(t.count,0) as orderCount
|
|
|
|
|
|
|
+ if(isnull(d.achievement_id),0,1) interest,ifnull(t.count,0) as orderCount,a.picture_url_min as pictureUrlMin
|
|
|
from achievement a left join industry_category f on a.field_a=f.id
|
|
from achievement a left join industry_category f on a.field_a=f.id
|
|
|
left join industry_category f2 on a.field_b=f2.id
|
|
left join industry_category f2 on a.field_b=f2.id
|
|
|
left join industry_category f3 on a.field_c=f3.id
|
|
left join industry_category f3 on a.field_c=f3.id
|