管道基础大数据平台系统开发-【CS】-ExportMap
1
13693261870
2023-08-02 b7f287d301c3f004641d89c698bce0ba4cd6ebac
1
已修改3个文件
11 ■■■■ 文件已修改
ExportMap/cs/SGUtils.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
ExportMap/db/PubDBHelper.cs 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ExportMap/export.html 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ExportMap/cs/SGUtils.cs
@@ -209,7 +209,7 @@
            int pubid = PubDBHelper.GetPushlishId(meta.id);
            if (pubid > 0)
            {
                PubDBHelper.UpdatePublish(pubid, meta.name, args.userId, null);
                PubDBHelper.UpdatePublish(pubid, meta.name, args.userId, null, GetReleaseUrl(meta, meta.verid));
                return pubid;
            }
ExportMap/db/PubDBHelper.cs
@@ -109,9 +109,10 @@
        /// <summary>
        /// 更新发布数据
        /// </summary>
        public static int UpdatePublish(int pubid, string name, int userId, string geom)
        public static int UpdatePublish(int pubid, string name, int userId, string geom, string url = null)
        {
            string str = null == geom ? "" : string.Format(", geom={0}", geom);
            str += null == url ? "" : string.Format(", url='{0}'", url);
            string sql = string.Format("update lf.sys_publish set name=@name, update_user=@userId, update_time=now(){0} where id=@id", str);
            DbParameter dp1 = new NpgsqlParameter("@name", name);
ExportMap/export.html
@@ -98,9 +98,9 @@
      });
    }
    // 测试Fbx *
    // 测试Fbx
    function convert2() {
      var data = { token: token, ids: [1522], depcode: "000305", dircode: "0102", userId: 1 };
      var data = { token: token, ids: [8362], depcode: "000305", dircode: "0102", userId: 1 };
      ajax("Convert/ToTileset", "POST", JSON.stringify(data), null, null, function (rs) {
        alert("code = " + rs.code + ", msg = " + rs.msg + ", result = " + rs.result);
        console.log(rs);
@@ -118,7 +118,7 @@
    // 测试SG
    function toSG() {
      var data = { token: token, ids: [10516], depcode: "000305", dircode: "0102", userId: 1 }; // [1523, 1525]
      var data = { token: token, ids: [10516], depcode: "000305", dircode: "0102", userId: 1 };
      ajax("Convert/ToSG", "POST", JSON.stringify(data), null, null, function (rs) {
        alert("code = " + rs.code + ", msg = " + rs.msg + ", result = " + rs.result);
        console.log(rs);