wangyunpeng 4 주 전
부모
커밋
823ba96f48

+ 2 - 2
api-module/src/main/java/com/tzld/piaoquan/api/job/wecom/thirdpart/WeComUserDetailJob.java

@@ -126,10 +126,10 @@ public class WeComUserDetailJob {
                 existUser.setAvatar(contactItem.getAvatar());
                 existUser.setSource(contactItem.getSource());
                 existUser.setEnglishName(contactItem.getEnglish_name());
-                //existUser.setRemarkPhone(contactItem.getRemark_phone());
+                existUser.setRemarkPhone(JSONObject.toJSONString(contactItem.getRemark_phone()));
                 existUser.setRealname(contactItem.getRealname());
                 existUser.setRealRemarks(contactItem.getReal_remarks());
-                //existUser.setLabelid(contactItem.getLabelid());
+                existUser.setLabelid(JSONObject.toJSONString(contactItem.getLabelid()));
                 existUser.setUserId(contactItem.getUser_id());
                 existUser.setNickname(contactItem.getNickname());
                 existUser.setPosition(contactItem.getPosition());

+ 14 - 14
api-module/src/main/resources/mapper/wecom/thirdpart/ThirdPartWeComStaffUserMapper.xml

@@ -12,10 +12,10 @@
     <result column="avatar" jdbcType="VARCHAR" property="avatar" />
     <result column="source" jdbcType="INTEGER" property="source" />
     <result column="english_name" jdbcType="VARCHAR" property="englishName" />
-    <result column="remark_phone" jdbcType="CHAR" property="remarkPhone" />
+    <result column="remark_phone" jdbcType="VARCHAR" property="remarkPhone" />
     <result column="realname" jdbcType="VARCHAR" property="realname" />
     <result column="real_remarks" jdbcType="VARCHAR" property="realRemarks" />
-    <result column="labelid" jdbcType="CHAR" property="labelid" />
+    <result column="labelid" jdbcType="VARCHAR" property="labelid" />
     <result column="user_id" jdbcType="BIGINT" property="userId" />
     <result column="nickname" jdbcType="VARCHAR" property="nickname" />
     <result column="position" jdbcType="VARCHAR" property="position" />
@@ -134,8 +134,8 @@
     values (#{id,jdbcType=BIGINT}, #{thirdStaffId,jdbcType=BIGINT}, #{unionid,jdbcType=VARCHAR}, 
       #{sex,jdbcType=INTEGER}, #{mobile,jdbcType=VARCHAR}, #{companyRemark,jdbcType=VARCHAR}, 
       #{acctid,jdbcType=VARCHAR}, #{avatar,jdbcType=VARCHAR}, #{source,jdbcType=INTEGER}, 
-      #{englishName,jdbcType=VARCHAR}, #{remarkPhone,jdbcType=CHAR}, #{realname,jdbcType=VARCHAR}, 
-      #{realRemarks,jdbcType=VARCHAR}, #{labelid,jdbcType=CHAR}, #{userId,jdbcType=BIGINT}, 
+      #{englishName,jdbcType=VARCHAR}, #{remarkPhone,jdbcType=VARCHAR}, #{realname,jdbcType=VARCHAR}, 
+      #{realRemarks,jdbcType=VARCHAR}, #{labelid,jdbcType=VARCHAR}, #{userId,jdbcType=BIGINT}, 
       #{nickname,jdbcType=VARCHAR}, #{position,jdbcType=VARCHAR}, #{corpId,jdbcType=BIGINT}, 
       #{remarks,jdbcType=VARCHAR}, #{seq,jdbcType=INTEGER}, #{status,jdbcType=INTEGER}, 
       #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP})
@@ -245,7 +245,7 @@
         #{englishName,jdbcType=VARCHAR},
       </if>
       <if test="remarkPhone != null">
-        #{remarkPhone,jdbcType=CHAR},
+        #{remarkPhone,jdbcType=VARCHAR},
       </if>
       <if test="realname != null">
         #{realname,jdbcType=VARCHAR},
@@ -254,7 +254,7 @@
         #{realRemarks,jdbcType=VARCHAR},
       </if>
       <if test="labelid != null">
-        #{labelid,jdbcType=CHAR},
+        #{labelid,jdbcType=VARCHAR},
       </if>
       <if test="userId != null">
         #{userId,jdbcType=BIGINT},
@@ -325,7 +325,7 @@
         english_name = #{record.englishName,jdbcType=VARCHAR},
       </if>
       <if test="record.remarkPhone != null">
-        remark_phone = #{record.remarkPhone,jdbcType=CHAR},
+        remark_phone = #{record.remarkPhone,jdbcType=VARCHAR},
       </if>
       <if test="record.realname != null">
         realname = #{record.realname,jdbcType=VARCHAR},
@@ -334,7 +334,7 @@
         real_remarks = #{record.realRemarks,jdbcType=VARCHAR},
       </if>
       <if test="record.labelid != null">
-        labelid = #{record.labelid,jdbcType=CHAR},
+        labelid = #{record.labelid,jdbcType=VARCHAR},
       </if>
       <if test="record.userId != null">
         user_id = #{record.userId,jdbcType=BIGINT},
@@ -380,10 +380,10 @@
       avatar = #{record.avatar,jdbcType=VARCHAR},
       `source` = #{record.source,jdbcType=INTEGER},
       english_name = #{record.englishName,jdbcType=VARCHAR},
-      remark_phone = #{record.remarkPhone,jdbcType=CHAR},
+      remark_phone = #{record.remarkPhone,jdbcType=VARCHAR},
       realname = #{record.realname,jdbcType=VARCHAR},
       real_remarks = #{record.realRemarks,jdbcType=VARCHAR},
-      labelid = #{record.labelid,jdbcType=CHAR},
+      labelid = #{record.labelid,jdbcType=VARCHAR},
       user_id = #{record.userId,jdbcType=BIGINT},
       nickname = #{record.nickname,jdbcType=VARCHAR},
       `position` = #{record.position,jdbcType=VARCHAR},
@@ -428,7 +428,7 @@
         english_name = #{englishName,jdbcType=VARCHAR},
       </if>
       <if test="remarkPhone != null">
-        remark_phone = #{remarkPhone,jdbcType=CHAR},
+        remark_phone = #{remarkPhone,jdbcType=VARCHAR},
       </if>
       <if test="realname != null">
         realname = #{realname,jdbcType=VARCHAR},
@@ -437,7 +437,7 @@
         real_remarks = #{realRemarks,jdbcType=VARCHAR},
       </if>
       <if test="labelid != null">
-        labelid = #{labelid,jdbcType=CHAR},
+        labelid = #{labelid,jdbcType=VARCHAR},
       </if>
       <if test="userId != null">
         user_id = #{userId,jdbcType=BIGINT},
@@ -480,10 +480,10 @@
       avatar = #{avatar,jdbcType=VARCHAR},
       `source` = #{source,jdbcType=INTEGER},
       english_name = #{englishName,jdbcType=VARCHAR},
-      remark_phone = #{remarkPhone,jdbcType=CHAR},
+      remark_phone = #{remarkPhone,jdbcType=VARCHAR},
       realname = #{realname,jdbcType=VARCHAR},
       real_remarks = #{realRemarks,jdbcType=VARCHAR},
-      labelid = #{labelid,jdbcType=CHAR},
+      labelid = #{labelid,jdbcType=VARCHAR},
       user_id = #{userId,jdbcType=BIGINT},
       nickname = #{nickname,jdbcType=VARCHAR},
       `position` = #{position,jdbcType=VARCHAR},