|
|
|
@ -37,6 +37,7 @@ import com.jianshui.invoice.domain.dto.*; |
|
|
|
|
import com.jianshui.invoice.domain.dto.api.*; |
|
|
|
|
import com.jianshui.invoice.domain.dto.api.elephant.*; |
|
|
|
|
import com.jianshui.invoice.domain.dto.api.elephant.addInvoice.Bdcxsxx; |
|
|
|
|
import com.jianshui.invoice.domain.dto.api.elephant.addInvoice.Bdczlxx; |
|
|
|
|
import com.jianshui.invoice.domain.dto.api.elephant.sd.GetRpaAuthStatusDTO; |
|
|
|
|
import com.jianshui.invoice.domain.dto.api.elephant.sd.HZQRDMXLIST; |
|
|
|
|
import com.jianshui.invoice.domain.dto.api.elephant.sd.RedDownload; |
|
|
|
@ -243,7 +244,19 @@ public class ElephantInvoiceApiV6ByInspurServiceImpl implements IInvoiceApiServi |
|
|
|
|
qdtxx.setJZFWXX(billInfo.getJzfwList().get(0));// 建筑服务信息
|
|
|
|
|
} |
|
|
|
|
if(billInfo.getBdczlxxList() != null && !billInfo.getBdczlxxList().isEmpty()){ |
|
|
|
|
qdtxx.setBDCZLXX(billInfo.getBdczlxxList().get(0));// 不动产租赁信息
|
|
|
|
|
if (billInfo.getBdczlxxList().size() == 1){ |
|
|
|
|
qdtxx.setBDCZLXX(billInfo.getBdczlxxList().get(0));// 不动产租赁信息
|
|
|
|
|
}else { |
|
|
|
|
List<Bdczlxx> bdczlxxList = billInfo.getBdczlxxList(); |
|
|
|
|
boolean isXhBlank = bdczlxxList.stream().anyMatch(bdczlxx -> StringUtils.isBlank(bdczlxx.getXH())); |
|
|
|
|
if (isXhBlank){ |
|
|
|
|
int xh = 1; |
|
|
|
|
for (Bdczlxx bdczlxx : bdczlxxList) { |
|
|
|
|
bdczlxx.setXH(String.valueOf(xh++)); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
qdtxx.setBDCZLXXLIST(bdczlxxList); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if(billInfo.getJDCXX() != null ){ |
|
|
|
@ -262,7 +275,7 @@ public class ElephantInvoiceApiV6ByInspurServiceImpl implements IInvoiceApiServi |
|
|
|
|
} else if (BeanUtil.isNotEmpty(qdtxx.getJZFWXX())) { |
|
|
|
|
// GenerateQdJzfwInvoice 建筑服务信息
|
|
|
|
|
url = ElephantConstantsV6.GENERATE_QD_JZFW_INVOICE; |
|
|
|
|
} else if (BeanUtil.isNotEmpty(qdtxx.getBDCZLXX())) { |
|
|
|
|
} else if (BeanUtil.isNotEmpty(qdtxx.getBDCZLXX())||BeanUtil.isNotEmpty(qdtxx.getBDCZLXXLIST())) { |
|
|
|
|
// GenerateQdBdczlInvoice 不动产租赁信息
|
|
|
|
|
url = ElephantConstantsV6.GENERATE_QD_BDXZL_INVOICE; |
|
|
|
|
}else if( BeanUtil.isNotEmpty(qdtxx.getJDCXX()) ){ |
|
|
|
|