Commit ea147087 by 阮思源

加个字段

parent 5672eed6
......@@ -1109,6 +1109,7 @@ public class BookGroupBizImpl implements BookGroupBiz {
joinGroupCipherNew.setCipher(cipher);
joinGroupCipherNew.setWechatUserId(wechatUserId);
joinGroupCipherNew.setClassifyId(classifyId);
joinGroupCipherNew.setAltId(selfRobotDTO.getWxId());
joinGroupCipherDao.insert(joinGroupCipherNew);
}
ownAltQrcodeInfoDTO.setCipher(cipher);
......
......@@ -26,6 +26,9 @@ public class JoinGroupCipher extends BaseEntity {
@ApiModelProperty("是否使用")
private Boolean hasUsed;
@ApiModelProperty("机器人id")
private String altId;
public String getCipher() {
return cipher;
}
......@@ -66,6 +69,14 @@ public class JoinGroupCipher extends BaseEntity {
this.hasUsed = hasUsed;
}
public String getAltId() {
return altId;
}
public void setAltId(String altId) {
this.altId = altId;
}
@Override
public String toString() {
return "JoinGroupCipher{" +
......@@ -74,6 +85,7 @@ public class JoinGroupCipher extends BaseEntity {
", wechatUserId=" + wechatUserId +
", wxId='" + wxId + '\'' +
", hasUsed=" + hasUsed +
", altId='" + altId + '\'' +
"} " + super.toString();
}
}
......@@ -8,12 +8,13 @@
<result column="wechat_user_id" property="wechatUserId" jdbcType="BIGINT"/>
<result column="create_time" property="createTime" jdbcType="TIMESTAMP"/>
<result column="update_time" property="updateTime" jdbcType="TIMESTAMP"/>
<result column="wx_id" property="wxId" jdbcType="BIGINT"/>
<result column="wx_id" property="wxId" jdbcType="VARCHAR"/>
<result column="has_used" property="hasUsed" jdbcType="BOOLEAN"/>
<result column="alt_id" property="altId" jdbcType="VARCHAR"/>
</resultMap>
<sql id="Base_Column_List">
id, cipher, classify_id, create_time, wechat_user_id, update_time, wx_id, has_used
id, cipher, classify_id, create_time, wechat_user_id, update_time, wx_id, has_used, alt_id
</sql>
<insert id="insert" parameterType="com.pcloud.book.group.entity.JoinGroupCipher" useGeneratedKeys="true"
......@@ -24,14 +25,16 @@
classify_id,
create_time,
wechat_user_id,
has_used
has_used,
alt_id
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
#{cipher,jdbcType=BIGINT},
#{cipher,jdbcType=VARCHAR},
#{classifyId,jdbcType=BIGINT},
now(),
#{wechatUserId,jdbcType=BIGINT},
0
0,
#{altId,jdbcType=VARCHAR}
</trim>
</insert>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment