ariesy 去掉手动增加的购方信息

release
yefei 2 years ago
parent 824afb9191
commit ea88ec9b4b
  1. 12
      dxhy-erp/src/main/java/com/dxhy/erp/controller/SDNYMainProcessController.java
  2. 36
      dxhy-erp/src/main/java/com/dxhy/erp/service/SNPushCheckRecordService.java

@ -508,12 +508,12 @@ public class SDNYMainProcessController extends AbstractController {
for (SNInvoice invoice : invoiceInfoList) { for (SNInvoice invoice : invoiceInfoList) {
String fplxdm = ""; String fplxdm = "";
String snFplx = ""; String snFplx = "";
if (invoice.getPurchaserTaxNo() == null || "".equals(invoice.getPurchaserTaxNo())){ // if (invoice.getPurchaserTaxNo() == null || "".equals(invoice.getPurchaserTaxNo())){
invoice.setPurchaserTaxNo(taxno); // invoice.setPurchaserTaxNo(taxno);
} // }
if (invoice.getPurchaserName() == null || "".equals(invoice.getPurchaserName())){ // if (invoice.getPurchaserName() == null || "".equals(invoice.getPurchaserName())){
invoice.setPurchaserName(taxname); // invoice.setPurchaserName(taxname);
} // }
result = snPushCheckRecordService.updateInvoicePoll(company, taxno, reimburse, invoice, fplxdm, imageId, compCode); result = snPushCheckRecordService.updateInvoicePoll(company, taxno, reimburse, invoice, fplxdm, imageId, compCode);
//价税分离判断 //价税分离判断

@ -106,14 +106,14 @@ public class SNPushCheckRecordService extends AbstractServiceAdapter {
public String pushInvoiceToRecordInvoice(SNInvoice snInvoice, String taxNo, String company,String imageId,String compCode) throws Exception { public String pushInvoiceToRecordInvoice(SNInvoice snInvoice, String taxNo, String company,String imageId,String compCode) throws Exception {
TDxInvoiceReimburse recordInvoice = new TDxInvoiceReimburse(); TDxInvoiceReimburse recordInvoice = new TDxInvoiceReimburse();
DynamicContextHolder.push(DbConstant.BASICS_READ); // DynamicContextHolder.push(DbConstant.BASICS_READ);
//
SysDeptEntity orgByCompCode = sysDeptDao.getOrgByCompCode(compCode); // SysDeptEntity orgByCompCode = sysDeptDao.getOrgByCompCode(compCode);
log.info("查询的组织信息为:{}",JSONObject.toJSONString(orgByCompCode)); // log.info("查询的组织信息为:{}",JSONObject.toJSONString(orgByCompCode));
recordInvoice.setGfTaxNo(orgByCompCode.getTaxno()); // recordInvoice.setGfTaxNo(orgByCompCode.getTaxno());
recordInvoice.setGfName(orgByCompCode.getTaxname()); // recordInvoice.setGfName(orgByCompCode.getTaxname());
recordInvoice.setGfAddressAndPhone(orgByCompCode.getAddress() + orgByCompCode.getPhone()); // recordInvoice.setGfAddressAndPhone(orgByCompCode.getAddress() + orgByCompCode.getPhone());
recordInvoice.setGfBankAndNo(orgByCompCode.getBank() + orgByCompCode.getAccount()); // recordInvoice.setGfBankAndNo(orgByCompCode.getBank() + orgByCompCode.getAccount());
QueryWrapper<BaseTDxTaxCurrent> currentWrapper = new QueryWrapper<>(); QueryWrapper<BaseTDxTaxCurrent> currentWrapper = new QueryWrapper<>();
currentWrapper.eq("taxno", taxNo); currentWrapper.eq("taxno", taxNo);
@ -613,16 +613,16 @@ public class SNPushCheckRecordService extends AbstractServiceAdapter {
log.info("价税分离失败:{}", invoiceResult.getMsg()); log.info("价税分离失败:{}", invoiceResult.getMsg());
return invoiceResult.getMsg(); return invoiceResult.getMsg();
} }
DynamicContextHolder.push(DbConstant.BASICS_READ); // DynamicContextHolder.push(DbConstant.BASICS_READ);
//
SysDeptEntity orgByCompCode = sysDeptDao.getOrgByCompCode(compCode); // SysDeptEntity orgByCompCode = sysDeptDao.getOrgByCompCode(compCode);
log.info("查询的组织信息为:{}",JSONObject.toJSONString(orgByCompCode)); // log.info("查询的组织信息为:{}",JSONObject.toJSONString(orgByCompCode));
if(orgByCompCode != null) { // if(orgByCompCode != null) {
reimburse.setGfTaxNo(orgByCompCode.getTaxno()); // reimburse.setGfTaxNo(orgByCompCode.getTaxno());
reimburse.setGfName(orgByCompCode.getTaxname()); // reimburse.setGfName(orgByCompCode.getTaxname());
reimburse.setGfAddressAndPhone(orgByCompCode.getAddress() + orgByCompCode.getPhone()); // reimburse.setGfAddressAndPhone(orgByCompCode.getAddress() + orgByCompCode.getPhone());
reimburse.setGfBankAndNo(orgByCompCode.getBank() + orgByCompCode.getAccount()); // reimburse.setGfBankAndNo(orgByCompCode.getBank() + orgByCompCode.getAccount());
} // }
reimburse = convertToReimburse(invoice, reimburse, fplxdm, company); reimburse = convertToReimburse(invoice, reimburse, fplxdm, company);

Loading…
Cancel
Save