|
|
|
@ -118,7 +118,6 @@ public class CustomerServiceImplTest extends BaseDbUnitTest {
|
|
|
|
|
o.setCustomerStarrating(null);
|
|
|
|
|
o.setIndustrySchedule(null);
|
|
|
|
|
o.setBelongingPeople(null);
|
|
|
|
|
o.setCity(null);
|
|
|
|
|
o.setCountry(null);
|
|
|
|
|
o.setAddress(null);
|
|
|
|
|
o.setPhone(null);
|
|
|
|
@ -126,16 +125,53 @@ public class CustomerServiceImplTest extends BaseDbUnitTest {
|
|
|
|
|
o.setCompanyHttp(null);
|
|
|
|
|
o.setCompanyProfile(null);
|
|
|
|
|
o.setCustomerStatus(null);
|
|
|
|
|
o.setCreateTime(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.setBusinessScope(null);
|
|
|
|
|
o.setCreateTime(null);
|
|
|
|
|
o.setIndustryClassify(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 不匹配
|
|
|
|
@ -154,8 +190,6 @@ public class CustomerServiceImplTest extends BaseDbUnitTest {
|
|
|
|
|
customerMapper.insert(cloneIgnoreId(dbCustomer, o -> o.setIndustrySchedule(null)));
|
|
|
|
|
// 测试 belongingPeople 不匹配
|
|
|
|
|
customerMapper.insert(cloneIgnoreId(dbCustomer, o -> o.setBelongingPeople(null)));
|
|
|
|
|
// 测试 city 不匹配
|
|
|
|
|
customerMapper.insert(cloneIgnoreId(dbCustomer, o -> o.setCity(null)));
|
|
|
|
|
// 测试 country 不匹配
|
|
|
|
|
customerMapper.insert(cloneIgnoreId(dbCustomer, o -> o.setCountry(null)));
|
|
|
|
|
// 测试 address 不匹配
|
|
|
|
@ -170,6 +204,12 @@ public class CustomerServiceImplTest extends BaseDbUnitTest {
|
|
|
|
|
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)));
|
|
|
|
|
// 测试 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 不匹配
|
|
|
|
@ -182,14 +222,82 @@ public class CustomerServiceImplTest extends BaseDbUnitTest {
|
|
|
|
|
customerMapper.insert(cloneIgnoreId(dbCustomer, o -> o.setAssetCertificateMortgage(null)));
|
|
|
|
|
// 测试 guarantorCertificate 不匹配
|
|
|
|
|
customerMapper.insert(cloneIgnoreId(dbCustomer, o -> o.setGuarantorCertificate(null)));
|
|
|
|
|
// 测试 businessScope 不匹配
|
|
|
|
|
customerMapper.insert(cloneIgnoreId(dbCustomer, o -> o.setBusinessScope(null)));
|
|
|
|
|
// 测试 createTime 不匹配
|
|
|
|
|
customerMapper.insert(cloneIgnoreId(dbCustomer, o -> o.setCreateTime(null)));
|
|
|
|
|
// 测试 industryClassify 不匹配
|
|
|
|
|
customerMapper.insert(cloneIgnoreId(dbCustomer, o -> o.setIndustryClassify(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);
|
|
|
|
@ -200,7 +308,6 @@ public class CustomerServiceImplTest extends BaseDbUnitTest {
|
|
|
|
|
reqVO.setCustomerStarrating(null);
|
|
|
|
|
reqVO.setIndustrySchedule(null);
|
|
|
|
|
reqVO.setBelongingPeople(null);
|
|
|
|
|
reqVO.setCity(null);
|
|
|
|
|
reqVO.setCountry(null);
|
|
|
|
|
reqVO.setAddress(null);
|
|
|
|
|
reqVO.setPhone(null);
|
|
|
|
@ -208,16 +315,53 @@ public class CustomerServiceImplTest extends BaseDbUnitTest {
|
|
|
|
|
reqVO.setCompanyHttp(null);
|
|
|
|
|
reqVO.setCompanyProfile(null);
|
|
|
|
|
reqVO.setCustomerStatus(null);
|
|
|
|
|
reqVO.setCreateTime(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.setBusinessScope(null);
|
|
|
|
|
reqVO.setCreateTime(buildBetweenTime(2023, 2, 1, 2023, 2, 28));
|
|
|
|
|
reqVO.setIndustryClassify(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);
|
|
|
|
@ -240,7 +384,6 @@ public class CustomerServiceImplTest extends BaseDbUnitTest {
|
|
|
|
|
o.setCustomerStarrating(null);
|
|
|
|
|
o.setIndustrySchedule(null);
|
|
|
|
|
o.setBelongingPeople(null);
|
|
|
|
|
o.setCity(null);
|
|
|
|
|
o.setCountry(null);
|
|
|
|
|
o.setAddress(null);
|
|
|
|
|
o.setPhone(null);
|
|
|
|
@ -248,16 +391,53 @@ public class CustomerServiceImplTest extends BaseDbUnitTest {
|
|
|
|
|
o.setCompanyHttp(null);
|
|
|
|
|
o.setCompanyProfile(null);
|
|
|
|
|
o.setCustomerStatus(null);
|
|
|
|
|
o.setCreateTime(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.setBusinessScope(null);
|
|
|
|
|
o.setCreateTime(null);
|
|
|
|
|
o.setIndustryClassify(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 不匹配
|
|
|
|
@ -276,8 +456,6 @@ public class CustomerServiceImplTest extends BaseDbUnitTest {
|
|
|
|
|
customerMapper.insert(cloneIgnoreId(dbCustomer, o -> o.setIndustrySchedule(null)));
|
|
|
|
|
// 测试 belongingPeople 不匹配
|
|
|
|
|
customerMapper.insert(cloneIgnoreId(dbCustomer, o -> o.setBelongingPeople(null)));
|
|
|
|
|
// 测试 city 不匹配
|
|
|
|
|
customerMapper.insert(cloneIgnoreId(dbCustomer, o -> o.setCity(null)));
|
|
|
|
|
// 测试 country 不匹配
|
|
|
|
|
customerMapper.insert(cloneIgnoreId(dbCustomer, o -> o.setCountry(null)));
|
|
|
|
|
// 测试 address 不匹配
|
|
|
|
@ -292,6 +470,12 @@ public class CustomerServiceImplTest extends BaseDbUnitTest {
|
|
|
|
|
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)));
|
|
|
|
|
// 测试 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 不匹配
|
|
|
|
@ -304,14 +488,82 @@ public class CustomerServiceImplTest extends BaseDbUnitTest {
|
|
|
|
|
customerMapper.insert(cloneIgnoreId(dbCustomer, o -> o.setAssetCertificateMortgage(null)));
|
|
|
|
|
// 测试 guarantorCertificate 不匹配
|
|
|
|
|
customerMapper.insert(cloneIgnoreId(dbCustomer, o -> o.setGuarantorCertificate(null)));
|
|
|
|
|
// 测试 businessScope 不匹配
|
|
|
|
|
customerMapper.insert(cloneIgnoreId(dbCustomer, o -> o.setBusinessScope(null)));
|
|
|
|
|
// 测试 createTime 不匹配
|
|
|
|
|
customerMapper.insert(cloneIgnoreId(dbCustomer, o -> o.setCreateTime(null)));
|
|
|
|
|
// 测试 industryClassify 不匹配
|
|
|
|
|
customerMapper.insert(cloneIgnoreId(dbCustomer, o -> o.setIndustryClassify(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);
|
|
|
|
@ -322,7 +574,6 @@ public class CustomerServiceImplTest extends BaseDbUnitTest {
|
|
|
|
|
reqVO.setCustomerStarrating(null);
|
|
|
|
|
reqVO.setIndustrySchedule(null);
|
|
|
|
|
reqVO.setBelongingPeople(null);
|
|
|
|
|
reqVO.setCity(null);
|
|
|
|
|
reqVO.setCountry(null);
|
|
|
|
|
reqVO.setAddress(null);
|
|
|
|
|
reqVO.setPhone(null);
|
|
|
|
@ -330,16 +581,53 @@ public class CustomerServiceImplTest extends BaseDbUnitTest {
|
|
|
|
|
reqVO.setCompanyHttp(null);
|
|
|
|
|
reqVO.setCompanyProfile(null);
|
|
|
|
|
reqVO.setCustomerStatus(null);
|
|
|
|
|
reqVO.setCreateTime(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.setBusinessScope(null);
|
|
|
|
|
reqVO.setCreateTime(buildBetweenTime(2023, 2, 1, 2023, 2, 28));
|
|
|
|
|
reqVO.setIndustryClassify(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);
|
|
|
|
|