ExportMap/Controllers/ConvertController.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
ExportMap/cs/SGUtils.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
ExportMap/cs/XYZUtils.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
ExportMap/Controllers/ConvertController.cs
@@ -25,6 +25,10 @@ } int count = ConvertUtils.Convert(args.ids); if (0 == count) { return ResponseMsg<int>.fail("失败"); } return ResponseMsg<int>.success("成功", count); } @@ -56,7 +60,7 @@ int count = XYZUtils.Generate(args, ref err); if (0 == count) { return ResponseMsg<int>.fail(null == err ? "生成失败" : err); return ResponseMsg<int>.fail(null == err ? "失败" : err); } return ResponseMsg<int>.success("成功", count); @@ -76,8 +80,16 @@ { try { if (null == args || null == args.ids || args.ids.Count == 0) { return ResponseMsg<int>.fail("请输入元数据ID"); } int count = 0; int count = SGUtils.Release(args); if (0 == count) { return ResponseMsg<int>.fail("失败"); } return ResponseMsg<int>.success("成功", count); } ExportMap/cs/SGUtils.cs
@@ -1,4 +1,5 @@ using System; using ExportMap.Models; using System; using System.Collections.Generic; using System.Configuration; using System.Linq; @@ -51,5 +52,17 @@ return ConfigurationManager.AppSettings["sgDB"]; } } /// <summary> /// 发布数据 /// </summary> /// <param name="args">XYZ参数</param> /// <returns>行数</returns> public static int Release(XYZArgs args) { return 0; } } } ExportMap/cs/XYZUtils.cs
@@ -80,7 +80,7 @@ string viewFile = Path.Combine(xyzPath, "view.html"); return File.Exists(viewFile) ? id : 0; return File.Exists(viewFile) ? 1 : 0; } /// <summary>