anderx 1 år sedan
förälder
incheckning
1ccd8ef933

+ 11 - 5
src/main/java/com/goafanti/common/mapper/UserFollowMapper.xml

@@ -24,6 +24,7 @@
             <result property="followName" column="follow_name" jdbcType="VARCHAR"/>
             <result property="followDep" column="follow_dep" jdbcType="VARCHAR"/>
             <result property="type" column="type" jdbcType="INTEGER"/>
+            <result property="pid" column="pid" jdbcType="VARCHAR"/>
     </resultMap>
 
     <sql id="Base_Column_List">
@@ -33,7 +34,7 @@
         effective,time_stamp,follow_count,
         guidance,guidance_time,guidance_aid,
         guidance_name,follow_name,follow_dep,
-        type
+        type,pid
     </sql>
 
     <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
@@ -55,14 +56,14 @@
         ,effective,time_stamp,follow_count
         ,guidance,guidance_time,guidance_aid
         ,guidance_name,follow_name,follow_dep
-        ,type)
+        ,type,pid)
         values (#{id,jdbcType=VARCHAR},#{uid,jdbcType=VARCHAR},#{aid,jdbcType=VARCHAR}
         ,#{paid,jdbcType=VARCHAR},#{result,jdbcType=VARCHAR},#{attachmentUrl,jdbcType=VARCHAR}
         ,#{createTime,jdbcType=TIMESTAMP},#{ocbId,jdbcType=VARCHAR},#{contactType,jdbcType=INTEGER}
         ,#{effective,jdbcType=INTEGER},#{timeStamp,jdbcType=TIMESTAMP},#{followCount,jdbcType=INTEGER}
         ,#{guidance,jdbcType=VARCHAR},#{guidanceTime,jdbcType=TIMESTAMP},#{guidanceAid,jdbcType=VARCHAR}
         ,#{guidanceName,jdbcType=VARCHAR},#{followName,jdbcType=VARCHAR},#{followDep,jdbcType=VARCHAR}
-        ,#{type,jdbcType=INTEGER})
+        ,#{type,jdbcType=INTEGER},#{pid,jdbcType=VARCHAR})
     </insert>
     <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.UserFollow" useGeneratedKeys="true">
         insert into user_follow
@@ -86,6 +87,7 @@
                 <if test="followName != null">follow_name,</if>
                 <if test="followDep != null">follow_dep,</if>
                 <if test="type != null">type,</if>
+                <if test="pid != null">pid,</if>
         </trim>
         <trim prefix="values (" suffix=")" suffixOverrides=",">
                 <if test="id != null">#{id,jdbcType=VARCHAR},</if>
@@ -107,6 +109,7 @@
                 <if test="followName != null">#{followName,jdbcType=VARCHAR},</if>
                 <if test="followDep != null">#{followDep,jdbcType=VARCHAR},</if>
                 <if test="type != null">#{type,jdbcType=INTEGER},</if>
+                <if test="pid != null">#{pid,jdbcType=VARCHAR},</if>
         </trim>
     </insert>
     <update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.UserFollow">
@@ -166,6 +169,9 @@
                 <if test="type != null">
                     type = #{type,jdbcType=INTEGER},
                 </if>
+                <if test="pid != null">
+                    pid = #{pid,jdbcType=VARCHAR},
+                </if>
         </set>
         where   id = #{id,jdbcType=VARCHAR} 
     </update>
@@ -189,7 +195,8 @@
             guidance_name =  #{guidanceName,jdbcType=VARCHAR},
             follow_name =  #{followName,jdbcType=VARCHAR},
             follow_dep =  #{followDep,jdbcType=VARCHAR},
-            type =  #{type,jdbcType=INTEGER}
+            type =  #{type,jdbcType=INTEGER},
+            pid =  #{pid,jdbcType=VARCHAR}
         where   id = #{id,jdbcType=VARCHAR} 
     </update>
 
@@ -327,4 +334,3 @@
         group by aid
     </select>
 </mapper>
-

+ 19 - 0
src/main/java/com/goafanti/common/model/UserFollow.java

@@ -103,6 +103,11 @@ public class UserFollow implements Serializable {
      */
     private Integer type;
 
+    /**
+     * 项目编号
+     */
+    private String pid;
+
     private static final long serialVersionUID = 1L;
 
     /**
@@ -370,4 +375,18 @@ public class UserFollow implements Serializable {
     public void setType(Integer type) {
         this.type = type;
     }
+
+    /**
+     * 项目编号
+     */
+    public String getPid() {
+        return pid;
+    }
+
+    /**
+     * 项目编号
+     */
+    public void setPid(String pid) {
+        this.pid = pid;
+    }
 }