From ab9c06d17549c7b95d07f36f1f1c2872210378a2 Mon Sep 17 00:00:00 2001 From: YL <YL@LAPTOP-SE03PLUR> Date: 星期一, 07 六月 2021 17:38:06 +0800 Subject: [PATCH] nothing --- WebAPI/Controllers/BaseSet/Gy_MaintenanceModeController.cs | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/WebAPI/Controllers/BaseSet/Gy_MaintenanceModeController.cs b/WebAPI/Controllers/BaseSet/Gy_MaintenanceModeController.cs index b0bfb6c..62b1c50 100644 --- a/WebAPI/Controllers/BaseSet/Gy_MaintenanceModeController.cs +++ b/WebAPI/Controllers/BaseSet/Gy_MaintenanceModeController.cs @@ -81,7 +81,7 @@ try { - ds = oCN.RunProcReturn("select * from h_v_IF_RepairTypeList where HitemID=" + HInterID, "h_v_IF_RepairTypeList"); + ds = oCN.RunProcReturn(string.Format(@"WITH a AS (SELECT * FROM dbo.h_v_IF_RepairTypeList WHERE HitemID="+ HInterID + " UNION ALL SELECT s.* FROM dbo.h_v_IF_RepairTypeList AS s,a WHERE s.parentid=a.HitemID) SELECT * FROM a"), "h_v_IF_RepairTypeList"); if (ds == null || ds.Tables[0].Rows.Count == 0) { objJsonResult.code = "0"; -- Gitblit v1.9.1