|
|
@@ -156,6 +156,7 @@ public class VppDrServiceImpl implements VppDrService {
|
|
|
event.setAttachmentUrl(request.getAttachmentUrl());
|
|
|
event.setAttachmentName(request.getAttachmentName());
|
|
|
event.setSubsidyPrice(request.getSubsidyPrice());
|
|
|
+ event.setFloatingCoefficient(request.getFloatingCoefficient());
|
|
|
event.setEventStatus(EVENT_STATUS_PENDING);
|
|
|
VppAuditHelper.fillCreate(event);
|
|
|
eventMapper.insert(event);
|
|
|
@@ -188,6 +189,7 @@ public class VppDrServiceImpl implements VppDrService {
|
|
|
event.setAttachmentUrl(request.getAttachmentUrl());
|
|
|
event.setAttachmentName(request.getAttachmentName());
|
|
|
event.setSubsidyPrice(request.getSubsidyPrice());
|
|
|
+ event.setFloatingCoefficient(request.getFloatingCoefficient());
|
|
|
VppAuditHelper.fillUpdate(event);
|
|
|
eventMapper.updateById(event);
|
|
|
}
|
|
|
@@ -837,6 +839,9 @@ public class VppDrServiceImpl implements VppDrService {
|
|
|
if (request.getSubsidyPrice() != null && request.getSubsidyPrice().compareTo(BigDecimal.ZERO) < 0) {
|
|
|
throw new BusinessException("补贴标准不能为负数");
|
|
|
}
|
|
|
+ if (request.getFloatingCoefficient() == null) {
|
|
|
+ throw new BusinessException("下浮系数不能为空");
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
private void ensureEventIdUnique(String eventId, Long excludeId) {
|
|
|
@@ -889,6 +894,7 @@ public class VppDrServiceImpl implements VppDrService {
|
|
|
vo.setAttachmentUrl(event.getAttachmentUrl());
|
|
|
vo.setAttachmentName(event.getAttachmentName());
|
|
|
vo.setSubsidyPrice(event.getSubsidyPrice());
|
|
|
+ vo.setFloatingCoefficient(event.getFloatingCoefficient());
|
|
|
vo.setEventStatus(event.getEventStatus());
|
|
|
vo.setParticipations(loadParticipationVos(event.getId()));
|
|
|
return vo;
|