修改评论积分
This commit is contained in:
parent
9187b467ce
commit
dd04813211
@ -186,7 +186,7 @@ public class CaseClinicalArticleService {
|
||||
}
|
||||
|
||||
// 发放积分
|
||||
userService.ReportUserScore(1,userId);
|
||||
userService.ReportUserScore(articleId,1,userId);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -210,7 +210,7 @@ public class CaseClinicalVideoService {
|
||||
}
|
||||
|
||||
// 发放积分
|
||||
userService.ReportUserScore(2,userId);
|
||||
userService.ReportUserScore(videoId,2,userId);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -483,7 +483,7 @@ public class CaseExchangeService {
|
||||
}
|
||||
|
||||
// 发放积分
|
||||
userService.ReportUserScore(3,userId);
|
||||
userService.ReportUserScore(exchangeId,3,userId);
|
||||
|
||||
|
||||
return true;
|
||||
|
||||
@ -314,7 +314,7 @@ public class UserService {
|
||||
}
|
||||
|
||||
// 发放积分
|
||||
public boolean ReportUserScore(Integer type,String userId) throws BusinessException{
|
||||
public boolean ReportUserScore(String id,Integer type,String userId) throws BusinessException{
|
||||
// 获取积分发放记录
|
||||
// 获取今天的日期,并设置时间为 00:00:00
|
||||
LocalDateTime startOfToday = LocalDate.now().atStartOfDay(); // 例如:2025-07-30 00:00:00
|
||||
@ -341,6 +341,7 @@ public class UserService {
|
||||
CaseClinicalRecordScoreModel data = new CaseClinicalRecordScoreModel();
|
||||
data.setUserId(Long.valueOf(userId));
|
||||
data.setScore(5);
|
||||
data.setId(Long.valueOf(id));
|
||||
data.setUserName(user.getUserName());
|
||||
data.setNodeName("病例库-病例互动");
|
||||
data.setType(type);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user