|
|
@@ -90,7 +90,7 @@
|
|
|
transfer_mode, bargaining_mode, transfer_price, patent_case,
|
|
|
awards, team_des, parameter, status,
|
|
|
create_time, release_status, release_date,
|
|
|
- deleted_sign, audit_status,international_flag,boutique,is_hot)
|
|
|
+ deleted_sign, audit_status,international_flag,boutique,is_hot,info_sources)
|
|
|
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},
|
|
|
@@ -103,7 +103,7 @@
|
|
|
#{status,jdbcType=INTEGER},
|
|
|
#{createTime,jdbcType=TIMESTAMP}, #{releaseStatus,jdbcType=INTEGER}, #{releaseDate,jdbcType=TIMESTAMP},
|
|
|
#{deletedSign,jdbcType=INTEGER}, #{auditStatus,jdbcType=INTEGER},
|
|
|
- #{internationalFlag,jdbcType=INTEGER},#{boutique,jdbcType=INTEGER},#{isHot,jdbcType=INTEGER})
|
|
|
+ #{internationalFlag,jdbcType=INTEGER},#{boutique,jdbcType=INTEGER},#{isHot,jdbcType=INTEGER},#{infoSources,jdbcType=INTEGER})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.goafanti.common.model.Achievement">
|
|
|
insert into achievement
|
|
|
@@ -550,6 +550,9 @@
|
|
|
<if test="isHot != null">
|
|
|
is_hot = #{isHot,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="auditInfo != null">
|
|
|
+ audit_info = #{auditInfo,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
@@ -1241,18 +1244,18 @@ order by release_date limit #{0}
|
|
|
a.release_date as releaseDate,
|
|
|
a.audit_status as auditStatus,
|
|
|
a.boutique,
|
|
|
- b.identify_name as ownerName,
|
|
|
+ b.identify_name as ownerName
|
|
|
from achievement a
|
|
|
left join user b on a.owner_id = b.id
|
|
|
- where a.deleted_sign = 0
|
|
|
+ where a.deleted_sign = 0 and info_sources=1
|
|
|
<if test="ownerId != null">
|
|
|
and a.owner_id = #{ownerId,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
<if test="name != null">
|
|
|
- and a.name like concat('%',#{name,jdbcType=VARCHAR},'%'}
|
|
|
+ and a.name like concat('%',#{name,jdbcType=VARCHAR},'%');
|
|
|
</if>
|
|
|
<if test="ownerName != null">
|
|
|
- and b.identify_name like concat('%',#{ownerName,jdbcType=VARCHAR},'%')
|
|
|
+ and b.identify_name =#{ownerName,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
<if test="auditStatus != null">
|
|
|
and a.audit_status = #{auditStatus,jdbcType=INTEGER}
|
|
|
@@ -1269,7 +1272,6 @@ order by release_date limit #{0}
|
|
|
<if test="endDate != null">
|
|
|
and a.release_date <![CDATA[ =< ]]> #{endDate,jdbcType=TIMESTAMP}
|
|
|
</if>
|
|
|
- order by serial_number desc
|
|
|
<if test="page_sql!=null">
|
|
|
${page_sql}
|
|
|
</if>
|
|
|
@@ -1279,7 +1281,7 @@ order by release_date limit #{0}
|
|
|
count(0)
|
|
|
from achievement a
|
|
|
left join user b on a.owner_id = b.id
|
|
|
- where a.deleted_sign = 0
|
|
|
+ where a.deleted_sign = 0 and info_sources=1
|
|
|
<if test="ownerId != null">
|
|
|
and a.owner_id = #{ownerId,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
@@ -1287,7 +1289,7 @@ order by release_date limit #{0}
|
|
|
and a.name like concat('%',#{name,jdbcType=VARCHAR},'%'}
|
|
|
</if>
|
|
|
<if test="ownerName != null">
|
|
|
- and b.identify_name like concat('%',#{ownerName,jdbcType=VARCHAR},'%')
|
|
|
+ and b.identify_name=#{ownerName,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
<if test="auditStatus != null">
|
|
|
and a.audit_status = #{auditStatus,jdbcType=INTEGER}
|
|
|
@@ -1329,7 +1331,8 @@ a.id,
|
|
|
a.bargaining_mode as bargainingMode,
|
|
|
a.boutique,
|
|
|
a.is_hot as isHot,
|
|
|
- a.audit_status as auditStatus
|
|
|
+ a.audit_status as auditStatus,
|
|
|
+ a.audit_info as auditInfo
|
|
|
from
|
|
|
achievement a
|
|
|
left join field_glossory fg on
|
|
|
@@ -1339,4 +1342,5 @@ left join field_glossory fgg on
|
|
|
where
|
|
|
a.id = #{0}
|
|
|
</select>
|
|
|
+
|
|
|
</mapper>
|