Merge remote-tracking branch 'origin/main'

This commit is contained in:
李正@用友 2025-05-09 09:12:51 +08:00
commit 6272269970
1 changed files with 13 additions and 11 deletions

View File

@ -71,11 +71,13 @@ public class InvoiceTaskPlugin implements IBackgroundWorkPlugin{
dao.executeUpdate(sscivmSql); dao.executeUpdate(sscivmSql);
Logger.error("---sscivmSqlExecute------"+sscivmSql); Logger.error("---sscivmSqlExecute------"+sscivmSql);
//修改发票关联关系单据编码 //修改发票关联关系单据编码
String sirSql = "UPDATE sscivm_invoice_relation set billno = '" + fphm +"' where pk_invoice = '"+ pk_invoice +"' and billid = '"+ csaleinvoiceid +"'"; // String sirSql = "UPDATE sscivm_invoice_relation set billno = '" + fphm +"' where pk_invoice = '"+ pk_invoice +"' and billid = '"+ csaleinvoiceid +"'";
dao.executeUpdate(sirSql); // dao.executeUpdate(sirSql);
Logger.error("---sirSqlExecute------"+sirSql); // Logger.error("---sirSqlExecute------"+sirSql);
//ERP销售发票回传根据销售发票id回写发票号和单据编号 //ERP销售发票回传根据销售发票id回写发票号和单据编号
String sSaleSql = "UPDATE so_saleinvoice set vdef20 = 'Y' , vdef13 = '" + fphm + "', vbillcode = '" + fphm +"' where csaleinvoiceid = '" + csaleinvoiceid + "'"; // String sSaleSql = "UPDATE so_saleinvoice set vdef20 = 'Y' , vdef13 = '" + fphm + "', vbillcode = '" + fphm +"' where csaleinvoiceid = '" + csaleinvoiceid + "'";
String sSaleSql = "UPDATE so_saleinvoice set vdef20 = 'Y' , vdef13 = '" + fphm + "' where csaleinvoiceid = '" + csaleinvoiceid + "'";
dao.executeUpdate(sSaleSql); dao.executeUpdate(sSaleSql);
Logger.error("---sSaleSqlExecute------"+sSaleSql); Logger.error("---sSaleSqlExecute------"+sSaleSql);
//根据销售发票id 回写下游应收单表头发票号 //根据销售发票id 回写下游应收单表头发票号
@ -94,13 +96,13 @@ public class InvoiceTaskPlugin implements IBackgroundWorkPlugin{
dao.executeUpdate(recItemSql); dao.executeUpdate(recItemSql);
Logger.error("---recItemSqlExecute------"+recItemSql); Logger.error("---recItemSqlExecute------"+recItemSql);
//查询销售发票下游单据如果有将下游单据表体字段来源单据号更新成新的发票号 //查询销售发票下游单据如果有将下游单据表体字段来源单据号更新成新的发票号
String saleOutSql = "UPDATE ic_saleout_b \n" + // String saleOutSql = "UPDATE ic_saleout_b \n" +
"SET vsourcebillcode = '"+ fphm +"' \n" + // "SET vsourcebillcode = '"+ fphm +"' \n" +
"WHERE\n" + // "WHERE\n" +
"csourcetype = '32' \n" + // "csourcetype = '32' \n" +
"AND csourcebillhid = '" + csaleinvoiceid +"'"; // "AND csourcebillhid = '" + csaleinvoiceid +"'";
dao.executeUpdate(saleOutSql); // dao.executeUpdate(saleOutSql);
Logger.error("---saleOutSqlExecute------"+saleOutSql); // Logger.error("---saleOutSqlExecute------"+saleOutSql);
//正常结束 //正常结束
TransactionFactory.getTMProxy().end(null); TransactionFactory.getTMProxy().end(null);
} }