Przeglądaj źródła

新增空数据

zhoufan 4 lat temu
rodzic
commit
6819e64b8b

+ 35 - 0
代码/MadRunFabric.TestUserTypeApi/TestUserTypeApi/Controllers/TestController.cs

@@ -69,6 +69,17 @@ namespace TestUserTypeApi.Controllers
69 69
         [HttpGet("gethzxxs")]
70 70
         public async Task<IActionResult> Gethzxxs(int PageIndex, int PageSize, string stime, string etime, string deptname,string name ,string phonemodel)
71 71
         {
72
+            if (_configuration["isempty"].ToString() == "1")
73
+            {
74
+                var obj = new
75
+                {
76
+                    state = "success",
77
+                    message = "成功",
78
+                    rows = new List<PageData<V_CSM_ZHUYUAN>>() { },
79
+                };
80
+
81
+                return Success("成功", obj);
82
+            }
72 83
 
73 84
             if (stime != null && etime != null)
74 85
             {
@@ -6972,6 +6983,18 @@ namespace TestUserTypeApi.Controllers
6972 6983
         [HttpGet("getmzhzmassages")]
6973 6984
         public async Task<IActionResult> Getequipmentmanagements(int PageIndex, int PageSize, string stime, string etime,string hzname)
6974 6985
         {
6986
+            if (_configuration["isempty"].ToString() == "1")
6987
+            {
6988
+                var obj1 = new
6989
+                {
6990
+                    state = "success",
6991
+                    message = "成功",
6992
+                    rows = new List<PageData<V_MZ_FIRSTPAGE_NEW>>() { },
6993
+                };
6994
+
6995
+                return Success("成功", obj1);
6996
+            }
6997
+
6975 6998
             if (!string.IsNullOrEmpty(stime) && !string.IsNullOrEmpty(etime))
6976 6999
             {
6977 7000
                 stime = stime.Trim() + " 00:00:00";
@@ -7044,6 +7067,18 @@ namespace TestUserTypeApi.Controllers
7044 7067
         [HttpGet("getjzhzmassages")]
7045 7068
         public async Task<IActionResult> Getjzhzmassages(int PageIndex, int PageSize, string stime, string etime, string hzname)
7046 7069
         {
7070
+            if (_configuration["isempty"].ToString() == "1")
7071
+            {
7072
+                var obj1 = new
7073
+                {
7074
+                    state = "success",
7075
+                    message = "成功",
7076
+                    rows = new List<PageData<V_MZ_FIRSTPAGE_NEW>>() { },
7077
+                };
7078
+
7079
+                return Success("成功", obj1);
7080
+            }
7081
+
7047 7082
             if (!string.IsNullOrEmpty(stime) && !string.IsNullOrEmpty(etime))
7048 7083
             {
7049 7084
                 stime = stime.Trim() + " 00:00:00";

+ 1 - 0
代码/MadRunFabric.TestUserTypeApi/TestUserTypeApi/appsettings.Development_Base.json

@@ -32,6 +32,7 @@
32 32
     "centers": "您好 !感谢您对我们医院的信任与支持,请对本次住院的服务质量给予评价1 满意;2表扬;3 不满意,回复数字即可。谢谢!顺祝生活愉快【郑州市第一人民医院】",
33 33
     "mzcenters": "您好 !感谢您对我们医院的信任与支持请对我们的服质量给予评价1 满意;2表扬;3 不满意,回复数字即可。谢谢!顺祝生活愉快【郑州市第一人民医院】"
34 34
   },
35
+  "isempty": "1",
35 36
   "ConnectionStrings": {
36 37
     "Sqlserverconnection": "server=172.16.2.162;uid=zl;pwd=zl@2021;database=HERP331;",
37 38
     //"OracleConnection": "Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.8.3)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=orcl)));User Id=scott;Password=800100;Pooling=true;Min Pool Size=1;Max Pool Size=255;",