diff --git a/jero-boot-incoming-payment/src/main/java/com/jero/meeting/common/MeetingSubitemCommon.java b/jero-boot-incoming-payment/src/main/java/com/jero/meeting/common/MeetingSubitemCommon.java index 0ad21af2..cbb39e6e 100644 --- a/jero-boot-incoming-payment/src/main/java/com/jero/meeting/common/MeetingSubitemCommon.java +++ b/jero-boot-incoming-payment/src/main/java/com/jero/meeting/common/MeetingSubitemCommon.java @@ -94,7 +94,7 @@ public class MeetingSubitemCommon { */ public static final Integer SIGNUP_STATUS_2 = 2; /** - * 需要缴费-非成员已报名审核 + * 需要缴费-非成员已报名待审核 */ public static final Integer REGISTER_PROCESS_1 = 1; /** @@ -102,7 +102,7 @@ public class MeetingSubitemCommon { */ public static final Integer REGISTER_PROCESS_2 = 2; /** - * 需要缴费-付款方式为汇款现场缴费 + * 需要缴费-付款方式为汇款现场缴费 待上传凭证 */ public static final Integer REGISTER_PROCESS_3 = 3; /** @@ -122,23 +122,23 @@ public class MeetingSubitemCommon { */ public static final Integer REGISTER_PROCESS_7 = 7; /** - * 需要缴费-付款方式为汇款 的先签到 但是没有上传凭证 报名状态为已签到 + * 需要缴费-付款方式为汇款 的先签到 但是没有上传凭证 报名状态为已签到-待上传凭证 */ public static final Integer REGISTER_PROCESS_8 = 8; /** - * 需要缴费-付款方式为汇款 的先签到 但是没有上传凭证 报名状态为已签到 + * 需要缴费-付款方式为汇款 的先签到 但是没有上传凭证 报名状态为已签到-凭证待审核 */ public static final Integer REGISTER_PROCESS_9 = 9; /** - * 需要缴费-付款方式为汇款 的先签到 但是没有上传凭证 报名状态为已签到 + * 需要缴费-付款方式为汇款 的先签到 但是没有上传凭证 报名状态为已签到-凭证被拒绝 */ public static final Integer REGISTER_PROCESS_10 = 10; /** - * 需要缴费-付款方式为汇款 的先签到 但是没有上传凭证 报名状态为已签到 + * 需要缴费-付款方式为汇款 的先签到 但是没有上传凭证 报名状态为已签到-缴费成功 */ public static final Integer REGISTER_PROCESS_11 = 11; /** - * 不需要缴费-非成员已报名审核 + * 不需要缴费-非成员已报名待审核 */ public static final Integer REGISTER_PROCESS_12 = 12; /** diff --git a/jero-boot-incoming-payment/src/main/java/com/jero/meeting/controller/PayMeetingController.java b/jero-boot-incoming-payment/src/main/java/com/jero/meeting/controller/PayMeetingController.java index 86034ccb..64aa8746 100644 --- a/jero-boot-incoming-payment/src/main/java/com/jero/meeting/controller/PayMeetingController.java +++ b/jero-boot-incoming-payment/src/main/java/com/jero/meeting/controller/PayMeetingController.java @@ -29,6 +29,7 @@ import com.jero.data.service.IPayCaseCommitteeService; import com.jero.data.service.IPayCaseCommitteeSubitemService; import com.jero.data.service.IPayCaseCouncilSubitemService; import com.jero.meeting.common.MeetingCommon; +import com.jero.meeting.common.MeetingSubitemCommon; import com.jero.meeting.entity.*; import com.jero.meeting.mapper.PayMeetingGuestsFileMapper; import com.jero.meeting.service.*; @@ -184,6 +185,7 @@ public class PayMeetingController extends JeroController updateWrapper = new LambdaUpdateWrapper<>(); + updateWrapper.eq(PayMeetingSituation::getId,situationId); + updateWrapper.set(PayMeetingSituation::getPaymentStatus,null); + this.update(updateWrapper); }else { - if (payMeetingSituation.getId() == null){ + if (situationId == null){ payMeetingSituation1.setPaymentStatus(PaymentStatusEnum.TO_BE_UPLOADED.getCode()); + }else { + PayMeetingSituation old = this.getById(situationId); + Integer oldPayMode = old.getPayMode(); + if (MeetingSubitemCommon.PAY_MODE_3.equals(oldPayMode)){ + payMeetingSituation1.setPaymentStatus(PaymentStatusEnum.TO_BE_UPLOADED.getCode()); + } } if (Objects.equals(payMeetingSituation1.getRegisterCheckResult(),MeetingSubitemCommon.SIGNUP_STATUS_1)){ payMeetingSituation1.setRegisterProcess(MeetingSubitemCommon.REGISTER_PROCESS_3);