|
@@ -4,7 +4,7 @@
|
|
|
|
|
|
|
|
<resultMap type="com.goafanti.common.model.UserArchives" id="UserArchivesMap">
|
|
<resultMap type="com.goafanti.common.model.UserArchives" id="UserArchivesMap">
|
|
|
<result property="id" column="id" jdbcType="INTEGER"/>
|
|
<result property="id" column="id" jdbcType="INTEGER"/>
|
|
|
- <result property="uid" column="uid" jdbcType="INTEGER"/>
|
|
|
|
|
|
|
+ <result property="uid" column="uid" jdbcType="VARCHAR"/>
|
|
|
<result property="patentCount" column="patent_count" jdbcType="INTEGER"/>
|
|
<result property="patentCount" column="patent_count" jdbcType="INTEGER"/>
|
|
|
<result property="inventionPatentCount" column="invention_patent_count" jdbcType="INTEGER"/>
|
|
<result property="inventionPatentCount" column="invention_patent_count" jdbcType="INTEGER"/>
|
|
|
<result property="utilityModelCount" column="utility_model_count" jdbcType="INTEGER"/>
|
|
<result property="utilityModelCount" column="utility_model_count" jdbcType="INTEGER"/>
|
|
@@ -39,7 +39,7 @@ id, uid, patent_count, invention_patent_count, utility_model_count, appearance_p
|
|
|
<if test="id != null">
|
|
<if test="id != null">
|
|
|
and id = #{id}
|
|
and id = #{id}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="uid != null">
|
|
|
|
|
|
|
+ <if test="uid != null and uid != ''">
|
|
|
and uid = #{uid}
|
|
and uid = #{uid}
|
|
|
</if>
|
|
</if>
|
|
|
<if test="patentCount != null">
|
|
<if test="patentCount != null">
|
|
@@ -84,7 +84,7 @@ id, uid, patent_count, invention_patent_count, utility_model_count, appearance_p
|
|
|
<if test="id != null">
|
|
<if test="id != null">
|
|
|
and id = #{id}
|
|
and id = #{id}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="uid != null">
|
|
|
|
|
|
|
+ <if test="uid != null and uid != ''">
|
|
|
and uid = #{uid}
|
|
and uid = #{uid}
|
|
|
</if>
|
|
</if>
|
|
|
<if test="patentCount != null">
|
|
<if test="patentCount != null">
|
|
@@ -120,7 +120,6 @@ id, uid, patent_count, invention_patent_count, utility_model_count, appearance_p
|
|
|
</where>
|
|
</where>
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
-
|
|
|
|
|
<!--新增所有列-->
|
|
<!--新增所有列-->
|
|
|
<insert id="insert" keyProperty="id" useGeneratedKeys="true">
|
|
<insert id="insert" keyProperty="id" useGeneratedKeys="true">
|
|
|
insert into user_archives(uid, patent_count, invention_patent_count, utility_model_count, appearance_patent_count, software_works_count, other_count, financial_data, early_communication, interview_ideas, create_time)
|
|
insert into user_archives(uid, patent_count, invention_patent_count, utility_model_count, appearance_patent_count, software_works_count, other_count, financial_data, early_communication, interview_ideas, create_time)
|
|
@@ -159,7 +158,7 @@ create_time = values(create_time)
|
|
|
<update id="update">
|
|
<update id="update">
|
|
|
update user_archives
|
|
update user_archives
|
|
|
<set>
|
|
<set>
|
|
|
- <if test="uid != null">
|
|
|
|
|
|
|
+ <if test="uid != null and uid != ''">
|
|
|
uid = #{uid},
|
|
uid = #{uid},
|
|
|
</if>
|
|
</if>
|
|
|
<if test="patentCount != null">
|
|
<if test="patentCount != null">
|