Skip to content

Commit

Permalink
share update add request param
Browse files Browse the repository at this point in the history
  • Loading branch information
facming committed Sep 9, 2024
1 parent 6f135cf commit f73f21b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ public List<Member> queryMemberInfoByAddress(List<String> addressList){
}

public void updateShareCount(){
//TODO 考虑到数据量大,后期分页查询或者修改触发点
List<Share> shareList = sharingRepository.findAll();
List<Member> memberList = memberRepository.findAll();
// 将shareList按照presenter分组统计求和,得到一个map,key为presenter,value为分享次数
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ public void updateSharing(UpdateSharingReq req, String address) {
sharing.setLabel(req.getLabel());
sharing.setBilibiliLink(req.getBilibiliLink());
sharing.setYoutubeLink(req.getYoutubeLink());
sharing.setTag(req.getTag());

this.sharingRepository.save(sharing);
/* SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,9 @@ public class UpdateSharingReq {
private String youtubeLink;

private String bilibiliLink;

/**
* tag
*/
private String tag;
}

0 comments on commit f73f21b

Please sign in to comment.