From c62aab5f09d8393619c6a0819e1bffdc2aa29085 Mon Sep 17 00:00:00 2001
From: black-goat-me <226547893@qq.com>
Date: 星期五, 19 五月 2023 09:29:08 +0800
Subject: [PATCH] 1

---
 WebAPI/Controllers/基础资料/基础资料/Gy_MaterTypeBillController.cs |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git "a/WebAPI/Controllers/\345\237\272\347\241\200\350\265\204\346\226\231/\345\237\272\347\241\200\350\265\204\346\226\231/Gy_MaterTypeBillController.cs" "b/WebAPI/Controllers/\345\237\272\347\241\200\350\265\204\346\226\231/\345\237\272\347\241\200\350\265\204\346\226\231/Gy_MaterTypeBillController.cs"
index fd72d9a..339ea43 100644
--- "a/WebAPI/Controllers/\345\237\272\347\241\200\350\265\204\346\226\231/\345\237\272\347\241\200\350\265\204\346\226\231/Gy_MaterTypeBillController.cs"
+++ "b/WebAPI/Controllers/\345\237\272\347\241\200\350\265\204\346\226\231/\345\237\272\347\241\200\350\265\204\346\226\231/Gy_MaterTypeBillController.cs"
@@ -477,11 +477,11 @@
 
                 foreach (DataRow row in ds.Tables[0].Rows)
                 {
-                    var strLen = row["hnumber"].ToString().Split('.');
+                    var strLen = row["hitemid"].ToString().Split('.');
                     if (strLen.Length == 1)
                     {
                         TreeModel tree = new TreeModel();
-                        tree.id = row["hnumber"].ToString();
+                        tree.id = row["hitemid"].ToString();
                         tree.title = row["hname"].ToString();
                         treeModels[0].children.Add(tree);
                     }
@@ -518,7 +518,7 @@
                     if (strLen.Length == num && dt.Rows[i]["hnumber"].ToString().Contains(tree[m].id + "."))
                     {
                         TreeModel tbjson = new TreeModel();
-                        tbjson.id = dt.Rows[i]["hnumber"].ToString();
+                        tbjson.id = dt.Rows[i]["hitemid"].ToString();
                         tbjson.title = dt.Rows[i]["hname"].ToString();
                         tree[m].children.Add(tbjson);
                     }

--
Gitblit v1.9.1