|
|
@@ -19,6 +19,7 @@
|
|
|
<result column="maturity_text_file_url" jdbcType="VARCHAR" property="maturityTextFileUrl" />
|
|
|
<result column="maturity_video_url" jdbcType="VARCHAR" property="maturityVideoUrl" />
|
|
|
<result column="innovation" jdbcType="INTEGER" property="innovation" />
|
|
|
+ <result column="owner_id" jdbcType="VARCHAR" property="ownerId" />
|
|
|
<result column="owner_name" jdbcType="VARCHAR" property="ownerName" />
|
|
|
<result column="owner_type" jdbcType="INTEGER" property="ownerType" />
|
|
|
<result column="owner_id_number" jdbcType="VARCHAR" property="ownerIdNumber" />
|
|
|
@@ -55,7 +56,7 @@
|
|
|
<sql id="Base_Column_List">
|
|
|
id, serial_number, data_category, 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_name, owner_type, owner_id_number,
|
|
|
+ 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,
|
|
|
@@ -78,7 +79,7 @@
|
|
|
summary, introduction, technical_picture_url,
|
|
|
field_a, field_b, field_c,
|
|
|
maturity, maturity_picture_url, maturity_text_file_url,
|
|
|
- maturity_video_url, innovation, owner_name,
|
|
|
+ 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,
|
|
|
@@ -95,7 +96,7 @@
|
|
|
#{summary,jdbcType=VARCHAR}, #{introduction,jdbcType=VARCHAR}, #{technicalPictureUrl,jdbcType=VARCHAR},
|
|
|
#{fieldA,jdbcType=INTEGER}, #{fieldB,jdbcType=INTEGER}, #{fieldC,jdbcType=INTEGER},
|
|
|
#{maturity,jdbcType=INTEGER}, #{maturityPictureUrl,jdbcType=VARCHAR}, #{maturityTextFileUrl,jdbcType=VARCHAR},
|
|
|
- #{maturityVideoUrl,jdbcType=VARCHAR}, #{innovation,jdbcType=INTEGER}, #{ownerName,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},
|
|
|
#{transferMode,jdbcType=INTEGER}, #{bargainingMode,jdbcType=INTEGER}, #{transferPrice,jdbcType=DECIMAL},
|
|
|
@@ -162,8 +163,11 @@
|
|
|
<if test="innovation != null">
|
|
|
innovation,
|
|
|
</if>
|
|
|
- <if test="ownerName != null">
|
|
|
- owner_name,
|
|
|
+ <if test="ownerId != null">
|
|
|
+ owner_id,
|
|
|
+ </if>
|
|
|
+ <if test="ownerName != null">
|
|
|
+ owner_name,
|
|
|
</if>
|
|
|
<if test="ownerType != null">
|
|
|
owner_type,
|
|
|
@@ -311,8 +315,11 @@
|
|
|
<if test="innovation != null">
|
|
|
#{innovation,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
- <if test="ownerName != null">
|
|
|
- #{ownerName,jdbcType=VARCHAR},
|
|
|
+ <if test="ownerId != null">
|
|
|
+ #{ownerId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="ownerName != null">
|
|
|
+ #{ownerName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="ownerType != null">
|
|
|
#{ownerType,jdbcType=INTEGER},
|
|
|
@@ -460,8 +467,11 @@
|
|
|
<if test="innovation != null">
|
|
|
innovation = #{innovation,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
- <if test="ownerName != null">
|
|
|
- owner_name = #{ownerName,jdbcType=VARCHAR},
|
|
|
+ <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},
|
|
|
@@ -577,6 +587,7 @@
|
|
|
maturity_text_file_url = #{maturityTextFileUrl,jdbcType=VARCHAR},
|
|
|
maturity_video_url = #{maturityVideoUrl,jdbcType=VARCHAR},
|
|
|
innovation = #{innovation,jdbcType=INTEGER},
|
|
|
+ owner_id = #{ownerId,jdbcType=VARCHAR},
|
|
|
owner_name = #{ownerName,jdbcType=VARCHAR},
|
|
|
owner_type = #{ownerType,jdbcType=INTEGER},
|
|
|
owner_id_number = #{ownerIdNumber,jdbcType=VARCHAR},
|
|
|
@@ -698,5 +709,80 @@
|
|
|
<foreach item="item" index="index" collection="list" open="(" separator="," close=")">
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
- </update>
|
|
|
+ </update>
|
|
|
+
|
|
|
+ <select id="findAchievementListByPage" parameterType="String" resultType="com.goafanti.achievement.bo.AchievementListBo">
|
|
|
+ select
|
|
|
+ id, serial_number as serialNumber, data_category as dataCategory,
|
|
|
+ name, keyword, category,
|
|
|
+ owner_name as ownerName, owner_type as ownerType, owner_mobile as ownerMobile,
|
|
|
+ status, release_date as releaseDate
|
|
|
+ from achievement
|
|
|
+ where deleted_sign = 0 and owner_id = #{ownerId, jdbcType=VARCHAR}
|
|
|
+ <if test="serialNumber != null">
|
|
|
+ and serial_number = #{serialNumber,jdbcType=INTEGER}
|
|
|
+ </if>
|
|
|
+ <if test="name != null">
|
|
|
+ and name = #{name,jdbcType=VARCHAR}
|
|
|
+ </if>
|
|
|
+ <if test="keyword != null">
|
|
|
+ and keyword like "%"#{keyword,jdbcType=VARCHAR}"%"
|
|
|
+ </if>
|
|
|
+ <if test="category != null">
|
|
|
+ and category = #{category,jdbcType=INTEGER}
|
|
|
+ </if>
|
|
|
+ <if test="ownerType != null">
|
|
|
+ and owner_type = #{ownerType,jdbcType=INTEGER}
|
|
|
+ </if>
|
|
|
+ <if test="status != null">
|
|
|
+ and status = #{status,jdbcType=INTEGER}
|
|
|
+ </if>
|
|
|
+ <if test="rStart != null">
|
|
|
+ and release_date <![CDATA[ > ]]> #{rStart,jdbcType=TIMESTAMP}
|
|
|
+ </if>
|
|
|
+ <if test="rEnd != null">
|
|
|
+ and release_date <![CDATA[ < ]]> #{rEnd,jdbcType=TIMESTAMP}
|
|
|
+ </if>
|
|
|
+ <if test="releaseStatus != null">
|
|
|
+ and release_status = #{releaseStatus,jdbcType=INTEGER}
|
|
|
+ </if>
|
|
|
+ order by serial_number desc
|
|
|
+ <if test="page_sql!=null">
|
|
|
+ ${page_sql}
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="findAchievementCount" parameterType="String" resultType="java.lang.Integer">
|
|
|
+ select
|
|
|
+ count(1)
|
|
|
+ from achievement
|
|
|
+ where deleted_sign = 0 and owner_id = #{ownerId, jdbcType=VARCHAR}
|
|
|
+ <if test="serialNumber != null">
|
|
|
+ and serial_number = #{serialNumber,jdbcType=INTEGER}
|
|
|
+ </if>
|
|
|
+ <if test="name != null">
|
|
|
+ and name = #{name,jdbcType=VARCHAR}
|
|
|
+ </if>
|
|
|
+ <if test="keyword != null">
|
|
|
+ and keyword like "%"#{keyword,jdbcType=VARCHAR}"%"
|
|
|
+ </if>
|
|
|
+ <if test="category != null">
|
|
|
+ and category = #{category,jdbcType=INTEGER}
|
|
|
+ </if>
|
|
|
+ <if test="ownerType != null">
|
|
|
+ and owner_type = #{ownerType,jdbcType=INTEGER}
|
|
|
+ </if>
|
|
|
+ <if test="status != null">
|
|
|
+ and status = #{status,jdbcType=INTEGER}
|
|
|
+ </if>
|
|
|
+ <if test="rStart != null">
|
|
|
+ and release_date <![CDATA[ > ]]> #{rStart,jdbcType=TIMESTAMP}
|
|
|
+ </if>
|
|
|
+ <if test="rEnd != null">
|
|
|
+ and release_date <![CDATA[ < ]]> #{rEnd,jdbcType=TIMESTAMP}
|
|
|
+ </if>
|
|
|
+ <if test="releaseStatus != null">
|
|
|
+ and release_status = #{releaseStatus,jdbcType=INTEGER}
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
</mapper>
|