Selaa lähdekoodia

西昌缴费二期补开发票

master
坤 梁 11 kuukautta sitten
vanhempi
commit
c9d7c44fa1
2 muutettua tiedostoa jossa 39 lisäystä ja 2 poistoa
  1. +38
    -1
      DigitalSchoolApi/Controllers/PayFeeResultTwoController.cs
  2. +1
    -1
      DigitalSchoolApi/Controllers/YKTTrabs.cs

+ 38
- 1
DigitalSchoolApi/Controllers/PayFeeResultTwoController.cs Näytä tiedosto

@@ -94,6 +94,18 @@ namespace DigitalSchoolApi.Controllers
BackgroundJob.Enqueue(() => UnInvoiceHandle(true));
return Ok();
}
/// <summary>
/// 根据年度学生缴费id触发开票任务
/// </summary>
/// <param name="FSYID"></param>
/// <returns></returns>
[HttpPost]
public IHttpActionResult SetUnInvoiceHandleByFSYID(string FSYID)
{

BackgroundJob.Enqueue(() => DoUnInvoiceHandleByFSYID(FSYID));
return Ok();
}

/// <summary>
/// 补开发票
@@ -106,7 +118,6 @@ namespace DigitalSchoolApi.Controllers
return Ok();
}


public void UnInvoiceHandle(bool isexcel)
{
try
@@ -140,6 +151,32 @@ namespace DigitalSchoolApi.Controllers
}
}
}
public void DoUnInvoiceHandleByFSYID(string FSYID)
{
try
{
using (IDbConnection conn = new SqlConnection(_sqlConnection))
{
List<FinaChargeStuOrderEntity> stuorderlist = null;
stuorderlist = conn.Query<FinaChargeStuOrderEntity>(@"select StuNo,YearNo,FSYId,'ExcelOffLine' as PayMode from FinaChargeStuOrder where Status=1 and fsyid='"+ FSYID + @"'
group by StuNo, YearNo, FSYId, PayMode").ToList();
foreach (var stuorderEntity in stuorderlist)
{
//开票
YKTTrabs.InvoiceEBillMethodTwo(stuorderEntity);
break;
}
}
}
catch (Exception e)
{
using (IDbConnection conncore = new SqlConnection(_coresqlConnection))
{
conncore.Execute(
"insert into LR_Base_Log(F_LogId,F_CategoryId,F_SourceObjectId,F_SourceContentJson,F_OperateTime) values(newid(),121,'piaoju','" + e.Message + "',getdate())");
}
}
}

public void GetResult(bool iflasttenminutes)
{


+ 1
- 1
DigitalSchoolApi/Controllers/YKTTrabs.cs Näytä tiedosto

@@ -1059,7 +1059,7 @@ namespace DigitalSchoolApi.Controllers
}
if (orderEntity.PayMode == "ExcelOffLine")//BHK:建行;THK:他行;ZFB:支付宝;CFT:微信
{
biParam.channel = "26";
biParam.channel = "11";
}
biParam.payerType = "1";
biParam.recer = "林智慧";


Ladataan…
Peruuta
Tallenna