From 6ef6bdc559c6297b701715a4c92225ceac3a6e8d Mon Sep 17 00:00:00 2001 From: liangkun Date: Sun, 27 Aug 2023 11:10:30 +0800 Subject: [PATCH] =?UTF-8?q?fzp=20=E5=BC=80=E7=A5=A8=E9=80=BB=E8=BE=91?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=E7=BC=B4=E5=85=A8=E5=90=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DigitalSchoolApi/Controllers/PayFeeResultTwoController.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/DigitalSchoolApi/Controllers/PayFeeResultTwoController.cs b/DigitalSchoolApi/Controllers/PayFeeResultTwoController.cs index 13ff4c0..fe11c5a 100644 --- a/DigitalSchoolApi/Controllers/PayFeeResultTwoController.cs +++ b/DigitalSchoolApi/Controllers/PayFeeResultTwoController.cs @@ -212,8 +212,12 @@ group by a.FSYear,b.StuNo ) aa left join "'0','" + newitem.FSBlance + "',getdate(),'1')"); } } - //开票 - Task.Run(() => YKTTrabs.InvoiceEBillMethodTwo(Orderid)); + int PayFeeStatus = Convert.ToInt32(conn.ExecuteScalar("select PayFeeStatus from FinaChargeStuYear where StuNo='"+item.StuNo+"' and FSYear='"+item.YearNo+"'")); + if (PayFeeStatus==1) + { + //开票 + Task.Run(() => YKTTrabs.InvoiceEBillMethodTwo(Orderid)); + } using (IDbConnection conncore = new SqlConnection(_coresqlConnection)) { conncore.Execute(