Skip to content

Commit

Permalink
Merge pull request #300 from facming/dev
Browse files Browse the repository at this point in the history
share update add request param
  • Loading branch information
yanyanho authored Sep 10, 2024
2 parents 1434af6 + f73f21b commit 3d724df
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 3d724df

Please sign in to comment.