Commit 3ff255bd by 裴大威

Merge branch 'zyj-readtype' into 'master'

扫小程序码书籍默认轻松阅读

See merge request rays/pcloud-book!752
parents 0a6395e3 619943c7
......@@ -4789,6 +4789,7 @@ public class BookGroupBizImpl implements BookGroupBiz {
appletUserBookcase.setAdviserId(bookGroupDTO.getCreateUser());
appletUserBookcase.setBookId(bookGroupDTO.getBookId());
appletUserBookcase.setChannelId(bookGroupDTO.getChannelId());
appletUserBookcase.setReadType(1);
appletUserBookcaseBiz.addUserBook(appletUserBookcase);
} else if (bookAppletScene.getSceneId() != null) {
QrcodeSceneDto byId = qrcodeSceneConsr.getById(bookAppletScene.getSceneId());
......@@ -4798,6 +4799,7 @@ public class BookGroupBizImpl implements BookGroupBiz {
appletUserBookcase.setAdviserId(byId.getCreatedByUserLogin());
appletUserBookcase.setBookId(byId.getAdviserBookId());
appletUserBookcase.setChannelId(byId.getChannelPartyId());
appletUserBookcase.setReadType(1);
appletUserBookcaseBiz.addUserBook(appletUserBookcase);
} else {
return;
......
......@@ -17,10 +17,10 @@
<insert id="insert" parameterType="com.pcloud.book.applet.entity.AppletUserBookcase" useGeneratedKeys="true" keyProperty="id">
insert into applet_user_bookcase (
wechat_user_id, book_id, channel_id, adviser_id, create_time
wechat_user_id, book_id, channel_id, adviser_id, create_time, read_type
)
values (
#{wechatUserId}, #{bookId}, #{channelId}, #{adviserId}, NOW()
#{wechatUserId}, #{bookId}, #{channelId}, #{adviserId}, NOW(), #{readType}
)
on duplicate key
update
......
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