zouxuan 2 gadi atpakaļ
vecāks
revīzija
f429c9d2bf

+ 8 - 0
cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/entity/ImNetworkHereWhite.java

@@ -7,6 +7,8 @@ import com.baomidou.mybatisplus.annotation.TableId;
 import io.swagger.annotations.ApiModel;
 import io.swagger.annotations.ApiModelProperty;
 import lombok.Data;
+import lombok.Getter;
+import lombok.Setter;
 
 import java.io.Serializable;
 import java.util.Date;
@@ -72,6 +74,12 @@ public class ImNetworkHereWhite implements Serializable {
     @ApiModelProperty(value = "${column.comment}")
     private Date createdAt;
 
+    @TableField("random_numeric22_")
+    private String randomNumeric22;
+
+    @TableField("random_numeric20_")
+    private String randomNumeric20;
+
 
 }
 

+ 3 - 0
cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/service/impl/ImNetworkHereWhiteServiceImpl.java

@@ -7,6 +7,7 @@ import com.yonge.cooleshow.biz.dal.entity.ImNetworkHereWhite;
 import com.yonge.cooleshow.biz.dal.service.ImNetworkHereWhiteService;
 import com.yonge.toolset.base.exception.BizException;
 import com.yonge.toolset.utils.http.HttpUtil;
+import org.apache.commons.lang3.RandomStringUtils;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import org.springframework.beans.factory.annotation.Value;
@@ -66,6 +67,8 @@ public class ImNetworkHereWhiteServiceImpl extends ServiceImpl<ImNetworkHereWhit
                 imNetworkHereWhite.setRoomToken(jsonObject.getJSONObject("msg").getString("roomToken"));
                 imNetworkHereWhite.setUpdatedAt(date);
                 imNetworkHereWhite.setCreatedAt(date);
+                imNetworkHereWhite.setRandomNumeric22(RandomStringUtils.randomAlphanumeric(22));
+                imNetworkHereWhite.setRandomNumeric20(RandomStringUtils.randomAlphanumeric(20));
                 baseMapper.insert(imNetworkHereWhite);
             }
             return imNetworkHereWhite;

+ 4 - 1
cooleshow-user/user-biz/src/main/resources/config/mybatis/ImNetworkHereWhiteDao.xml

@@ -15,10 +15,13 @@
         <result column="uuid_" jdbcType="VARCHAR" property="uuid"/>
         <result column="updated_at_" jdbcType="TIMESTAMP" property="updatedAt"/>
         <result column="created_at_" jdbcType="TIMESTAMP" property="createdAt"/>
+        <result column="random_numeric20_" jdbcType="TIMESTAMP" property="randomNumeric20"/>
+        <result column="random_numeric22_" jdbcType="TIMESTAMP" property="randomNumeric22"/>
     </resultMap>
 
     <sql id="Base_Column_List">
-        id_ , course_schedule_id_, name_, limit_, team_id_, admin_id_, mode_, template_, region_, room_token_, uuid_, updated_at_, created_at_
+        id_ , course_schedule_id_, name_, limit_, team_id_, admin_id_, mode_,
+            template_, region_, room_token_, uuid_, updated_at_, created_at_,random_numeric20_,random_numeric22_
     </sql>
     <select id="findByCourseScheduleId" resultMap="BaseResultMap">
         SELECT * FROM im_network_here_white WHERE course_schedule_id_ = #{courseScheduleId} LIMIT 1