From e75e9ccd42b7c9e3209bd4456f67ffc1182efed7 Mon Sep 17 00:00:00 2001 From: dyy <807692433@qq.com> Date: Fri, 30 Aug 2024 15:26:28 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BF=AE=E6=94=B9=E3=80=91=E5=9C=A8?= =?UTF-8?q?=E7=BA=BF=E7=BC=B4=E8=B4=B9=EF=BC=9A=E7=BC=B4=E8=B4=B9=E8=AE=A2?= =?UTF-8?q?=E5=8D=95=E7=BC=96=E5=8F=B7=E7=94=9F=E6=88=90=E8=A7=84=E5=88=99?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../FinaChargeStuYearController.cs | 8 +++++-- .../FinaChargeStuOrderBLL.cs | 24 +++++++++++++++++++ .../FinaChargeStuOrderIBLL.cs | 7 ++++++ .../FinaChargeStuOrderService.cs | 24 +++++++++++++++++++ 4 files changed, 61 insertions(+), 2 deletions(-) diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Controllers/FinaChargeStuYearController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Controllers/FinaChargeStuYearController.cs index b6b077b94..1e2f9361b 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Controllers/FinaChargeStuYearController.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Controllers/FinaChargeStuYearController.cs @@ -263,6 +263,12 @@ namespace Learun.Application.Web.Areas.ReceiveSendFeeManagement.Controllers FinaChargeStuYearEntity entity = strEntity.ToObject(); List list = detailList.ToObject>(); var imgUrl = ""; + Random ran = new Random(); + string orderid = DateTime.Now.ToString("yyyyMMddHHmmssffffff") + ran.Next(0, 100000); + if (finaChargeStuOrderIbll.GetEntityByorderid(orderid) != null) + { + return Fail("请刷新页面重试!"); + } //访问学校财务服务器 string payresulturl = Config.GetValue("payresulturl"); @@ -283,11 +289,9 @@ namespace Learun.Application.Web.Areas.ReceiveSendFeeManagement.Controllers try { - Random ran = new Random(); string merchantid = "105000082201406";//商户号 string posid = "043724806";//商户柜台代码 string branchid = "510000000";//分行代码 - string orderid = DateTime.Now.ToString("yyyyMMddhhmmss") + ran.Next(0, 100000); string payment = entity.PayMoney.ToString(); string curcode = "01"; string txcode = "530550"; diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/ReceiveSendFeeManagement/FinaChargeStuOrder/FinaChargeStuOrderBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/ReceiveSendFeeManagement/FinaChargeStuOrder/FinaChargeStuOrderBLL.cs index 9552bd2e0..5280243bb 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/ReceiveSendFeeManagement/FinaChargeStuOrder/FinaChargeStuOrderBLL.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/ReceiveSendFeeManagement/FinaChargeStuOrder/FinaChargeStuOrderBLL.cs @@ -67,6 +67,30 @@ namespace Learun.Application.TwoDevelopment.ReceiveSendFeeManagement } } + /// + /// 获取FinaChargeStuOrder表实体数据 + /// + /// 主键 + /// + public FinaChargeStuOrderEntity GetEntityByorderid(string orderid) + { + try + { + return finaChargeStuOrderService.GetEntityByorderid(orderid); + } + catch (Exception ex) + { + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowBusinessException(ex); + } + } + } + #endregion #region 提交数据 diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/ReceiveSendFeeManagement/FinaChargeStuOrder/FinaChargeStuOrderIBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/ReceiveSendFeeManagement/FinaChargeStuOrder/FinaChargeStuOrderIBLL.cs index 2bf76e7da..e014c2c36 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/ReceiveSendFeeManagement/FinaChargeStuOrder/FinaChargeStuOrderIBLL.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/ReceiveSendFeeManagement/FinaChargeStuOrder/FinaChargeStuOrderIBLL.cs @@ -27,6 +27,13 @@ namespace Learun.Application.TwoDevelopment.ReceiveSendFeeManagement /// 主键 /// FinaChargeStuOrderEntity GetFinaChargeStuOrderEntity(string keyValue); + + /// + /// 获取FinaChargeStuOrder表实体数据 + /// + /// 主键 + /// + FinaChargeStuOrderEntity GetEntityByorderid(string orderid); #endregion #region 提交数据 diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/ReceiveSendFeeManagement/FinaChargeStuOrder/FinaChargeStuOrderService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/ReceiveSendFeeManagement/FinaChargeStuOrder/FinaChargeStuOrderService.cs index 033a71d91..4490e0b70 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/ReceiveSendFeeManagement/FinaChargeStuOrder/FinaChargeStuOrderService.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/ReceiveSendFeeManagement/FinaChargeStuOrder/FinaChargeStuOrderService.cs @@ -138,6 +138,30 @@ namespace Learun.Application.TwoDevelopment.ReceiveSendFeeManagement } } + /// + /// 获取FinaChargeStuOrder表实体数据 + /// + /// 主键 + /// + public FinaChargeStuOrderEntity GetEntityByorderid(string orderid) + { + try + { + return this.BaseRepository("CollegeMIS").FindEntity(x => x.orderid == orderid); + } + catch (Exception ex) + { + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowServiceException(ex); + } + } + } + #endregion #region 提交数据