|
|
@ -1366,23 +1366,25 @@ public class BaseDistributorService extends MybatisBaseService<BaseDistributorMa |
|
|
|
appDisAndCustm.setExtra(extra); |
|
|
|
appDisAndCustms.add(appDisAndCustm); |
|
|
|
} |
|
|
|
CrmCustomerTempListQuery crmCustomerTempListQuery = new CrmCustomerTempListQuery(); |
|
|
|
SysUserVo sysUserVo = sysUserFeign.fetchBySid(userSid).getData(); |
|
|
|
crmCustomerTempListQuery.setStaffSid(sysUserVo.getStaffSid()); |
|
|
|
crmCustomerTempListQuery.setOrgPath(orgPath); |
|
|
|
crmCustomerTempListQuery.setCertificateTypeKey("01"); |
|
|
|
crmCustomerTempListQuery.setSearch(search); |
|
|
|
List<CrmCustomerTempListVo> crmCustomerTempListVos = crmCustomerTempFeign.selectCustomerList(crmCustomerTempListQuery).getData(); |
|
|
|
for (CrmCustomerTempListVo crmCustomerTempListVo : crmCustomerTempListVos) { |
|
|
|
AppDisAndCustm appDisAndCustm = new AppDisAndCustm(); |
|
|
|
Extra extra = new Extra(); |
|
|
|
appDisAndCustm.setDictValue(crmCustomerTempListVo.getName()); |
|
|
|
appDisAndCustm.setId(crmCustomerTempListVo.getSid()); |
|
|
|
extra.setSid(appDisAndCustm.getId()); |
|
|
|
extra.setName(appDisAndCustm.getDictValue()); |
|
|
|
extra.setInfo(crmCustomerTempListVo.getIdCard()); |
|
|
|
appDisAndCustm.setExtra(extra); |
|
|
|
appDisAndCustms.add(appDisAndCustm); |
|
|
|
if("01".equals(invoiceKey)){ |
|
|
|
CrmCustomerTempListQuery crmCustomerTempListQuery = new CrmCustomerTempListQuery(); |
|
|
|
SysUserVo sysUserVo = sysUserFeign.fetchBySid(userSid).getData(); |
|
|
|
crmCustomerTempListQuery.setStaffSid(sysUserVo.getStaffSid()); |
|
|
|
crmCustomerTempListQuery.setOrgPath(orgPath); |
|
|
|
crmCustomerTempListQuery.setCertificateTypeKey("01"); |
|
|
|
crmCustomerTempListQuery.setSearch(search); |
|
|
|
List<CrmCustomerTempListVo> crmCustomerTempListVos = crmCustomerTempFeign.selectCustomerList(crmCustomerTempListQuery).getData(); |
|
|
|
for (CrmCustomerTempListVo crmCustomerTempListVo : crmCustomerTempListVos) { |
|
|
|
AppDisAndCustm appDisAndCustm = new AppDisAndCustm(); |
|
|
|
Extra extra = new Extra(); |
|
|
|
appDisAndCustm.setDictValue(crmCustomerTempListVo.getName()); |
|
|
|
appDisAndCustm.setId(crmCustomerTempListVo.getSid()); |
|
|
|
extra.setSid(appDisAndCustm.getId()); |
|
|
|
extra.setName(appDisAndCustm.getDictValue()); |
|
|
|
extra.setInfo(crmCustomerTempListVo.getIdCard()); |
|
|
|
appDisAndCustm.setExtra(extra); |
|
|
|
appDisAndCustms.add(appDisAndCustm); |
|
|
|
} |
|
|
|
} |
|
|
|
return rb.success().setData(appDisAndCustms); |
|
|
|
} |
|
|
@ -1432,28 +1434,30 @@ public class BaseDistributorService extends MybatisBaseService<BaseDistributorMa |
|
|
|
appDisAndCustm.setExtra(extra); |
|
|
|
appDisAndCustms.add(appDisAndCustm); |
|
|
|
} |
|
|
|
CrmCustomerTempListQuery crmCustomerTempListQuery = new CrmCustomerTempListQuery(); |
|
|
|
SysUserVo sysUserVo = sysUserFeign.fetchBySid(userSid).getData(); |
|
|
|
crmCustomerTempListQuery.setStaffSid(sysUserVo.getStaffSid()); |
|
|
|
crmCustomerTempListQuery.setOrgPath(orgPath); |
|
|
|
crmCustomerTempListQuery.setCertificateTypeKey("01"); |
|
|
|
crmCustomerTempListQuery.setSearch(search); |
|
|
|
List<CrmCustomerTempListVo> crmCustomerTempListVos = crmCustomerTempFeign.selectCustomerList(crmCustomerTempListQuery).getData(); |
|
|
|
for (CrmCustomerTempListVo crmCustomerTempListVo : crmCustomerTempListVos) { |
|
|
|
AppDisAndCustm appDisAndCustm = new AppDisAndCustm(); |
|
|
|
//查询是否已备案
|
|
|
|
LoanCustomerRecord loanCustomerRecord = baseMapper.selectByRecord(crmCustomerTempListVo.getSid()); |
|
|
|
if(loanCustomerRecord == null){ |
|
|
|
continue; |
|
|
|
if("01".equals(invoiceKey)){ |
|
|
|
CrmCustomerTempListQuery crmCustomerTempListQuery = new CrmCustomerTempListQuery(); |
|
|
|
SysUserVo sysUserVo = sysUserFeign.fetchBySid(userSid).getData(); |
|
|
|
crmCustomerTempListQuery.setStaffSid(sysUserVo.getStaffSid()); |
|
|
|
crmCustomerTempListQuery.setOrgPath(orgPath); |
|
|
|
crmCustomerTempListQuery.setCertificateTypeKey("01"); |
|
|
|
crmCustomerTempListQuery.setSearch(search); |
|
|
|
List<CrmCustomerTempListVo> crmCustomerTempListVos = crmCustomerTempFeign.selectCustomerList(crmCustomerTempListQuery).getData(); |
|
|
|
for (CrmCustomerTempListVo crmCustomerTempListVo : crmCustomerTempListVos) { |
|
|
|
AppDisAndCustm appDisAndCustm = new AppDisAndCustm(); |
|
|
|
//查询是否已备案
|
|
|
|
LoanCustomerRecord loanCustomerRecord = baseMapper.selectByRecord(crmCustomerTempListVo.getSid()); |
|
|
|
if(loanCustomerRecord == null){ |
|
|
|
continue; |
|
|
|
} |
|
|
|
Extra extra = new Extra(); |
|
|
|
appDisAndCustm.setDictValue(crmCustomerTempListVo.getName()); |
|
|
|
appDisAndCustm.setId(crmCustomerTempListVo.getSid()); |
|
|
|
extra.setSid(appDisAndCustm.getId()); |
|
|
|
extra.setName(appDisAndCustm.getDictValue()); |
|
|
|
extra.setInfo(crmCustomerTempListVo.getIdCard()); |
|
|
|
appDisAndCustm.setExtra(extra); |
|
|
|
appDisAndCustms.add(appDisAndCustm); |
|
|
|
} |
|
|
|
Extra extra = new Extra(); |
|
|
|
appDisAndCustm.setDictValue(crmCustomerTempListVo.getName()); |
|
|
|
appDisAndCustm.setId(crmCustomerTempListVo.getSid()); |
|
|
|
extra.setSid(appDisAndCustm.getId()); |
|
|
|
extra.setName(appDisAndCustm.getDictValue()); |
|
|
|
extra.setInfo(crmCustomerTempListVo.getIdCard()); |
|
|
|
appDisAndCustm.setExtra(extra); |
|
|
|
appDisAndCustms.add(appDisAndCustm); |
|
|
|
} |
|
|
|
return rb.success().setData(appDisAndCustms); |
|
|
|
} |
|
|
|