|
|
@ -14,8 +14,10 @@ import com.dxhy.common.vo.UserInfo; |
|
|
|
import com.dxhy.erp.dao.AreaDao; |
|
|
|
import com.dxhy.erp.dao.AreaDao; |
|
|
|
import com.dxhy.erp.dao.BaseTDxRecordInvoiceDao; |
|
|
|
import com.dxhy.erp.dao.BaseTDxRecordInvoiceDao; |
|
|
|
import com.dxhy.erp.dao.BaseTDxTaxCurrentDao; |
|
|
|
import com.dxhy.erp.dao.BaseTDxTaxCurrentDao; |
|
|
|
|
|
|
|
import com.dxhy.erp.dao.SysDeptDao; |
|
|
|
import com.dxhy.erp.entity.BaseTDxRecordInvoice; |
|
|
|
import com.dxhy.erp.entity.BaseTDxRecordInvoice; |
|
|
|
import com.dxhy.erp.entity.BaseTDxTaxCurrent; |
|
|
|
import com.dxhy.erp.entity.BaseTDxTaxCurrent; |
|
|
|
|
|
|
|
import com.dxhy.erp.entity.SysDeptEntity; |
|
|
|
import com.dxhy.erp.entity.TDxInvoiceReimburse; |
|
|
|
import com.dxhy.erp.entity.TDxInvoiceReimburse; |
|
|
|
import com.dxhy.erp.entity.kfpt.ApiCheckInvoiceSingleRequest; |
|
|
|
import com.dxhy.erp.entity.kfpt.ApiCheckInvoiceSingleRequest; |
|
|
|
import com.dxhy.erp.entity.kfpt.ApiRequest; |
|
|
|
import com.dxhy.erp.entity.kfpt.ApiRequest; |
|
|
@ -91,6 +93,9 @@ public class SNPushCheckRecordService extends AbstractServiceAdapter { |
|
|
|
@Resource |
|
|
|
@Resource |
|
|
|
private TDxInvoiceReimburseService tDxInvoiceReimburseService; |
|
|
|
private TDxInvoiceReimburseService tDxInvoiceReimburseService; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Resource |
|
|
|
|
|
|
|
private SysDeptDao sysDeptDao; |
|
|
|
|
|
|
|
|
|
|
|
public String pushCheckResultToSAP(String requestParam) throws Exception { |
|
|
|
public String pushCheckResultToSAP(String requestParam) throws Exception { |
|
|
|
log.info("获取请求参数:{} , 请求地址:{}", requestParam, snYxUrl); |
|
|
|
log.info("获取请求参数:{} , 请求地址:{}", requestParam, snYxUrl); |
|
|
|
String post = HttpUtils.sendPo(snYxUrl, requestParam, userName, password); |
|
|
|
String post = HttpUtils.sendPo(snYxUrl, requestParam, userName, password); |
|
|
@ -577,10 +582,18 @@ public class SNPushCheckRecordService extends AbstractServiceAdapter { |
|
|
|
log.info("价税分离失败:{}", invoiceResult.getMsg()); |
|
|
|
log.info("价税分离失败:{}", invoiceResult.getMsg()); |
|
|
|
return invoiceResult.getMsg(); |
|
|
|
return invoiceResult.getMsg(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
DynamicContextHolder.push(DbConstant.BASICS_READ); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SysDeptEntity orgByCompCode = sysDeptDao.getOrgByCompCode(compCode); |
|
|
|
|
|
|
|
reimburse.setGfTaxNo(orgByCompCode.getTaxno()); |
|
|
|
|
|
|
|
reimburse.setGfName(orgByCompCode.getTaxname()); |
|
|
|
|
|
|
|
reimburse.setGfAddressAndPhone(orgByCompCode.getAddress() + orgByCompCode.getPhone()); |
|
|
|
|
|
|
|
reimburse.setGfBankAndNo(orgByCompCode.getBank() + orgByCompCode.getAccount()); |
|
|
|
|
|
|
|
|
|
|
|
reimburse = convertToReimburse(invoice, reimburse, fplxdm, company); |
|
|
|
reimburse = convertToReimburse(invoice, reimburse, fplxdm, company); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DynamicContextHolder.push("business" + DbConstant.BUSINESS_WRITE); |
|
|
|
DynamicContextHolder.push("business" + DbConstant.BUSINESS_WRITE); |
|
|
|
int insert = 0; |
|
|
|
int insert = 0; |
|
|
|
QueryWrapper wrapper = new QueryWrapper(); |
|
|
|
QueryWrapper wrapper = new QueryWrapper(); |
|
|
|