@ -31,7 +31,7 @@ import static org.mockito.Mockito.*;
/ * *
* { @link CustomerServiceImpl } 的 单 元 测 试 类
*
* @author 芋道 源 码
* @author 长江 云 息
* /
@Import ( CustomerServiceImpl . class )
public class CustomerServiceImplTest extends BaseDbUnitTest {
@ -110,50 +110,258 @@ public class CustomerServiceImplTest extends BaseDbUnitTest {
public void testGetCustomerPage ( ) {
// mock 数据
CustomerDO dbCustomer = randomPojo ( CustomerDO . class , o - > { // 等会查询到
o . setCustomerCalssify ( null ) ;
o . setCustomerName ( null ) ;
o . setCustomerType ( null ) ;
o . setUnifiedSettlement ( null ) ;
o . setCustomerNature ( null ) ;
o . setCooperationMode ( null ) ;
o . setLinebusinessId ( null ) ;
o . setStatus ( null ) ;
o . setCustomerLogo ( null ) ;
o . setEnterpriseNature ( null ) ;
o . setCustomerSource ( null ) ;
o . setCustomerStarrating ( null ) ;
o . setIndustrySchedule ( null ) ;
o . setBelongingPeople ( null ) ;
o . setCountry ( null ) ;
o . setAddress ( null ) ;
o . setPhone ( null ) ;
o . setCompanyFax ( null ) ;
o . setCompanyHttp ( null ) ;
o . setCompanyProfile ( null ) ;
o . setCustomerStatus ( null ) ;
o . setCreateTime ( null ) ;
o . setUpdateTime ( null ) ;
o . setIndustryClassify ( null ) ;
o . setCity ( null ) ;
o . setSocialInformationCodeCertificate ( null ) ;
o . setLegalRepresentativesPhoto ( null ) ;
o . setProofPaidCapital ( null ) ;
o . setAssetCertificate ( null ) ;
o . setAssetCertificateMortgage ( null ) ;
o . setGuarantorCertificate ( null ) ;
o . setOtherQualifications ( null ) ;
o . setBusinessScope ( null ) ;
o . setCollaborationScopeNum ( null ) ;
o . setCollaborationTime ( null ) ;
o . setSupplyVolumeDown ( null ) ;
o . setSupplyVolumeUpper ( null ) ;
o . setFundLimit ( null ) ;
o . setBusinessHours ( null ) ;
o . setAllowableUnloadingTime ( null ) ;
o . setUnloadingEfficiency ( null ) ;
o . setAllowableShipmentTime ( null ) ;
o . setShipmentEffciency ( null ) ;
o . setPaymentMethod ( null ) ;
o . setAccountName ( null ) ;
o . setBankAccount ( null ) ;
o . setBankDeposit ( null ) ;
o . setDepositArea ( null ) ;
o . setBankBranch ( null ) ;
o . setCompanyTaxNumber ( null ) ;
o . setEnterpriseName ( null ) ;
o . setWorkAddress ( null ) ;
o . setCollaborationMethod ( null ) ;
o . setSettlementMethod ( null ) ;
o . setAccountPeriod ( null ) ;
o . setUnderpaymentMethod ( null ) ;
o . setDefaultUnderpaymentRatio ( null ) ;
o . setApplyForUnderpaymentRatio ( null ) ;
o . setMarginMethod ( null ) ;
o . setDefaultMarginRatio ( null ) ;
o . setApplyForMarginRatio ( null ) ;
o . setOverdueInterestRate ( null ) ;
o . setDefaultOverdueRatio ( null ) ;
o . setApplyForOverdueRatio ( null ) ;
o . setContactsId ( null ) ;
o . setCustomerType ( null ) ;
o . setAccountType ( null ) ;
o . setUnloading ( null ) ;
o . setShipment ( null ) ;
} ) ;
customerMapper . insert ( dbCustomer ) ;
// 测试 customerCalssify 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setCustomerCalssify ( null ) ) ) ;
// 测试 customerName 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setCustomerName ( null ) ) ) ;
// 测试 customerType 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setCustomerType ( null ) ) ) ;
// 测试 unifiedSettlement 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setUnifiedSettlement ( null ) ) ) ;
// 测试 customerNature 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setCustomerNature ( null ) ) ) ;
// 测试 cooperationMode 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setCooperationMode ( null ) ) ) ;
// 测试 linebusinessId 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setLinebusinessId ( null ) ) ) ;
// 测试 status 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setStatus ( null ) ) ) ;
// 测试 customerLogo 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setCustomerLogo ( null ) ) ) ;
// 测试 enterpriseNature 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setEnterpriseNature ( null ) ) ) ;
// 测试 customerSource 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setCustomerSource ( null ) ) ) ;
// 测试 customerStarrating 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setCustomerStarrating ( null ) ) ) ;
// 测试 industrySchedule 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setIndustrySchedule ( null ) ) ) ;
// 测试 belongingPeople 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setBelongingPeople ( null ) ) ) ;
// 测试 country 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setCountry ( null ) ) ) ;
// 测试 address 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setAddress ( null ) ) ) ;
// 测试 phone 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setPhone ( null ) ) ) ;
// 测试 companyFax 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setCompanyFax ( null ) ) ) ;
// 测试 companyHttp 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setCompanyHttp ( null ) ) ) ;
// 测试 companyProfile 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setCompanyProfile ( null ) ) ) ;
// 测试 customerStatus 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setCustomerStatus ( null ) ) ) ;
// 测试 createTime 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setCreateTime ( null ) ) ) ;
// 测试 updateTime 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setUpdateTime ( null ) ) ) ;
// 测试 industryClassify 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setIndustryClassify ( null ) ) ) ;
// 测试 city 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setCity ( null ) ) ) ;
// 测试 socialInformationCodeCertificate 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setSocialInformationCodeCertificate ( null ) ) ) ;
// 测试 legalRepresentativesPhoto 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setLegalRepresentativesPhoto ( null ) ) ) ;
// 测试 proofPaidCapital 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setProofPaidCapital ( null ) ) ) ;
// 测试 assetCertificate 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setAssetCertificate ( null ) ) ) ;
// 测试 assetCertificateMortgage 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setAssetCertificateMortgage ( null ) ) ) ;
// 测试 guarantorCertificate 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setGuarantorCertificate ( null ) ) ) ;
// 测试 otherQualifications 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setOtherQualifications ( null ) ) ) ;
// 测试 businessScope 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setBusinessScope ( null ) ) ) ;
// 测试 collaborationScopeNum 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setCollaborationScopeNum ( null ) ) ) ;
// 测试 collaborationTime 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setCollaborationTime ( null ) ) ) ;
// 测试 supplyVolumeDown 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setSupplyVolumeDown ( null ) ) ) ;
// 测试 supplyVolumeUpper 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setSupplyVolumeUpper ( null ) ) ) ;
// 测试 fundLimit 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setFundLimit ( null ) ) ) ;
// 测试 businessHours 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setBusinessHours ( null ) ) ) ;
// 测试 allowableUnloadingTime 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setAllowableUnloadingTime ( null ) ) ) ;
// 测试 unloadingEfficiency 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setUnloadingEfficiency ( null ) ) ) ;
// 测试 allowableShipmentTime 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setAllowableShipmentTime ( null ) ) ) ;
// 测试 shipmentEffciency 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setShipmentEffciency ( null ) ) ) ;
// 测试 paymentMethod 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setPaymentMethod ( null ) ) ) ;
// 测试 accountName 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setAccountName ( null ) ) ) ;
// 测试 bankAccount 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setBankAccount ( null ) ) ) ;
// 测试 bankDeposit 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setBankDeposit ( null ) ) ) ;
// 测试 depositArea 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setDepositArea ( null ) ) ) ;
// 测试 bankBranch 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setBankBranch ( null ) ) ) ;
// 测试 companyTaxNumber 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setCompanyTaxNumber ( null ) ) ) ;
// 测试 enterpriseName 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setEnterpriseName ( null ) ) ) ;
// 测试 workAddress 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setWorkAddress ( null ) ) ) ;
// 测试 collaborationMethod 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setCollaborationMethod ( null ) ) ) ;
// 测试 settlementMethod 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setSettlementMethod ( null ) ) ) ;
// 测试 accountPeriod 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setAccountPeriod ( null ) ) ) ;
// 测试 underpaymentMethod 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setUnderpaymentMethod ( null ) ) ) ;
// 测试 defaultUnderpaymentRatio 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setDefaultUnderpaymentRatio ( null ) ) ) ;
// 测试 applyForUnderpaymentRatio 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setApplyForUnderpaymentRatio ( null ) ) ) ;
// 测试 marginMethod 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setMarginMethod ( null ) ) ) ;
// 测试 defaultMarginRatio 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setDefaultMarginRatio ( null ) ) ) ;
// 测试 applyForMarginRatio 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setApplyForMarginRatio ( null ) ) ) ;
// 测试 overdueInterestRate 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setOverdueInterestRate ( null ) ) ) ;
// 测试 defaultOverdueRatio 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setDefaultOverdueRatio ( null ) ) ) ;
// 测试 applyForOverdueRatio 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setApplyForOverdueRatio ( null ) ) ) ;
// 测试 contactsId 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setContactsId ( null ) ) ) ;
// 测试 customerType 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setCustomerType ( null ) ) ) ;
// 测试 accountType 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setAccountType ( null ) ) ) ;
// 测试 unloading 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setUnloading ( null ) ) ) ;
// 测试 shipment 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setShipment ( null ) ) ) ;
// 准备参数
CustomerPageReqVO reqVO = new CustomerPageReqVO ( ) ;
reqVO . setCustomerCalssify ( null ) ;
reqVO . setCustomerName ( null ) ;
reqVO . setCustomerType ( null ) ;
reqVO . setUnifiedSettlement ( null ) ;
reqVO . setCustomerNature ( null ) ;
reqVO . setCooperationMode ( null ) ;
reqVO . setLinebusinessId ( null ) ;
reqVO . setStatus ( null ) ;
// reqVO.setBelongingPeople(null);
reqVO . setCustomerLogo ( null ) ;
reqVO . setEnterpriseNature ( null ) ;
reqVO . setCustomerSource ( null ) ;
reqVO . setCustomerStarrating ( null ) ;
reqVO . setIndustrySchedule ( null ) ;
reqVO . setBelongingPeople ( null ) ;
reqVO . setCountry ( null ) ;
reqVO . setAddress ( null ) ;
reqVO . setPhone ( null ) ;
reqVO . setCompanyFax ( null ) ;
reqVO . setCompanyHttp ( null ) ;
reqVO . setCompanyProfile ( null ) ;
reqVO . setCustomerStatus ( null ) ;
reqVO . setCreateTime ( buildBetweenTime ( 2023 , 2 , 1 , 2023 , 2 , 28 ) ) ;
reqVO . setUpdateTime ( buildBetweenTime ( 2023 , 2 , 1 , 2023 , 2 , 28 ) ) ;
reqVO . setIndustryClassify ( null ) ;
reqVO . setCity ( null ) ;
reqVO . setSocialInformationCodeCertificate ( null ) ;
reqVO . setLegalRepresentativesPhoto ( null ) ;
reqVO . setProofPaidCapital ( null ) ;
reqVO . setAssetCertificate ( null ) ;
reqVO . setAssetCertificateMortgage ( null ) ;
reqVO . setGuarantorCertificate ( null ) ;
reqVO . setOtherQualifications ( null ) ;
reqVO . setBusinessScope ( null ) ;
reqVO . setCollaborationScopeNum ( null ) ;
reqVO . setCollaborationTime ( buildBetweenTime ( 2023 , 2 , 1 , 2023 , 2 , 28 ) ) ;
reqVO . setSupplyVolumeDown ( null ) ;
reqVO . setSupplyVolumeUpper ( null ) ;
reqVO . setFundLimit ( null ) ;
reqVO . setBusinessHours ( null ) ;
reqVO . setAllowableUnloadingTime ( buildBetweenTime ( 2023 , 2 , 1 , 2023 , 2 , 28 ) ) ;
reqVO . setUnloadingEfficiency ( null ) ;
reqVO . setAllowableShipmentTime ( buildBetweenTime ( 2023 , 2 , 1 , 2023 , 2 , 28 ) ) ;
reqVO . setShipmentEffciency ( null ) ;
reqVO . setPaymentMethod ( null ) ;
reqVO . setAccountName ( null ) ;
reqVO . setBankAccount ( null ) ;
reqVO . setBankDeposit ( null ) ;
reqVO . setDepositArea ( null ) ;
reqVO . setBankBranch ( null ) ;
reqVO . setCompanyTaxNumber ( null ) ;
reqVO . setEnterpriseName ( null ) ;
reqVO . setWorkAddress ( null ) ;
reqVO . setCollaborationMethod ( null ) ;
reqVO . setSettlementMethod ( null ) ;
reqVO . setAccountPeriod ( null ) ;
reqVO . setUnderpaymentMethod ( null ) ;
reqVO . setDefaultUnderpaymentRatio ( null ) ;
reqVO . setApplyForUnderpaymentRatio ( null ) ;
reqVO . setMarginMethod ( null ) ;
reqVO . setDefaultMarginRatio ( null ) ;
reqVO . setApplyForMarginRatio ( null ) ;
reqVO . setOverdueInterestRate ( null ) ;
reqVO . setDefaultOverdueRatio ( null ) ;
reqVO . setApplyForOverdueRatio ( null ) ;
reqVO . setContactsId ( null ) ;
reqVO . setCustomerType ( null ) ;
reqVO . setAccountType ( null ) ;
reqVO . setUnloading ( null ) ;
reqVO . setShipment ( null ) ;
// 调用
PageResult < CustomerDO > pageResult = customerService . getCustomerPage ( reqVO ) ;
@ -168,50 +376,258 @@ public class CustomerServiceImplTest extends BaseDbUnitTest {
public void testGetCustomerList ( ) {
// mock 数据
CustomerDO dbCustomer = randomPojo ( CustomerDO . class , o - > { // 等会查询到
o . setCustomerCalssify ( null ) ;
o . setCustomerName ( null ) ;
o . setCustomerType ( null ) ;
o . setUnifiedSettlement ( null ) ;
o . setCustomerNature ( null ) ;
o . setCooperationMode ( null ) ;
o . setLinebusinessId ( null ) ;
o . setStatus ( null ) ;
o . setCustomerLogo ( null ) ;
o . setEnterpriseNature ( null ) ;
o . setCustomerSource ( null ) ;
o . setCustomerStarrating ( null ) ;
o . setIndustrySchedule ( null ) ;
o . setBelongingPeople ( null ) ;
o . setCountry ( null ) ;
o . setAddress ( null ) ;
o . setPhone ( null ) ;
o . setCompanyFax ( null ) ;
o . setCompanyHttp ( null ) ;
o . setCompanyProfile ( null ) ;
o . setCustomerStatus ( null ) ;
o . setCreateTime ( null ) ;
o . setUpdateTime ( null ) ;
o . setIndustryClassify ( null ) ;
o . setCity ( null ) ;
o . setSocialInformationCodeCertificate ( null ) ;
o . setLegalRepresentativesPhoto ( null ) ;
o . setProofPaidCapital ( null ) ;
o . setAssetCertificate ( null ) ;
o . setAssetCertificateMortgage ( null ) ;
o . setGuarantorCertificate ( null ) ;
o . setOtherQualifications ( null ) ;
o . setBusinessScope ( null ) ;
o . setCollaborationScopeNum ( null ) ;
o . setCollaborationTime ( null ) ;
o . setSupplyVolumeDown ( null ) ;
o . setSupplyVolumeUpper ( null ) ;
o . setFundLimit ( null ) ;
o . setBusinessHours ( null ) ;
o . setAllowableUnloadingTime ( null ) ;
o . setUnloadingEfficiency ( null ) ;
o . setAllowableShipmentTime ( null ) ;
o . setShipmentEffciency ( null ) ;
o . setPaymentMethod ( null ) ;
o . setAccountName ( null ) ;
o . setBankAccount ( null ) ;
o . setBankDeposit ( null ) ;
o . setDepositArea ( null ) ;
o . setBankBranch ( null ) ;
o . setCompanyTaxNumber ( null ) ;
o . setEnterpriseName ( null ) ;
o . setWorkAddress ( null ) ;
o . setCollaborationMethod ( null ) ;
o . setSettlementMethod ( null ) ;
o . setAccountPeriod ( null ) ;
o . setUnderpaymentMethod ( null ) ;
o . setDefaultUnderpaymentRatio ( null ) ;
o . setApplyForUnderpaymentRatio ( null ) ;
o . setMarginMethod ( null ) ;
o . setDefaultMarginRatio ( null ) ;
o . setApplyForMarginRatio ( null ) ;
o . setOverdueInterestRate ( null ) ;
o . setDefaultOverdueRatio ( null ) ;
o . setApplyForOverdueRatio ( null ) ;
o . setContactsId ( null ) ;
o . setCustomerType ( null ) ;
o . setAccountType ( null ) ;
o . setUnloading ( null ) ;
o . setShipment ( null ) ;
} ) ;
customerMapper . insert ( dbCustomer ) ;
// 测试 customerCalssify 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setCustomerCalssify ( null ) ) ) ;
// 测试 customerName 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setCustomerName ( null ) ) ) ;
// 测试 customerType 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setCustomerType ( null ) ) ) ;
// 测试 unifiedSettlement 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setUnifiedSettlement ( null ) ) ) ;
// 测试 customerNature 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setCustomerNature ( null ) ) ) ;
// 测试 cooperationMode 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setCooperationMode ( null ) ) ) ;
// 测试 linebusinessId 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setLinebusinessId ( null ) ) ) ;
// 测试 status 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setStatus ( null ) ) ) ;
// 测试 customerLogo 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setCustomerLogo ( null ) ) ) ;
// 测试 enterpriseNature 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setEnterpriseNature ( null ) ) ) ;
// 测试 customerSource 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setCustomerSource ( null ) ) ) ;
// 测试 customerStarrating 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setCustomerStarrating ( null ) ) ) ;
// 测试 industrySchedule 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setIndustrySchedule ( null ) ) ) ;
// 测试 belongingPeople 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setBelongingPeople ( null ) ) ) ;
// 测试 country 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setCountry ( null ) ) ) ;
// 测试 address 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setAddress ( null ) ) ) ;
// 测试 phone 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setPhone ( null ) ) ) ;
// 测试 companyFax 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setCompanyFax ( null ) ) ) ;
// 测试 companyHttp 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setCompanyHttp ( null ) ) ) ;
// 测试 companyProfile 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setCompanyProfile ( null ) ) ) ;
// 测试 customerStatus 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setCustomerStatus ( null ) ) ) ;
// 测试 createTime 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setCreateTime ( null ) ) ) ;
// 测试 updateTime 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setUpdateTime ( null ) ) ) ;
// 测试 industryClassify 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setIndustryClassify ( null ) ) ) ;
// 测试 city 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setCity ( null ) ) ) ;
// 测试 socialInformationCodeCertificate 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setSocialInformationCodeCertificate ( null ) ) ) ;
// 测试 legalRepresentativesPhoto 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setLegalRepresentativesPhoto ( null ) ) ) ;
// 测试 proofPaidCapital 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setProofPaidCapital ( null ) ) ) ;
// 测试 assetCertificate 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setAssetCertificate ( null ) ) ) ;
// 测试 assetCertificateMortgage 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setAssetCertificateMortgage ( null ) ) ) ;
// 测试 guarantorCertificate 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setGuarantorCertificate ( null ) ) ) ;
// 测试 otherQualifications 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setOtherQualifications ( null ) ) ) ;
// 测试 businessScope 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setBusinessScope ( null ) ) ) ;
// 测试 collaborationScopeNum 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setCollaborationScopeNum ( null ) ) ) ;
// 测试 collaborationTime 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setCollaborationTime ( null ) ) ) ;
// 测试 supplyVolumeDown 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setSupplyVolumeDown ( null ) ) ) ;
// 测试 supplyVolumeUpper 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setSupplyVolumeUpper ( null ) ) ) ;
// 测试 fundLimit 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setFundLimit ( null ) ) ) ;
// 测试 businessHours 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setBusinessHours ( null ) ) ) ;
// 测试 allowableUnloadingTime 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setAllowableUnloadingTime ( null ) ) ) ;
// 测试 unloadingEfficiency 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setUnloadingEfficiency ( null ) ) ) ;
// 测试 allowableShipmentTime 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setAllowableShipmentTime ( null ) ) ) ;
// 测试 shipmentEffciency 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setShipmentEffciency ( null ) ) ) ;
// 测试 paymentMethod 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setPaymentMethod ( null ) ) ) ;
// 测试 accountName 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setAccountName ( null ) ) ) ;
// 测试 bankAccount 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setBankAccount ( null ) ) ) ;
// 测试 bankDeposit 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setBankDeposit ( null ) ) ) ;
// 测试 depositArea 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setDepositArea ( null ) ) ) ;
// 测试 bankBranch 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setBankBranch ( null ) ) ) ;
// 测试 companyTaxNumber 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setCompanyTaxNumber ( null ) ) ) ;
// 测试 enterpriseName 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setEnterpriseName ( null ) ) ) ;
// 测试 workAddress 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setWorkAddress ( null ) ) ) ;
// 测试 collaborationMethod 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setCollaborationMethod ( null ) ) ) ;
// 测试 settlementMethod 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setSettlementMethod ( null ) ) ) ;
// 测试 accountPeriod 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setAccountPeriod ( null ) ) ) ;
// 测试 underpaymentMethod 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setUnderpaymentMethod ( null ) ) ) ;
// 测试 defaultUnderpaymentRatio 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setDefaultUnderpaymentRatio ( null ) ) ) ;
// 测试 applyForUnderpaymentRatio 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setApplyForUnderpaymentRatio ( null ) ) ) ;
// 测试 marginMethod 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setMarginMethod ( null ) ) ) ;
// 测试 defaultMarginRatio 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setDefaultMarginRatio ( null ) ) ) ;
// 测试 applyForMarginRatio 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setApplyForMarginRatio ( null ) ) ) ;
// 测试 overdueInterestRate 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setOverdueInterestRate ( null ) ) ) ;
// 测试 defaultOverdueRatio 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setDefaultOverdueRatio ( null ) ) ) ;
// 测试 applyForOverdueRatio 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setApplyForOverdueRatio ( null ) ) ) ;
// 测试 contactsId 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setContactsId ( null ) ) ) ;
// 测试 customerType 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setCustomerType ( null ) ) ) ;
// 测试 accountType 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setAccountType ( null ) ) ) ;
// 测试 unloading 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setUnloading ( null ) ) ) ;
// 测试 shipment 不匹配
customerMapper . insert ( cloneIgnoreId ( dbCustomer , o - > o . setShipment ( null ) ) ) ;
// 准备参数
CustomerExportReqVO reqVO = new CustomerExportReqVO ( ) ;
reqVO . setCustomerCalssify ( null ) ;
reqVO . setCustomerName ( null ) ;
reqVO . setCustomerType ( null ) ;
reqVO . setUnifiedSettlement ( null ) ;
reqVO . setCustomerNature ( null ) ;
reqVO . setCooperationMode ( null ) ;
reqVO . setLinebusinessId ( null ) ;
reqVO . setStatus ( null ) ;
reqVO . setCustomerLogo ( null ) ;
reqVO . setEnterpriseNature ( null ) ;
reqVO . setCustomerSource ( null ) ;
reqVO . setCustomerStarrating ( null ) ;
reqVO . setIndustrySchedule ( null ) ;
reqVO . setBelongingPeople ( null ) ;
reqVO . setCountry ( null ) ;
reqVO . setAddress ( null ) ;
reqVO . setPhone ( null ) ;
reqVO . setCompanyFax ( null ) ;
reqVO . setCompanyHttp ( null ) ;
reqVO . setCompanyProfile ( null ) ;
reqVO . setCustomerStatus ( null ) ;
reqVO . setCreateTime ( buildBetweenTime ( 2023 , 2 , 1 , 2023 , 2 , 28 ) ) ;
reqVO . setUpdateTime ( buildBetweenTime ( 2023 , 2 , 1 , 2023 , 2 , 28 ) ) ;
reqVO . setIndustryClassify ( null ) ;
reqVO . setCity ( null ) ;
reqVO . setSocialInformationCodeCertificate ( null ) ;
reqVO . setLegalRepresentativesPhoto ( null ) ;
reqVO . setProofPaidCapital ( null ) ;
reqVO . setAssetCertificate ( null ) ;
reqVO . setAssetCertificateMortgage ( null ) ;
reqVO . setGuarantorCertificate ( null ) ;
reqVO . setOtherQualifications ( null ) ;
reqVO . setBusinessScope ( null ) ;
reqVO . setCollaborationScopeNum ( null ) ;
reqVO . setCollaborationTime ( buildBetweenTime ( 2023 , 2 , 1 , 2023 , 2 , 28 ) ) ;
reqVO . setSupplyVolumeDown ( null ) ;
reqVO . setSupplyVolumeUpper ( null ) ;
reqVO . setFundLimit ( null ) ;
reqVO . setBusinessHours ( null ) ;
reqVO . setAllowableUnloadingTime ( buildBetweenTime ( 2023 , 2 , 1 , 2023 , 2 , 28 ) ) ;
reqVO . setUnloadingEfficiency ( null ) ;
reqVO . setAllowableShipmentTime ( buildBetweenTime ( 2023 , 2 , 1 , 2023 , 2 , 28 ) ) ;
reqVO . setShipmentEffciency ( null ) ;
reqVO . setPaymentMethod ( null ) ;
reqVO . setAccountName ( null ) ;
reqVO . setBankAccount ( null ) ;
reqVO . setBankDeposit ( null ) ;
reqVO . setDepositArea ( null ) ;
reqVO . setBankBranch ( null ) ;
reqVO . setCompanyTaxNumber ( null ) ;
reqVO . setEnterpriseName ( null ) ;
reqVO . setWorkAddress ( null ) ;
reqVO . setCollaborationMethod ( null ) ;
reqVO . setSettlementMethod ( null ) ;
reqVO . setAccountPeriod ( null ) ;
reqVO . setUnderpaymentMethod ( null ) ;
reqVO . setDefaultUnderpaymentRatio ( null ) ;
reqVO . setApplyForUnderpaymentRatio ( null ) ;
reqVO . setMarginMethod ( null ) ;
reqVO . setDefaultMarginRatio ( null ) ;
reqVO . setApplyForMarginRatio ( null ) ;
reqVO . setOverdueInterestRate ( null ) ;
reqVO . setDefaultOverdueRatio ( null ) ;
reqVO . setApplyForOverdueRatio ( null ) ;
reqVO . setContactsId ( null ) ;
reqVO . setCustomerType ( null ) ;
reqVO . setAccountType ( null ) ;
reqVO . setUnloading ( null ) ;
reqVO . setShipment ( null ) ;
// 调用
List < CustomerDO > list = customerService . getCustomerList ( reqVO ) ;