|
@ -1327,6 +1327,64 @@ public class BaseDistributorService extends MybatisBaseService<BaseDistributorMa |
|
|
return rb.success().setData(appDisAndCustms); |
|
|
return rb.success().setData(appDisAndCustms); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public ResultBean<List<AppDisAndCustm>> invoiceName2(String userSid, String orgPath, String search, String invoiceKey) { |
|
|
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
|
|
String useOrgSid = sysStaffOrgFeign.getOrgSidByPath(orgPath).getData(); |
|
|
|
|
|
List<FinCompanyInvoicingBillListVo> finCompanyInvoicingBillListVos = new ArrayList<>(); |
|
|
|
|
|
if (StringUtils.isBlank(search)) { |
|
|
|
|
|
finCompanyInvoicingBillListVos = finCompanyInvoicingFeign.qySelByUseOrgSid2(useOrgSid, invoiceKey); |
|
|
|
|
|
} else { |
|
|
|
|
|
finCompanyInvoicingBillListVos = finCompanyInvoicingFeign.qyAppSelByUseOrgSid2(useOrgSid, search, invoiceKey); |
|
|
|
|
|
} |
|
|
|
|
|
List<AppDisAndCustm> appDisAndCustms = new ArrayList<>(); |
|
|
|
|
|
for (FinCompanyInvoicingBillListVo finCompanyInvoicingBillListVo : finCompanyInvoicingBillListVos) { |
|
|
|
|
|
AppDisAndCustm appDisAndCustm = new AppDisAndCustm(); |
|
|
|
|
|
Extra extra = new Extra(); |
|
|
|
|
|
String openTickRemarks = ""; |
|
|
|
|
|
if (StringUtils.isNotBlank(openTickRemarks + finCompanyInvoicingBillListVo.getRegistNum())) { |
|
|
|
|
|
openTickRemarks = openTickRemarks + finCompanyInvoicingBillListVo.getRegistNum() + ";"; |
|
|
|
|
|
} |
|
|
|
|
|
if (StringUtils.isNotBlank(finCompanyInvoicingBillListVo.getRegistDetailAddress())) { |
|
|
|
|
|
openTickRemarks = openTickRemarks + finCompanyInvoicingBillListVo.getRegistDetailAddress() + ";"; |
|
|
|
|
|
} |
|
|
|
|
|
if (StringUtils.isNotBlank(finCompanyInvoicingBillListVo.getInvoPhone())) { |
|
|
|
|
|
openTickRemarks = openTickRemarks + finCompanyInvoicingBillListVo.getInvoPhone() + ";"; |
|
|
|
|
|
} |
|
|
|
|
|
if (StringUtils.isNotBlank(finCompanyInvoicingBillListVo.getInvoBank())) { |
|
|
|
|
|
openTickRemarks = openTickRemarks + finCompanyInvoicingBillListVo.getInvoBank() + ";"; |
|
|
|
|
|
} |
|
|
|
|
|
if (StringUtils.isNotBlank(finCompanyInvoicingBillListVo.getInvoBankNum())) { |
|
|
|
|
|
openTickRemarks = openTickRemarks + finCompanyInvoicingBillListVo.getInvoBankNum() + ";"; |
|
|
|
|
|
} |
|
|
|
|
|
appDisAndCustm.setId(finCompanyInvoicingBillListVo.getSid()); |
|
|
|
|
|
appDisAndCustm.setDictValue(finCompanyInvoicingBillListVo.getName()); |
|
|
|
|
|
extra.setSid(appDisAndCustm.getId()); |
|
|
|
|
|
extra.setName(appDisAndCustm.getDictValue()); |
|
|
|
|
|
extra.setInfo(openTickRemarks); |
|
|
|
|
|
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); |
|
|
|
|
|
} |
|
|
|
|
|
return rb.success().setData(appDisAndCustms); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
public ResultBean<BaseDistributorApplyDetailsVo> recordInfo(String sid) { |
|
|
public ResultBean<BaseDistributorApplyDetailsVo> recordInfo(String sid) { |
|
|
ResultBean<BaseDistributorApplyDetailsVo> rb = ResultBean.fireFail(); |
|
|
ResultBean<BaseDistributorApplyDetailsVo> rb = ResultBean.fireFail(); |
|
|
BaseDistributorDetailsVo baseDistributorDetailsVo = selBySid(sid); |
|
|
BaseDistributorDetailsVo baseDistributorDetailsVo = selBySid(sid); |
|
@ -1391,6 +1449,8 @@ public class BaseDistributorService extends MybatisBaseService<BaseDistributorMa |
|
|
} |
|
|
} |
|
|
return rb.success(); |
|
|
return rb.success(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
////-------------------------------------流程------------------------------------------------/
|
|
|
////-------------------------------------流程------------------------------------------------/
|
|
|
//
|
|
|
//
|
|
|
// /**
|
|
|
// /**
|
|
|