fix 企业端我的会议上传汇款凭证后更新报名状态
This commit is contained in:
+3
-1
@@ -148,7 +148,9 @@ public class PayMeetingController extends JeroController<PayMeeting, IPayMeeting
|
|||||||
}else if (Objects.equals(registerCheckResult,2)){
|
}else if (Objects.equals(registerCheckResult,2)){
|
||||||
meeting.setSignUpStatus(3);
|
meeting.setSignUpStatus(3);
|
||||||
// 待上传凭证:来款方式为:汇款/线上缴费。需要上传审核凭证的
|
// 待上传凭证:来款方式为:汇款/线上缴费。需要上传审核凭证的
|
||||||
}else if (Objects.equals(registerCheckResult,1)&&StringUtils.isBlank(paymentRecord)){
|
}else if (Objects.equals(registerCheckResult,1)
|
||||||
|
&&StringUtils.isBlank(paymentRecord)
|
||||||
|
&&!Objects.equals(checkResult,1)){
|
||||||
meeting.setSignUpStatus(4);
|
meeting.setSignUpStatus(4);
|
||||||
// 凭证被拒绝:来款方式为:汇款/线上缴费。上传审核凭证被拒绝的
|
// 凭证被拒绝:来款方式为:汇款/线上缴费。上传审核凭证被拒绝的
|
||||||
}else if (Objects.equals(checkResult,2)){
|
}else if (Objects.equals(checkResult,2)){
|
||||||
|
|||||||
+3
@@ -427,4 +427,7 @@ public class PayMeetingSituation implements Serializable {
|
|||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
@ApiModelProperty(value = "打包年份")
|
@ApiModelProperty(value = "打包年份")
|
||||||
private String packYear;
|
private String packYear;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private Boolean isZero;
|
||||||
}
|
}
|
||||||
|
|||||||
+19
-7
@@ -258,6 +258,9 @@ public class PayMeetingSituationServiceImpl extends ServiceImpl<PayMeetingSituat
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void saveMeetingSituation(PayMeetingSituation payMeetingSituation1) {
|
private void saveMeetingSituation(PayMeetingSituation payMeetingSituation1) {
|
||||||
|
if (payMeetingSituation1.getIsZero()) {
|
||||||
|
payMeetingSituation1.setCheckResult(MeetingSubitemCommon.SIGNUP_STATUS_1);
|
||||||
|
}
|
||||||
payMeetingSituation1.setCheckIn(PayProjectCommon.NO);
|
payMeetingSituation1.setCheckIn(PayProjectCommon.NO);
|
||||||
payMeetingSituation1.setPaidAmount(new BigDecimal("0"));
|
payMeetingSituation1.setPaidAmount(new BigDecimal("0"));
|
||||||
|
|
||||||
@@ -952,17 +955,13 @@ public class PayMeetingSituationServiceImpl extends ServiceImpl<PayMeetingSituat
|
|||||||
canHuiContact(payMeetingSituation1, companyId, contactsManagement);
|
canHuiContact(payMeetingSituation1, companyId, contactsManagement);
|
||||||
//处理付款凭证
|
//处理付款凭证
|
||||||
payMeetingSituation1.setPaymentRecord(null);
|
payMeetingSituation1.setPaymentRecord(null);
|
||||||
//处理应收金额为0
|
|
||||||
BigDecimal amountReceivable = payMeetingSituation1.getAmountReceivable();
|
|
||||||
boolean isZero = false;
|
|
||||||
if (Objects.nonNull(amountReceivable)) {
|
|
||||||
isZero = amountReceivable.compareTo(new BigDecimal("0.00")) == 0;
|
|
||||||
}
|
|
||||||
//存入打包字段
|
//存入打包字段
|
||||||
payMeetingSituation1.setPack(PayProjectCommon.PACKAGING0);
|
payMeetingSituation1.setPack(PayProjectCommon.PACKAGING0);
|
||||||
payMeetingSituation1.setNeedInvoice(PayProjectCommon.NO);
|
payMeetingSituation1.setNeedInvoice(PayProjectCommon.NO);
|
||||||
//判断身份
|
//判断身份
|
||||||
Integer identity = payMeetingSituation.getIdentity();
|
Integer identity = payMeetingSituation.getIdentity();
|
||||||
|
payMeetingSituation1.setIsZero(true);
|
||||||
//国际研讨会会议的嘉宾和其他类型不同
|
//国际研讨会会议的嘉宾和其他类型不同
|
||||||
if (meetingType.equals(Integer.parseInt(MeetingCommon.INTERNATIONAL_MEETING)) &&
|
if (meetingType.equals(Integer.parseInt(MeetingCommon.INTERNATIONAL_MEETING)) &&
|
||||||
identity.equals(MeetingSubitemCommon.JIA_BIN)) {
|
identity.equals(MeetingSubitemCommon.JIA_BIN)) {
|
||||||
@@ -1011,6 +1010,19 @@ public class PayMeetingSituationServiceImpl extends ServiceImpl<PayMeetingSituat
|
|||||||
BeanUtils.copyProperties(internationalGuestVO, payMeetingSituation1);
|
BeanUtils.copyProperties(internationalGuestVO, payMeetingSituation1);
|
||||||
// 参会人
|
// 参会人
|
||||||
} else if (identity.equals(MeetingSubitemCommon.CAN_HUI_REN)) {
|
} else if (identity.equals(MeetingSubitemCommon.CAN_HUI_REN)) {
|
||||||
|
boolean checkMember = false;
|
||||||
|
boolean isZero;
|
||||||
|
if (meetingType.equals(Integer.parseInt(MeetingCommon.STANDARD_MEETING))) {
|
||||||
|
checkMember = checkMember(payMeetingSituation1.getCompanyName());
|
||||||
|
}
|
||||||
|
if (checkMember){
|
||||||
|
BigDecimal meetingCostsVip = payMeeting.getMeetingCostsVip();
|
||||||
|
isZero = meetingCostsVip.compareTo(new BigDecimal("0.00")) == 0;
|
||||||
|
}else {
|
||||||
|
BigDecimal meetingCosts = payMeeting.getMeetingCosts();
|
||||||
|
isZero = meetingCosts.compareTo(new BigDecimal("0.00")) == 0;
|
||||||
|
}
|
||||||
|
payMeetingSituation1.setIsZero(isZero);
|
||||||
CommonPeopleVO commonPeopleVO = new CommonPeopleVO();
|
CommonPeopleVO commonPeopleVO = new CommonPeopleVO();
|
||||||
BeanUtils.copyProperties(payMeetingSituation, commonPeopleVO);
|
BeanUtils.copyProperties(payMeetingSituation, commonPeopleVO);
|
||||||
Integer payMode = commonPeopleVO.getPayMode();
|
Integer payMode = commonPeopleVO.getPayMode();
|
||||||
@@ -1063,7 +1075,7 @@ public class PayMeetingSituationServiceImpl extends ServiceImpl<PayMeetingSituat
|
|||||||
if (meetingType.equals(Integer.parseInt(MeetingCommon.STANDARD_MEETING))) {
|
if (meetingType.equals(Integer.parseInt(MeetingCommon.STANDARD_MEETING))) {
|
||||||
//根据企业名称和会员类型不为null判断是否为标协会员
|
//根据企业名称和会员类型不为null判断是否为标协会员
|
||||||
//如果是标协会员就存入会议费用(标协会员)
|
//如果是标协会员就存入会议费用(标协会员)
|
||||||
if (checkMember(payMeetingSituation1.getCompanyName())) {
|
if (checkMember) {
|
||||||
payMeetingSituation1.setAmountReceivable(payMeeting.getMeetingCostsVip());
|
payMeetingSituation1.setAmountReceivable(payMeeting.getMeetingCostsVip());
|
||||||
} else {
|
} else {
|
||||||
payMeetingSituation1.setAmountReceivable(payMeeting.getMeetingCosts());
|
payMeetingSituation1.setAmountReceivable(payMeeting.getMeetingCosts());
|
||||||
|
|||||||
Reference in New Issue
Block a user