From f4c9c486078f80aad9b9d28cbfc92bb4b78239b3 Mon Sep 17 00:00:00 2001 From: 沈泽 <211959439@qq.com> Date: 星期五, 27 八月 2021 16:54:30 +0800 Subject: [PATCH] 1 --- WebAPI/Controllers/ReportPlatFormController.cs | 20 ++++++++++---------- 1 files changed, 10 insertions(+), 10 deletions(-) diff --git a/WebAPI/Controllers/ReportPlatFormController.cs b/WebAPI/Controllers/ReportPlatFormController.cs index 5817b98..072aca9 100644 --- a/WebAPI/Controllers/ReportPlatFormController.cs +++ b/WebAPI/Controllers/ReportPlatFormController.cs @@ -70,17 +70,17 @@ try { - ds = oCN.RunProcReturn("select * from Gy_SourceRelationSet where HSourceID='" + HSourceID + "'", "Gy_SourceRelationSet"); - if (ds.Tables[0].Rows.Count > 0) - { + //ds = oCN.RunProcReturn("select * from Gy_SourceRelationSet where HSourceID='" + HSourceID + "'", "Gy_SourceRelationSet"); + //if (ds.Tables[0].Rows.Count > 0) + //{ - objJsonResult.code = "0"; - objJsonResult.count = 0; - objJsonResult.Message = "鐢熶骇璧勬簮宸插瓨鍦紒"; - objJsonResult.data = null; - return objJsonResult; - } - oCN.BeginTran(); + // objJsonResult.code = "0"; + // objJsonResult.count = 0; + // objJsonResult.Message = "鐢熶骇璧勬簮宸插瓨鍦紒"; + // objJsonResult.data = null; + // return objJsonResult; + //} + //oCN.BeginTran(); //鍐欏叆浜х嚎缁戝畾 string sql = string.Format(@"insert into Gy_SourceRelationSet (HSourceID,HUserName,HGroupID,HManagerID,HRemark,HCreateDate,HCreator,HNowFlag,HCheckManID) values('" + HSourceID + "','" + HUserName + "','" + HGroupID + "','" + HManagerID + "','" + HRemark + "','" + DateTime.Parse(HCreateDate).ToShortDateString() + "','" + HUserName + "','0','')"); -- Gitblit v1.9.1