Commit a126258f by 吴博

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

parent 1faaa7aa
...@@ -185,6 +185,15 @@ public class AppletUserBookcaseBizImpl implements AppletUserBookcaseBiz { ...@@ -185,6 +185,15 @@ public class AppletUserBookcaseBizImpl implements AppletUserBookcaseBiz {
if (null != gradeId) { if (null != gradeId) {
readerConsr.addUserGradeLabel(appletUserBookcase.getWechatUserId(), appletUserBookcase.getOfficialAccountsId(), 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) { private void delBookcaseRedis(Long wechatUserId, Long officialAccountsId) {
......
...@@ -442,6 +442,14 @@ public class ReaderConsr { ...@@ -442,6 +442,14 @@ public class ReaderConsr {
} }
return list; 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