修改打上积分
This commit is contained in:
parent
e1f49cf813
commit
f88c3521fd
@ -95,7 +95,7 @@ public class RewardPointService {
|
|||||||
if (caseClinicalDoctor == null) {
|
if (caseClinicalDoctor == null) {
|
||||||
authorList.add(appConfig.getPlatformPointAccount());
|
authorList.add(appConfig.getPlatformPointAccount());
|
||||||
}else {
|
}else {
|
||||||
if (caseClinicalDoctor.getDoctorIden() == null){
|
if (caseClinicalDoctor.getDoctorIden() == null || caseClinicalDoctor.getDoctorIden().isEmpty()){
|
||||||
authorList.add(appConfig.getPlatformPointAccount());
|
authorList.add(appConfig.getPlatformPointAccount());
|
||||||
}else{
|
}else{
|
||||||
authorList.add(caseClinicalDoctor.getDoctorIden());
|
authorList.add(caseClinicalDoctor.getDoctorIden());
|
||||||
@ -129,21 +129,21 @@ public class RewardPointService {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
String authors = String.join(",", authorList);
|
// String authors = String.join(",", authorList);
|
||||||
System.out.println(authors);
|
// System.out.println(authors);
|
||||||
reward.RewardPoint(user.getUserIden(),r.getPoint(),authors);
|
// reward.RewardPoint(user.getUserIden(),r.getPoint(),authors);
|
||||||
|
//
|
||||||
// 添加打赏记录
|
// // 添加打赏记录
|
||||||
RecordRewardPointModel data = new RecordRewardPointModel();
|
// RecordRewardPointModel data = new RecordRewardPointModel();
|
||||||
data.setUserId(Long.valueOf(userId));
|
// data.setUserId(Long.valueOf(userId));
|
||||||
data.setAuthorIden(authors);
|
// data.setAuthorIden(authors);
|
||||||
data.setSourceId(r.getId());
|
// data.setSourceId(r.getId());
|
||||||
data.setPoint(r.getPoint());
|
// data.setPoint(r.getPoint());
|
||||||
data.setSourceType(r.getType());
|
// data.setSourceType(r.getType());
|
||||||
int res = recordRewardPointDao.insert(data);
|
// int res = recordRewardPointDao.insert(data);
|
||||||
if (res <= 0){
|
// if (res <= 0){
|
||||||
logger.info("添加打赏记录失败: {}",r);
|
// logger.info("添加打赏记录失败: {}",r);
|
||||||
}
|
// }
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user