|
@ -17,7 +17,9 @@ import com.yxt.anrui.base.api.basedistributorapply.BaseDistributorApplyFeign; |
|
|
import com.yxt.anrui.base.api.basedistributorapply.BaseSalesManger; |
|
|
import com.yxt.anrui.base.api.basedistributorapply.BaseSalesManger; |
|
|
import com.yxt.anrui.base.api.basedistributorapply.flow.DistributorDelegateQuery; |
|
|
import com.yxt.anrui.base.api.basedistributorapply.flow.DistributorDelegateQuery; |
|
|
import com.yxt.anrui.base.api.basedistributorapplyappendix.BaseDistributorApplyAppendixVo; |
|
|
import com.yxt.anrui.base.api.basedistributorapplyappendix.BaseDistributorApplyAppendixVo; |
|
|
|
|
|
import com.yxt.anrui.crm.api.crmcustomertemp.CrmCustomerTemp; |
|
|
import com.yxt.anrui.crm.api.crmcustomertemp.CrmCustomerTempFeign; |
|
|
import com.yxt.anrui.crm.api.crmcustomertemp.CrmCustomerTempFeign; |
|
|
|
|
|
import com.yxt.anrui.crm.api.crmcustomertemp.CrmCustomerTempUpdateDto; |
|
|
import com.yxt.anrui.crm.api.crmcustomertemp.CrmCustomerTempVo; |
|
|
import com.yxt.anrui.crm.api.crmcustomertemp.CrmCustomerTempVo; |
|
|
import com.yxt.anrui.fin.api.fincompanyinvoicing.FinCompanyInvoicingDetailsVo; |
|
|
import com.yxt.anrui.fin.api.fincompanyinvoicing.FinCompanyInvoicingDetailsVo; |
|
|
import com.yxt.anrui.fin.api.fincompanyinvoicing.FinCompanyInvoicingDto; |
|
|
import com.yxt.anrui.fin.api.fincompanyinvoicing.FinCompanyInvoicingDto; |
|
@ -222,6 +224,15 @@ public class LoanCustomerRecordService extends MybatisBaseService<LoanCustomerRe |
|
|
if (StringUtils.isNotBlank(entity.getProcInstId())) { |
|
|
if (StringUtils.isNotBlank(entity.getProcInstId())) { |
|
|
vo.setInstanceId(entity.getProcInstId()); |
|
|
vo.setInstanceId(entity.getProcInstId()); |
|
|
} |
|
|
} |
|
|
|
|
|
if (StringUtils.isNotBlank(entity.getEndDate())) { |
|
|
|
|
|
vo.setDocumentsDate(entity.getEndDate()); |
|
|
|
|
|
} |
|
|
|
|
|
if (StringUtils.isNotBlank(entity.getCardAddress())) { |
|
|
|
|
|
vo.setClientAddress(entity.getCardAddress()); |
|
|
|
|
|
} |
|
|
|
|
|
if (StringUtils.isNotBlank(entity.getIdNumber())) { |
|
|
|
|
|
vo.setClientNo(entity.getIdNumber()); |
|
|
|
|
|
} |
|
|
//查询客户基本信息
|
|
|
//查询客户基本信息
|
|
|
if (StringUtils.isNotBlank(entity.getCustomerSid())) { |
|
|
if (StringUtils.isNotBlank(entity.getCustomerSid())) { |
|
|
String customerSid = entity.getCustomerSid(); |
|
|
String customerSid = entity.getCustomerSid(); |
|
@ -230,32 +241,9 @@ public class LoanCustomerRecordService extends MybatisBaseService<LoanCustomerRe |
|
|
if (StringUtils.isNotBlank(customerTempVo.getMobile())) { |
|
|
if (StringUtils.isNotBlank(customerTempVo.getMobile())) { |
|
|
vo.setClientPhone(customerTempVo.getMobile()); |
|
|
vo.setClientPhone(customerTempVo.getMobile()); |
|
|
} |
|
|
} |
|
|
if (StringUtils.isNotBlank(customerTempVo.getIDNumber())) { |
|
|
|
|
|
vo.setClientNo(customerTempVo.getIDNumber()); |
|
|
|
|
|
} |
|
|
|
|
|
if (StringUtils.isNotBlank(customerTempVo.getCertificateType())) { |
|
|
if (StringUtils.isNotBlank(customerTempVo.getCertificateType())) { |
|
|
vo.setDocuments(customerTempVo.getCertificateType()); |
|
|
vo.setDocuments(customerTempVo.getCertificateType()); |
|
|
} |
|
|
} |
|
|
if (StringUtils.isNotBlank(customerTempVo.getEndDate())) { |
|
|
|
|
|
vo.setDocumentsDate(customerTempVo.getEndDate()); |
|
|
|
|
|
} |
|
|
|
|
|
String province = ""; |
|
|
|
|
|
String city = ""; |
|
|
|
|
|
String county = ""; |
|
|
|
|
|
String address = ""; |
|
|
|
|
|
if (StringUtils.isNotBlank(customerTempVo.getProvince())) { |
|
|
|
|
|
province = customerTempVo.getProvince(); |
|
|
|
|
|
} |
|
|
|
|
|
if (StringUtils.isNotBlank(customerTempVo.getCity())) { |
|
|
|
|
|
city = customerTempVo.getCity(); |
|
|
|
|
|
} |
|
|
|
|
|
if (StringUtils.isNotBlank(customerTempVo.getCounty())) { |
|
|
|
|
|
county = customerTempVo.getCounty(); |
|
|
|
|
|
} |
|
|
|
|
|
if (StringUtils.isNotBlank(customerTempVo.getAddress())) { |
|
|
|
|
|
address = customerTempVo.getAddress(); |
|
|
|
|
|
} |
|
|
|
|
|
vo.setClientAddress(province + city + county + address); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
//查询企业人员信息
|
|
|
//查询企业人员信息
|
|
@ -306,6 +294,9 @@ public class LoanCustomerRecordService extends MybatisBaseService<LoanCustomerRe |
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
public ResultBean<String> saveRecord(LoanCustomerRecordDto dto) { |
|
|
public ResultBean<String> saveRecord(LoanCustomerRecordDto dto) { |
|
|
ResultBean<String> rb = ResultBean.fireFail(); |
|
|
ResultBean<String> rb = ResultBean.fireFail(); |
|
|
|
|
|
if (StringUtils.isBlank(dto.getClientNo())) { |
|
|
|
|
|
return rb.setMsg("证件号码不能为空!"); |
|
|
|
|
|
} |
|
|
String sid = ""; |
|
|
String sid = ""; |
|
|
// 企业开票人员信息
|
|
|
// 企业开票人员信息
|
|
|
List<LoanCustomerRecordStaffDto> staffs = dto.getStaffs(); |
|
|
List<LoanCustomerRecordStaffDto> staffs = dto.getStaffs(); |
|
@ -343,6 +334,15 @@ public class LoanCustomerRecordService extends MybatisBaseService<LoanCustomerRe |
|
|
loanCustomerRecord.setSalesUserSid(data.getSid()); |
|
|
loanCustomerRecord.setSalesUserSid(data.getSid()); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
if (StringUtils.isNotBlank(dto.getClientNo())) { |
|
|
|
|
|
loanCustomerRecord.setIdNumber(dto.getClientNo()); |
|
|
|
|
|
} |
|
|
|
|
|
if (StringUtils.isNotBlank(dto.getDocumentsDate())) { |
|
|
|
|
|
loanCustomerRecord.setEndDate(dto.getDocumentsDate()); |
|
|
|
|
|
} |
|
|
|
|
|
if (StringUtils.isNotBlank(dto.getClientAddress())) { |
|
|
|
|
|
loanCustomerRecord.setCardAddress(dto.getClientAddress()); |
|
|
|
|
|
} |
|
|
baseMapper.updateById(loanCustomerRecord); |
|
|
baseMapper.updateById(loanCustomerRecord); |
|
|
} else { |
|
|
} else { |
|
|
LoanCustomerRecord loanCustomerRecord = new LoanCustomerRecord(); |
|
|
LoanCustomerRecord loanCustomerRecord = new LoanCustomerRecord(); |
|
@ -371,6 +371,15 @@ public class LoanCustomerRecordService extends MybatisBaseService<LoanCustomerRe |
|
|
loanCustomerRecord.setSalesUserSid(data.getSid()); |
|
|
loanCustomerRecord.setSalesUserSid(data.getSid()); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
if (StringUtils.isNotBlank(dto.getClientNo())) { |
|
|
|
|
|
loanCustomerRecord.setIdNumber(dto.getClientNo()); |
|
|
|
|
|
} |
|
|
|
|
|
if (StringUtils.isNotBlank(dto.getDocumentsDate())) { |
|
|
|
|
|
loanCustomerRecord.setEndDate(dto.getDocumentsDate()); |
|
|
|
|
|
} |
|
|
|
|
|
if (StringUtils.isNotBlank(dto.getClientAddress())) { |
|
|
|
|
|
loanCustomerRecord.setCardAddress(dto.getClientAddress()); |
|
|
|
|
|
} |
|
|
baseMapper.insert(loanCustomerRecord); |
|
|
baseMapper.insert(loanCustomerRecord); |
|
|
} |
|
|
} |
|
|
if (StringUtils.isNotBlank(sid)) { |
|
|
if (StringUtils.isNotBlank(sid)) { |
|
@ -522,6 +531,8 @@ public class LoanCustomerRecordService extends MybatisBaseService<LoanCustomerRe |
|
|
variables.put("businessSid", businessSid); |
|
|
variables.put("businessSid", businessSid); |
|
|
appMap.put("sid", businessSid); |
|
|
appMap.put("sid", businessSid); |
|
|
variables.put("app", appMap); |
|
|
variables.put("app", appMap); |
|
|
|
|
|
String orderNames = "<" + entity.getCustomer() + ">" + "欠款客户备案"; |
|
|
|
|
|
variables.put("orderNames", orderNames); |
|
|
LoanCustomerRecord loanCustomerRecord1 = fetchBySid(businessSid); |
|
|
LoanCustomerRecord loanCustomerRecord1 = fetchBySid(businessSid); |
|
|
String msgBusinessSid = loanCustomerRecord1.getSid(); |
|
|
String msgBusinessSid = loanCustomerRecord1.getSid(); |
|
|
//用户的部门全路径sid
|
|
|
//用户的部门全路径sid
|
|
@ -635,12 +646,23 @@ public class LoanCustomerRecordService extends MybatisBaseService<LoanCustomerRe |
|
|
String phone = ""; |
|
|
String phone = ""; |
|
|
String invoicingSid = ""; |
|
|
String invoicingSid = ""; |
|
|
String orgPath = ""; |
|
|
String orgPath = ""; |
|
|
|
|
|
String createBySid = ""; |
|
|
|
|
|
String openTicketType = ""; |
|
|
|
|
|
String openTicketTypeKey = ""; |
|
|
if (StringUtils.isNotBlank(entity.getTaxpayerNo())) { |
|
|
if (StringUtils.isNotBlank(entity.getTaxpayerNo())) { |
|
|
taxpayerNo = entity.getTaxpayerNo(); |
|
|
taxpayerNo = entity.getTaxpayerNo(); |
|
|
FinCompanyInvoicingDetailsVo data = finCompanyInvoicingFeign.selectInvoingByTaxpayerNo(taxpayerNo).getData(); |
|
|
FinCompanyInvoicingDetailsVo data = finCompanyInvoicingFeign.selectInvoingByTaxpayerNo(taxpayerNo).getData(); |
|
|
if (null != data) { |
|
|
if (null != data) { |
|
|
|
|
|
BeanUtil.copyProperties(data, invoicingDto); |
|
|
invoicingSid = data.getSid(); |
|
|
invoicingSid = data.getSid(); |
|
|
orgPath = data.getOrgSidPath(); |
|
|
orgPath = data.getOrgSidPath(); |
|
|
|
|
|
createBySid = data.getCreateBySid(); |
|
|
|
|
|
if (StringUtils.isNotBlank(data.getOpenTickTypeKey())) { |
|
|
|
|
|
openTicketTypeKey = data.getOpenTickTypeKey(); |
|
|
|
|
|
} |
|
|
|
|
|
if (StringUtils.isNotBlank(data.getOpenTickTypeValue())) { |
|
|
|
|
|
openTicketType = data.getOpenTickTypeValue(); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
if (StringUtils.isNotBlank(entity.getBusinessName())) { |
|
|
if (StringUtils.isNotBlank(entity.getBusinessName())) { |
|
@ -655,6 +677,7 @@ public class LoanCustomerRecordService extends MybatisBaseService<LoanCustomerRe |
|
|
if (StringUtils.isNotBlank(invoicingSid)) { |
|
|
if (StringUtils.isNotBlank(invoicingSid)) { |
|
|
invoicingDto.setSid(invoicingSid); |
|
|
invoicingDto.setSid(invoicingSid); |
|
|
invoicingDto.setOrgSidPath(orgPath); |
|
|
invoicingDto.setOrgSidPath(orgPath); |
|
|
|
|
|
invoicingDto.setCreateBySid(createBySid); |
|
|
} else { |
|
|
} else { |
|
|
invoicingDto.setOrgSidPath(entity.getOrgSidPath()); |
|
|
invoicingDto.setOrgSidPath(entity.getOrgSidPath()); |
|
|
invoicingDto.setCreateBySid(entity.getCreateBySid()); |
|
|
invoicingDto.setCreateBySid(entity.getCreateBySid()); |
|
@ -664,6 +687,16 @@ public class LoanCustomerRecordService extends MybatisBaseService<LoanCustomerRe |
|
|
invoicingDto.setPhone(phone); |
|
|
invoicingDto.setPhone(phone); |
|
|
invoicingDto.setTaxpayerNo(taxpayerNo); |
|
|
invoicingDto.setTaxpayerNo(taxpayerNo); |
|
|
invoicingDto.setEffectiveDate(effectiveDate); |
|
|
invoicingDto.setEffectiveDate(effectiveDate); |
|
|
|
|
|
if (StringUtils.isNotBlank(openTicketTypeKey)) { |
|
|
|
|
|
invoicingDto.setOpenTickTypeKey(openTicketTypeKey); |
|
|
|
|
|
} else { |
|
|
|
|
|
invoicingDto.setOpenTickTypeKey("01"); |
|
|
|
|
|
} |
|
|
|
|
|
if (StringUtils.isNotBlank(openTicketType)) { |
|
|
|
|
|
invoicingDto.setOpenTickTypeValue(openTicketType); |
|
|
|
|
|
} else { |
|
|
|
|
|
invoicingDto.setOpenTickTypeValue("机动车销售统一发票"); |
|
|
|
|
|
} |
|
|
finCompanyInvoicingFeign.qySaveOrUpdate(invoicingDto); |
|
|
finCompanyInvoicingFeign.qySaveOrUpdate(invoicingDto); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
@ -677,19 +710,30 @@ public class LoanCustomerRecordService extends MybatisBaseService<LoanCustomerRe |
|
|
String phone = ""; |
|
|
String phone = ""; |
|
|
String invoicingSid = ""; |
|
|
String invoicingSid = ""; |
|
|
String orgPath = ""; |
|
|
String orgPath = ""; |
|
|
if (StringUtils.isNotBlank(customerTempVo.getIDNumber())) { |
|
|
String createBySid = ""; |
|
|
taxpayerNo = customerTempVo.getIDNumber(); |
|
|
String openTicketType = ""; |
|
|
|
|
|
String openTicketTypeKey = ""; |
|
|
|
|
|
if (StringUtils.isNotBlank(entity.getIdNumber())) { |
|
|
|
|
|
taxpayerNo = entity.getIdNumber(); |
|
|
FinCompanyInvoicingDetailsVo data = finCompanyInvoicingFeign.selectInvoingByTaxpayerNo(taxpayerNo).getData(); |
|
|
FinCompanyInvoicingDetailsVo data = finCompanyInvoicingFeign.selectInvoingByTaxpayerNo(taxpayerNo).getData(); |
|
|
if (null != data) { |
|
|
if (null != data) { |
|
|
|
|
|
BeanUtil.copyProperties(data, invoicingDto); |
|
|
invoicingSid = data.getSid(); |
|
|
invoicingSid = data.getSid(); |
|
|
orgPath = data.getOrgSidPath(); |
|
|
orgPath = data.getOrgSidPath(); |
|
|
|
|
|
createBySid = data.getCreateBySid(); |
|
|
|
|
|
if (StringUtils.isNotBlank(data.getOpenTickTypeKey())) { |
|
|
|
|
|
openTicketTypeKey = data.getOpenTickTypeKey(); |
|
|
|
|
|
} |
|
|
|
|
|
if (StringUtils.isNotBlank(data.getOpenTickTypeValue())) { |
|
|
|
|
|
openTicketType = data.getOpenTickTypeValue(); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
if (StringUtils.isNotBlank(customerTempVo.getName())) { |
|
|
if (StringUtils.isNotBlank(customerTempVo.getName())) { |
|
|
name = customerTempVo.getName(); |
|
|
name = customerTempVo.getName(); |
|
|
} |
|
|
} |
|
|
if (StringUtils.isNotBlank(customerTempVo.getAddress())) { |
|
|
if (StringUtils.isNotBlank(entity.getCardAddress())) { |
|
|
address = customerTempVo.getAddress(); |
|
|
address = entity.getCardAddress(); |
|
|
} |
|
|
} |
|
|
if (StringUtils.isNotBlank(customerTempVo.getMobile())) { |
|
|
if (StringUtils.isNotBlank(customerTempVo.getMobile())) { |
|
|
phone = customerTempVo.getMobile(); |
|
|
phone = customerTempVo.getMobile(); |
|
@ -697,6 +741,7 @@ public class LoanCustomerRecordService extends MybatisBaseService<LoanCustomerRe |
|
|
if (StringUtils.isNotBlank(invoicingSid)) { |
|
|
if (StringUtils.isNotBlank(invoicingSid)) { |
|
|
invoicingDto.setSid(invoicingSid); |
|
|
invoicingDto.setSid(invoicingSid); |
|
|
invoicingDto.setOrgSidPath(orgPath); |
|
|
invoicingDto.setOrgSidPath(orgPath); |
|
|
|
|
|
invoicingDto.setCreateBySid(createBySid); |
|
|
} else { |
|
|
} else { |
|
|
invoicingDto.setOrgSidPath(entity.getOrgSidPath()); |
|
|
invoicingDto.setOrgSidPath(entity.getOrgSidPath()); |
|
|
invoicingDto.setCreateBySid(entity.getCreateBySid()); |
|
|
invoicingDto.setCreateBySid(entity.getCreateBySid()); |
|
@ -706,11 +751,34 @@ public class LoanCustomerRecordService extends MybatisBaseService<LoanCustomerRe |
|
|
invoicingDto.setPhone(phone); |
|
|
invoicingDto.setPhone(phone); |
|
|
invoicingDto.setTaxpayerNo(taxpayerNo); |
|
|
invoicingDto.setTaxpayerNo(taxpayerNo); |
|
|
invoicingDto.setEffectiveDate(effectiveDate); |
|
|
invoicingDto.setEffectiveDate(effectiveDate); |
|
|
|
|
|
if (StringUtils.isNotBlank(openTicketTypeKey)) { |
|
|
|
|
|
invoicingDto.setOpenTickTypeKey(openTicketTypeKey); |
|
|
|
|
|
} else { |
|
|
|
|
|
invoicingDto.setOpenTickTypeKey("01"); |
|
|
|
|
|
} |
|
|
|
|
|
if (StringUtils.isNotBlank(openTicketType)) { |
|
|
|
|
|
invoicingDto.setOpenTickTypeValue(openTicketType); |
|
|
|
|
|
} else { |
|
|
|
|
|
invoicingDto.setOpenTickTypeValue("机动车销售统一发票"); |
|
|
|
|
|
} |
|
|
finCompanyInvoicingFeign.qySaveOrUpdate(invoicingDto); |
|
|
finCompanyInvoicingFeign.qySaveOrUpdate(invoicingDto); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
//维护客户信息
|
|
|
|
|
|
if (StringUtils.isNotBlank(entity.getCustomerSid())) { |
|
|
|
|
|
CrmCustomerTemp customerTemp = crmCustomerTempFeign.fetchEntity(entity.getCustomerSid()).getData(); |
|
|
|
|
|
if (customerTemp != null) { |
|
|
|
|
|
if (StringUtils.isNotBlank(entity.getIdNumber())) { |
|
|
|
|
|
customerTemp.setIDNumber(entity.getIdNumber()); |
|
|
|
|
|
} |
|
|
|
|
|
if (StringUtils.isNotBlank(entity.getEndDate())) { |
|
|
|
|
|
customerTemp.setEndDate(entity.getEndDate()); |
|
|
|
|
|
} |
|
|
|
|
|
crmCustomerTempFeign.updateByEntity(customerTemp); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
return rb.success().setData(resultBean.getData()); |
|
|
return rb.success().setData(resultBean.getData()); |
|
|
} else { |
|
|
} else { |
|
@ -983,6 +1051,7 @@ public class LoanCustomerRecordService extends MybatisBaseService<LoanCustomerRe |
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); |
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); |
|
|
LoanCustomerRecord entity = fetchBySid(sid); |
|
|
LoanCustomerRecord entity = fetchBySid(sid); |
|
|
if (entity != null) { |
|
|
if (entity != null) { |
|
|
|
|
|
vo.setSid(sid); |
|
|
vo.setUserSid(entity.getCreateBySid()); |
|
|
vo.setUserSid(entity.getCreateBySid()); |
|
|
vo.setOrgPath(entity.getOrgSidPath()); |
|
|
vo.setOrgPath(entity.getOrgSidPath()); |
|
|
if (null != entity.getApplyDate()) { |
|
|
if (null != entity.getApplyDate()) { |
|
@ -1008,6 +1077,13 @@ public class LoanCustomerRecordService extends MybatisBaseService<LoanCustomerRe |
|
|
if (StringUtils.isNotBlank(entity.getSalesDept())) { |
|
|
if (StringUtils.isNotBlank(entity.getSalesDept())) { |
|
|
vo.setSalesDept(entity.getSalesDept()); |
|
|
vo.setSalesDept(entity.getSalesDept()); |
|
|
} |
|
|
} |
|
|
|
|
|
//部门
|
|
|
|
|
|
if (StringUtils.isNotBlank(entity.getDeptSid())) { |
|
|
|
|
|
vo.setDeptSid(entity.getDeptSid()); |
|
|
|
|
|
} |
|
|
|
|
|
if (StringUtils.isNotBlank(entity.getDept())) { |
|
|
|
|
|
vo.setDept(entity.getDept()); |
|
|
|
|
|
} |
|
|
//销售专员
|
|
|
//销售专员
|
|
|
if (StringUtils.isNotBlank(entity.getSalesman())) { |
|
|
if (StringUtils.isNotBlank(entity.getSalesman())) { |
|
|
vo.setSalesman(entity.getSalesman()); |
|
|
vo.setSalesman(entity.getSalesman()); |
|
@ -1068,20 +1144,21 @@ public class LoanCustomerRecordService extends MybatisBaseService<LoanCustomerRe |
|
|
if (StringUtils.isNotBlank(customerTempVo.getMobile())) { |
|
|
if (StringUtils.isNotBlank(customerTempVo.getMobile())) { |
|
|
vo.setMobile(customerTempVo.getMobile()); |
|
|
vo.setMobile(customerTempVo.getMobile()); |
|
|
} |
|
|
} |
|
|
if (StringUtils.isNotBlank(customerTempVo.getIDNumber())) { |
|
|
|
|
|
vo.setIdNumber(customerTempVo.getIDNumber()); |
|
|
|
|
|
} |
|
|
|
|
|
if (StringUtils.isNotBlank(customerTempVo.getCertificateType())) { |
|
|
if (StringUtils.isNotBlank(customerTempVo.getCertificateType())) { |
|
|
vo.setIdType(customerTempVo.getCertificateType()); |
|
|
vo.setIdType(customerTempVo.getCertificateType()); |
|
|
} |
|
|
} |
|
|
if (StringUtils.isNotBlank(customerTempVo.getEndDate())) { |
|
|
|
|
|
vo.setIdDate(customerTempVo.getEndDate()); |
|
|
|
|
|
} |
|
|
|
|
|
if (StringUtils.isNotBlank(customerTempVo.getAddress())) { |
|
|
|
|
|
vo.setAddressNss(customerTempVo.getAddress()); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
if (StringUtils.isNotBlank(entity.getIdNumber())) { |
|
|
|
|
|
vo.setIdNumber(entity.getIdNumber()); |
|
|
|
|
|
} |
|
|
|
|
|
if (StringUtils.isNotBlank(entity.getCardAddress())) { |
|
|
|
|
|
vo.setAddressNss(entity.getCardAddress()); |
|
|
|
|
|
} |
|
|
|
|
|
if (StringUtils.isNotBlank(entity.getEndDate())) { |
|
|
|
|
|
vo.setIdDate(entity.getEndDate()); |
|
|
|
|
|
} |
|
|
//查询挂靠公司
|
|
|
//查询挂靠公司
|
|
|
if (StringUtils.isNotBlank(entity.getBusinessName())) { |
|
|
if (StringUtils.isNotBlank(entity.getBusinessName())) { |
|
|
vo.setDisName(entity.getBusinessName()); |
|
|
vo.setDisName(entity.getBusinessName()); |
|
@ -1164,7 +1241,6 @@ public class LoanCustomerRecordService extends MybatisBaseService<LoanCustomerRe |
|
|
List<String> otherInfo = fileList.stream().map(c -> fileUploadComponent.getUrlPrefix() + c.getFilePath()).collect(Collectors.toList()); |
|
|
List<String> otherInfo = fileList.stream().map(c -> fileUploadComponent.getUrlPrefix() + c.getFilePath()).collect(Collectors.toList()); |
|
|
vo.setOtherInfo(otherInfo); |
|
|
vo.setOtherInfo(otherInfo); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} else { |
|
|
} else { |
|
|
vo.setUserSid(userSid); |
|
|
vo.setUserSid(userSid); |
|
|
vo.setOrgPath(orgPath); |
|
|
vo.setOrgPath(orgPath); |
|
@ -1198,6 +1274,9 @@ public class LoanCustomerRecordService extends MybatisBaseService<LoanCustomerRe |
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
public ResultBean<String> saveCustomerRecord(AppCustomerRecordDto dto) { |
|
|
public ResultBean<String> saveCustomerRecord(AppCustomerRecordDto dto) { |
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
|
|
if (StringUtils.isBlank(dto.getIdNumber())) { |
|
|
|
|
|
return rb.setMsg("证件号码不能为空!"); |
|
|
|
|
|
} |
|
|
String sid = ""; |
|
|
String sid = ""; |
|
|
// 企业开票人员信息
|
|
|
// 企业开票人员信息
|
|
|
List<AppStaffVo> staffs = dto.getStaffs(); |
|
|
List<AppStaffVo> staffs = dto.getStaffs(); |
|
@ -1268,6 +1347,15 @@ public class LoanCustomerRecordService extends MybatisBaseService<LoanCustomerRe |
|
|
} else { |
|
|
} else { |
|
|
loanCustomerRecord.setLegal(""); |
|
|
loanCustomerRecord.setLegal(""); |
|
|
} |
|
|
} |
|
|
|
|
|
if (StringUtils.isNotBlank(dto.getAddressNss())) { |
|
|
|
|
|
loanCustomerRecord.setCardAddress(dto.getAddressNss()); |
|
|
|
|
|
} |
|
|
|
|
|
if (StringUtils.isNotBlank(dto.getIdNumber())) { |
|
|
|
|
|
loanCustomerRecord.setIdNumber(dto.getIdNumber()); |
|
|
|
|
|
} |
|
|
|
|
|
if (StringUtils.isNotBlank(dto.getIdDate())) { |
|
|
|
|
|
loanCustomerRecord.setEndDate(dto.getIdDate()); |
|
|
|
|
|
} |
|
|
baseMapper.updateById(loanCustomerRecord); |
|
|
baseMapper.updateById(loanCustomerRecord); |
|
|
} else { |
|
|
} else { |
|
|
LoanCustomerRecord loanCustomerRecord = new LoanCustomerRecord(); |
|
|
LoanCustomerRecord loanCustomerRecord = new LoanCustomerRecord(); |
|
@ -1329,6 +1417,15 @@ public class LoanCustomerRecordService extends MybatisBaseService<LoanCustomerRe |
|
|
} else { |
|
|
} else { |
|
|
loanCustomerRecord.setLegal(""); |
|
|
loanCustomerRecord.setLegal(""); |
|
|
} |
|
|
} |
|
|
|
|
|
if (StringUtils.isNotBlank(dto.getAddressNss())) { |
|
|
|
|
|
loanCustomerRecord.setCardAddress(dto.getAddressNss()); |
|
|
|
|
|
} |
|
|
|
|
|
if (StringUtils.isNotBlank(dto.getIdNumber())) { |
|
|
|
|
|
loanCustomerRecord.setIdNumber(dto.getIdNumber()); |
|
|
|
|
|
} |
|
|
|
|
|
if (StringUtils.isNotBlank(dto.getIdDate())) { |
|
|
|
|
|
loanCustomerRecord.setEndDate(dto.getIdDate()); |
|
|
|
|
|
} |
|
|
baseMapper.insert(loanCustomerRecord); |
|
|
baseMapper.insert(loanCustomerRecord); |
|
|
} |
|
|
} |
|
|
if (StringUtils.isNotBlank(sid)) { |
|
|
if (StringUtils.isNotBlank(sid)) { |
|
@ -1453,6 +1550,8 @@ public class LoanCustomerRecordService extends MybatisBaseService<LoanCustomerRe |
|
|
variables.put("businessSid", businessSid); |
|
|
variables.put("businessSid", businessSid); |
|
|
appMap.put("sid", businessSid); |
|
|
appMap.put("sid", businessSid); |
|
|
variables.put("app", appMap); |
|
|
variables.put("app", appMap); |
|
|
|
|
|
String orderNames = "<" + entity.getCustomer() + ">" + "欠款客户备案"; |
|
|
|
|
|
variables.put("orderNames", orderNames); |
|
|
LoanCustomerRecord loanCustomerRecord1 = fetchBySid(businessSid); |
|
|
LoanCustomerRecord loanCustomerRecord1 = fetchBySid(businessSid); |
|
|
String msgBusinessSid = loanCustomerRecord1.getSid(); |
|
|
String msgBusinessSid = loanCustomerRecord1.getSid(); |
|
|
//用户的部门全路径sid
|
|
|
//用户的部门全路径sid
|
|
|