|
|
@@ -1383,9 +1383,13 @@ public class ReceivableServiceImpl extends ServiceImpl<ReceivableMapper, InsPlyI
|
|
|
records.forEach(insPlyIncome -> {
|
|
|
if(StrUtil.isNotEmpty(insPlyIncome.getPartnerCompanyId())){
|
|
|
insPlyIncome.setPartnerCompanyName(allCompanyHierarchyPaths.getOrDefault(insPlyIncome.getPartnerCompanyId(),insPlyIncome.getPartnerCompanyId()));
|
|
|
+ if(StrUtil.isNotEmpty(insPlyIncome.getPartnerCompanyName())){
|
|
|
+ String[] split = insPlyIncome.getPartnerCompanyName().split("/");
|
|
|
+ if(split.length > 0){
|
|
|
+ insPlyIncome.setPartnerCompanySimplyName(split[split.length-1]);
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
if("0".equals(insPlyIncome.getSettlementStatus())){
|
|
|
insPlyIncome.setSettlementStatusName("未结算");
|
|
|
}else if("1".equals(insPlyIncome.getSettlementStatus())){
|
|
|
@@ -1750,7 +1754,13 @@ public class ReceivableServiceImpl extends ServiceImpl<ReceivableMapper, InsPlyI
|
|
|
InsPlyIncomeInvoice invoice = new InsPlyIncomeInvoice();
|
|
|
BeanUtils.copyProperties(invoicingVo, invoice);
|
|
|
invoice.setId(IdGenerate.nextId());
|
|
|
+
|
|
|
+// String incomeId = invoicingVo.getIncomeIds().get(0);
|
|
|
+
|
|
|
+ // 这里的公司应该是支公司的公司
|
|
|
invoice.setCompanyId(invoicingVo.getCompanyId());
|
|
|
+
|
|
|
+
|
|
|
invoice.setInvoiceType(invoicingVo.getInvoiceType());
|
|
|
// 开票类型 1、手续费 2、跟单费 3、驾意险手续费 4、驾意险跟单费 5、平台应收-车险 6、平台应收-非车险
|
|
|
if("1".equals(invoicingVo.getInvoiceType()) || "2".equals(invoicingVo.getInvoiceType())){
|