Commit 743d5362 by 阮思源

加字段

parent 6c7f4cce
......@@ -167,6 +167,11 @@ public class BookGroupDTO extends BaseDto {
*/
private Boolean isInviteGroup;
/**
* 社群书暗号
*/
private String bookGroupCipher;
public String getUrl() {
return url;
}
......@@ -425,6 +430,14 @@ public class BookGroupDTO extends BaseDto {
this.isInviteGroup = isInviteGroup;
}
public String getBookGroupCipher() {
return bookGroupCipher;
}
public void setBookGroupCipher(String bookGroupCipher) {
this.bookGroupCipher = bookGroupCipher;
}
@Override
public String toString() {
return "BookGroupDTO{" +
......@@ -460,6 +473,7 @@ public class BookGroupDTO extends BaseDto {
", addFriendGuide='" + addFriendGuide + '\'' +
", customerServiceName='" + customerServiceName + '\'' +
", isInviteGroup=" + isInviteGroup +
", bookGroupCipher='" + bookGroupCipher + '\'' +
"} " + super.toString();
}
}
\ No newline at end of file
......@@ -122,6 +122,11 @@ public class BookGroup extends BaseEntity {
*/
private Boolean isInviteGroup;
/**
* 社群书暗号
*/
private String bookGroupCipher;
public Long getId() {
return id;
}
......@@ -298,6 +303,14 @@ public class BookGroup extends BaseEntity {
this.isInviteGroup = isInviteGroup;
}
public String getBookGroupCipher() {
return bookGroupCipher;
}
public void setBookGroupCipher(String bookGroupCipher) {
this.bookGroupCipher = bookGroupCipher;
}
@Override
public String toString() {
return "BookGroup{" +
......@@ -323,6 +336,7 @@ public class BookGroup extends BaseEntity {
", addFriendGuide='" + addFriendGuide + '\'' +
", customerServiceName='" + customerServiceName + '\'' +
", isInviteGroup=" + isInviteGroup +
", bookGroupCipher='" + bookGroupCipher + '\'' +
"} " + super.toString();
}
}
\ No newline at end of file
......@@ -24,6 +24,7 @@
<result column="add_friend_guide" property="addFriendGuide" jdbcType="VARCHAR"/>
<result column="customer_service_name" property="customerServiceName" jdbcType="VARCHAR"/>
<result column="is_invite_group" property="isInviteGroup" jdbcType="BOOLEAN"/>
<result column="book_group_cipher" property="bookGroupCipher" jdbcType="VARCHAR"/>
</resultMap>
<resultMap id="BookGroupDTO" type="com.pcloud.book.group.dto.BookGroupDTO">
......@@ -53,6 +54,7 @@
<result column="add_friend_guide" property="addFriendGuide" jdbcType="VARCHAR"/>
<result column="customer_service_name" property="customerServiceName" jdbcType="VARCHAR"/>
<result column="is_invite_group" property="isInviteGroup" jdbcType="BOOLEAN"/>
<result column="book_group_cipher" property="bookGroupCipher" jdbcType="VARCHAR"/>
</resultMap>
<sql id="Base_Column_List">
......@@ -60,7 +62,7 @@
pur_label_id, join_title, join_slogan, personal_qrcode_url, product_id, create_user,
create_time,
update_time, is_delete, is_show_book_name,join_group_type,add_friend_guide,customer_service_name,
is_invite_group
is_invite_group,book_group_cipher
</sql>
<select id="getById" resultMap="BaseResultMap" parameterType="java.lang.Long">
......@@ -173,6 +175,7 @@
add_friend_guide,
customer_service_name,
is_invite_group,
book_group_cipher,
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
#{bookId,jdbcType=BIGINT},
......@@ -194,6 +197,7 @@
#{addFriendGuide,jdbcType=VARCHAR},
#{customerServiceName,jdbcType=VARCHAR},
#{isInviteGroup,jdbcType=BOOLEAN},
#{bookGroupCipher,jdbcType=VARCHAR},
</trim>
</insert>
......@@ -251,6 +255,9 @@
<if test="isInviteGroup != null">
is_invite_group = #{isInviteGroup},
</if>
<if test="bookGroupCipher != null">
book_group_cipher = #{bookGroupCipher},
</if>
update_time = NOW(),
</set>
where id = #{id,jdbcType=BIGINT}
......
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