Pārlūkot izejas kodu

西昌缴费二期补开发票

master
坤 梁 pirms 11 mēnešiem
vecāks
revīzija
c9d7c44fa1
2 mainītis faili ar 39 papildinājumiem un 2 dzēšanām
  1. +38
    -1
      DigitalSchoolApi/Controllers/PayFeeResultTwoController.cs
  2. +1
    -1
      DigitalSchoolApi/Controllers/YKTTrabs.cs

+ 38
- 1
DigitalSchoolApi/Controllers/PayFeeResultTwoController.cs Parādīt failu

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

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


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



public void UnInvoiceHandle(bool isexcel) public void UnInvoiceHandle(bool isexcel)
{ {
try 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) public void GetResult(bool iflasttenminutes)
{ {


+ 1
- 1
DigitalSchoolApi/Controllers/YKTTrabs.cs Parādīt failu

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


Notiek ielāde…
Atcelt
Saglabāt