anderx 1 год назад
Родитель
Сommit
d318c30354

+ 4 - 5
src/main/java/com/goafanti/common/mapper/UserArchivesMapper.xml

@@ -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">

+ 5 - 5
src/main/java/com/goafanti/common/model/UserArchives.java

@@ -8,14 +8,14 @@ import java.util.Date;
  * 客户档案表(UserArchives)实体类
  * 客户档案表(UserArchives)实体类
  *
  *
  * @author makejava
  * @author makejava
- * @since 2024-07-12 14:27:30
+ * @since 2024-07-12 15:26:57
  */
  */
 public class UserArchives implements Serializable {
 public class UserArchives implements Serializable {
-    private static final long serialVersionUID = 144323174694313886L;
+    private static final long serialVersionUID = 209412221290580251L;
 
 
     private Integer id;
     private Integer id;
 
 
-    private Integer uid;
+    private String uid;
 /**
 /**
      * 专利数
      * 专利数
      */
      */
@@ -66,11 +66,11 @@ public class UserArchives implements Serializable {
         this.id = id;
         this.id = id;
     }
     }
 
 
-    public Integer getUid() {
+    public String getUid() {
         return uid;
         return uid;
     }
     }
 
 
-    public void setUid(Integer uid) {
+    public void setUid(String uid) {
         this.uid = uid;
         this.uid = uid;
     }
     }