fix 会议文件下载判断改为只有审核通过的成员可以下载文件
This commit is contained in:
+18
-13
@@ -499,19 +499,24 @@ public class PayMeetingController extends JeroController<PayMeeting, IPayMeeting
|
|||||||
throw new JeroBootException("会议无此文件..");
|
throw new JeroBootException("会议无此文件..");
|
||||||
}
|
}
|
||||||
BigDecimal meetingCosts = payMeeting.getMeetingCosts();
|
BigDecimal meetingCosts = payMeeting.getMeetingCosts();
|
||||||
//非免费会议并且非成员
|
//先判断会议金额是否大于0
|
||||||
if (meetingCosts.compareTo(BigDecimal.ZERO) < 1 && !isSubItem){
|
if (meetingCosts.compareTo(BigDecimal.ZERO) > 0){
|
||||||
QueryWrapper<PayMeetingSituation> queryWrapper1 = new QueryWrapper<>();
|
//在判断成员是否报名通过
|
||||||
queryWrapper1.eq("meeting_id", meetingId);
|
if (isSubItem){
|
||||||
queryWrapper1.eq("company_contact_id", sysUserId);
|
QueryWrapper<PayMeetingSituation> queryWrapper1 = new QueryWrapper<>();
|
||||||
PayMeetingSituation meetingSituation = payMeetingSituationService.getOne(queryWrapper1);
|
queryWrapper1.eq("meeting_id", meetingId);
|
||||||
if (ObjectUtils.isEmpty(meetingSituation)) {
|
queryWrapper1.eq("company_contact_id", sysUserId);
|
||||||
throw new JeroBootException("未报名会议。");
|
PayMeetingSituation meetingSituation = payMeetingSituationService.getOne(queryWrapper1);
|
||||||
}
|
if (ObjectUtils.isEmpty(meetingSituation)) {
|
||||||
Integer checkResult = meetingSituation.getCheckResult();
|
throw new JeroBootException("未报名会议。");
|
||||||
Integer registerCheckResult = meetingSituation.getRegisterCheckResult();
|
}
|
||||||
if (!Objects.equals(checkResult, MeetingSubitemCommon.SIGNUP_STATUS_1)
|
Integer checkResult = meetingSituation.getCheckResult();
|
||||||
|| !Objects.equals(registerCheckResult, MeetingSubitemCommon.SIGNUP_STATUS_1)) {
|
Integer registerCheckResult = meetingSituation.getRegisterCheckResult();
|
||||||
|
if (!Objects.equals(checkResult, MeetingSubitemCommon.SIGNUP_STATUS_1)
|
||||||
|
|| !Objects.equals(registerCheckResult, MeetingSubitemCommon.SIGNUP_STATUS_1)) {
|
||||||
|
throw new JeroBootException("会议报名并审核通过后才可查看文件");
|
||||||
|
}
|
||||||
|
}else {
|
||||||
throw new JeroBootException("会议报名并审核通过后才可查看文件");
|
throw new JeroBootException("会议报名并审核通过后才可查看文件");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user