|
|
@@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.usky.common.core.bean.CommonPage;
|
|
|
import com.usky.common.core.exception.BusinessException;
|
|
|
import com.usky.vpp.config.VppSmsProperties;
|
|
|
+import com.usky.vpp.constant.VppDrEventStatus;
|
|
|
import com.usky.vpp.domain.VppCustomer;
|
|
|
import com.usky.vpp.domain.VppCustomerContact;
|
|
|
import com.usky.vpp.domain.VppDrEvent;
|
|
|
@@ -56,9 +57,10 @@ public class VppDrInvitationServiceImpl implements VppDrInvitationService {
|
|
|
private static final int REPLY_REJECT = 2;
|
|
|
private static final int REPLY_TIMEOUT = 3;
|
|
|
|
|
|
- private static final int RESPONSE_PENDING = 0;
|
|
|
- private static final int RESPONSE_DECLARED = 1;
|
|
|
- private static final int RESPONSE_CANCELLED = 4;
|
|
|
+ /** 与事件状态一致:0待参与 1已申报 2申报完成 3执行中 4已结束 5已取消 */
|
|
|
+ private static final int RESPONSE_PENDING = VppDrEventStatus.PENDING;
|
|
|
+ private static final int RESPONSE_DECLARED = VppDrEventStatus.DECLARED;
|
|
|
+ private static final int RESPONSE_CANCELLED = VppDrEventStatus.CANCELLED;
|
|
|
|
|
|
private static final int SMS_NOT_SENT = 0;
|
|
|
private static final int SMS_SENT = 1;
|
|
|
@@ -208,7 +210,7 @@ public class VppDrInvitationServiceImpl implements VppDrInvitationService {
|
|
|
throw new BusinessException("已参与的邀约不可删除");
|
|
|
}
|
|
|
if (invitation.getResponseStatus() != RESPONSE_PENDING) {
|
|
|
- throw new BusinessException("仅待响应状态的邀约可删除");
|
|
|
+ throw new BusinessException("仅待参与状态的邀约可删除");
|
|
|
}
|
|
|
if (invitation.getParticipationId() != null) {
|
|
|
throw new BusinessException("邀约已关联参与记录,不可删除");
|