|
@@ -65,13 +65,13 @@ public class HelpRecordServiceImpl extends ServiceImpl<HelpRecordMapper, HelpRec
|
65
|
65
|
//查看是否助力成功
|
66
|
66
|
HelpInitiateRecord helpInitiateRecord = helpInitiateRecordMapper.selectById(helpRecord.getHelpRecordInitiateId());
|
67
|
67
|
if (!StringUtils.isEmpty(helpInitiateRecord.getVerification())){
|
68
|
|
- return ResponseBean.error("助力失败", ResponseBean.ERROR_UNAVAILABLE);
|
|
68
|
+ return ResponseBean.error("该活动已成功", ResponseBean.ERROR_UNAVAILABLE);
|
69
|
69
|
}
|
70
|
70
|
|
71
|
71
|
HelpActivity helpActivity = helpActivityMapper.selectById(helpRecord.getHelpActivityId());
|
72
|
72
|
//是否助力成功
|
73
|
73
|
if (null != helpInitiateRecord.getEnlistNum() && helpInitiateRecord.getEnlistNum() >= helpActivity.getPersonNum()){
|
74
|
|
- return ResponseBean.error("助力失败", ResponseBean.ERROR_UNAVAILABLE);
|
|
74
|
+ return ResponseBean.error("该活动已成功", ResponseBean.ERROR_UNAVAILABLE);
|
75
|
75
|
}
|
76
|
76
|
if (helpActivity.getEndDate().isBefore(LocalDateTime.now())){
|
77
|
77
|
return ResponseBean.error("活动已超时", ResponseBean.ERROR_UNAVAILABLE);
|