Pārlūkot izejas kodu

优化响应邀约响应接口中参与动作不与营服中心交互

james 3 dienas atpakaļ
vecāks
revīzija
1e87ab764e

+ 2 - 2
service-vpp/service-vpp-biz/src/main/java/com/usky/vpp/service/impl/VppDrInvitationServiceImpl.java

@@ -295,7 +295,7 @@ public class VppDrInvitationServiceImpl implements VppDrInvitationService {
             invitation.setDeclaredCapacityKw(declared);
             invitation.setReplyStatus(REPLY_ACCEPT);
             invitation.setResponseStatus(RESPONSE_DECLARED);
-            syncParticipationToUn(invitation.getDrEventId(), true, Collections.singletonList(participation));
+//            syncParticipationToUn(invitation.getDrEventId(), true, Collections.singletonList(participation));
 
         } else {
             if (!StringUtils.hasText(request.getReason())) {
@@ -304,7 +304,7 @@ public class VppDrInvitationServiceImpl implements VppDrInvitationService {
             invitation.setReplyStatus(REPLY_REJECT);
             invitation.setResponseStatus(RESPONSE_CANCELLED);
             invitation.setRemark(appendRemark(invitation.getRemark(), "拒绝原因: " + request.getReason()));
-            syncParticipationToUn(invitation.getDrEventId(), false, null);
+//            syncParticipationToUn(invitation.getDrEventId(), false, null);
         }
 
         VppAuditHelper.fillUpdate(invitation);

+ 3 - 3
service-vpp/service-vpp-biz/src/main/java/com/usky/vpp/service/impl/VppDrServiceImpl.java

@@ -957,9 +957,9 @@ public class VppDrServiceImpl implements VppDrService {
         if (request.getEndTime().isBefore(request.getStartTime())) {
             throw new BusinessException("响应结束时间不能早于开始时间");
         }
-        if (request.getTargetCapacityKw() == null || request.getTargetCapacityKw().compareTo(BigDecimal.ZERO) <= 0) {
-            throw new BusinessException("邀约规模必须大于0");
-        }
+//        if (request.getTargetCapacityKw() == null || request.getTargetCapacityKw().compareTo(BigDecimal.ZERO) <= 0) {
+//            throw new BusinessException("邀约规模必须大于0");
+//        }
         if (request.getClearedCapacityKw() != null && request.getClearedCapacityKw().compareTo(BigDecimal.ZERO) < 0) {
             throw new BusinessException("出清规模不能为负数");
         }