|
@@ -5,20 +5,15 @@ import com.jzg.commons.constants.ProductsType;
|
|
|
import com.jzg.commons.entity.po.PtlAgreementUndwrtRulesAttr;
|
|
import com.jzg.commons.entity.po.PtlAgreementUndwrtRulesAttr;
|
|
|
import com.jzg.commons.entity.po.PtlAgreementUndwrtRulesDictLabal;
|
|
import com.jzg.commons.entity.po.PtlAgreementUndwrtRulesDictLabal;
|
|
|
import com.jzg.commons.entity.scheme.po.*;
|
|
import com.jzg.commons.entity.scheme.po.*;
|
|
|
-import com.jzg.commons.entity.vo.AgreementRulesVo;
|
|
|
|
|
import com.jzg.commons.exception.ValidateException;
|
|
import com.jzg.commons.exception.ValidateException;
|
|
|
import com.jzg.commons.util.idgen.IdGenerate;
|
|
import com.jzg.commons.util.idgen.IdGenerate;
|
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
|
|
import jakarta.validation.Valid;
|
|
import jakarta.validation.Valid;
|
|
|
-import jakarta.validation.constraints.Max;
|
|
|
|
|
import jakarta.validation.constraints.NotBlank;
|
|
import jakarta.validation.constraints.NotBlank;
|
|
|
-import jakarta.validation.constraints.NotEmpty;
|
|
|
|
|
-import jakarta.validation.constraints.NotNull;
|
|
|
|
|
import lombok.AllArgsConstructor;
|
|
import lombok.AllArgsConstructor;
|
|
|
import lombok.Data;
|
|
import lombok.Data;
|
|
|
import lombok.NoArgsConstructor;
|
|
import lombok.NoArgsConstructor;
|
|
|
import org.hibernate.validator.constraints.Length;
|
|
import org.hibernate.validator.constraints.Length;
|
|
|
-import org.springframework.beans.BeanUtils;
|
|
|
|
|
|
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.ArrayList;
|
|
|
import java.util.Arrays;
|
|
import java.util.Arrays;
|
|
@@ -77,6 +72,9 @@ public class PtlSchemeSaveVo {
|
|
|
@Schema(description = "驾意险列表")
|
|
@Schema(description = "驾意险列表")
|
|
|
private List<PtlSchemeInsuranceDrivingIntention> drivingIntentionList = new ArrayList<>();
|
|
private List<PtlSchemeInsuranceDrivingIntention> drivingIntentionList = new ArrayList<>();
|
|
|
|
|
|
|
|
|
|
+ @Schema(description = "驾意险列表")
|
|
|
|
|
+ private List<PtlSchemeInsuranceDrivingIntention> drivingList = new ArrayList<>();
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public PtlSchemeSaveVo(PtlScheme ptlScheme,PtlSchemeInfo ptlSchemeInfo,
|
|
public PtlSchemeSaveVo(PtlScheme ptlScheme,PtlSchemeInfo ptlSchemeInfo,
|
|
@@ -278,7 +276,7 @@ public class PtlSchemeSaveVo {
|
|
|
public List<PtlSchemeInsuranceDrivingIntention> getPtlSchemeInsuranceDrivingIntentionList(){
|
|
public List<PtlSchemeInsuranceDrivingIntention> getPtlSchemeInsuranceDrivingIntentionList(){
|
|
|
List<PtlSchemeInsuranceDrivingIntention> ptlSchemeInsuranceDrivingIntentionList = new ArrayList<>();
|
|
List<PtlSchemeInsuranceDrivingIntention> ptlSchemeInsuranceDrivingIntentionList = new ArrayList<>();
|
|
|
for (Scheme scheme : schemeList) {
|
|
for (Scheme scheme : schemeList) {
|
|
|
- scheme.drivingIntentionList.forEach(drivingIntention -> {
|
|
|
|
|
|
|
+ scheme.getDrivingList().forEach(drivingIntention -> {
|
|
|
PtlSchemeInsuranceDrivingIntention ptlSchemeInsuranceDrivingIntention = new PtlSchemeInsuranceDrivingIntention();
|
|
PtlSchemeInsuranceDrivingIntention ptlSchemeInsuranceDrivingIntention = new PtlSchemeInsuranceDrivingIntention();
|
|
|
ptlSchemeInsuranceDrivingIntention.setId(IdGenerate.nextId());
|
|
ptlSchemeInsuranceDrivingIntention.setId(IdGenerate.nextId());
|
|
|
ptlSchemeInsuranceDrivingIntention.setSchemeInfoId(scheme.getId());
|
|
ptlSchemeInsuranceDrivingIntention.setSchemeInfoId(scheme.getId());
|