Commit 678af28e by 田超

Merge branch 'fixbug/1004838' into 'master'

bug: [1004838] 小程序动态优化

See merge request rays/pcloud-book!1313
parents 1faaa7aa a126258f
......@@ -185,6 +185,15 @@ public class AppletUserBookcaseBizImpl implements AppletUserBookcaseBiz {
if (null != gradeId) {
readerConsr.addUserGradeLabel(appletUserBookcase.getWechatUserId(), appletUserBookcase.getOfficialAccountsId(), gradeId);
}
//更新用户书籍标签
if (null != bookAdviserDto.getTempletId()) {
try {
//更新用户年级标签
readerConsr.updateUserClassify(appletUserBookcase.getWechatUserId(), bookAdviserDto.getTempletId(), bookAdviserDto.getSecondTempletId(), bookAdviserDto.getThirdTempletId());
} catch (Exception e) {
log.error("用户添加书籍时更新动态updateUserGradeLabel失败", e.getMessage());
}
}
}
private void delBookcaseRedis(Long wechatUserId, Long officialAccountsId) {
......
......@@ -442,6 +442,14 @@ public class ReaderConsr {
}
return list;
}
public void updateUserClassify(Long wechatUserId, Long templetId, Long secondTempletId, Long thirdTempletId) {
try {
appletUserService.updateUserClassify(wechatUserId, templetId, secondTempletId, thirdTempletId);
} catch (Exception e) {
LOGGER.error("appletUserService.updateUserClassify"+e.getMessage(), e);
}
}
}
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