新版本

This commit is contained in:
hoteas 2022-09-27 09:22:49 +08:00
parent 4ccf7d2f9d
commit 531ef23287
29 changed files with 58 additions and 48 deletions

View File

@ -3,4 +3,12 @@ golang web服务框架
支持数据库dbmysql、sqlite3 支持数据库dbmysql、sqlite3
支持缓存cacheredismemory数据库 支持缓存cacheredismemory数据库
自带工具类上下文以及session等功能 自带工具类上下文以及session等功能
下载分析接口
http://192.168.6.27:8081/app/analyse/home_excel?org_id=4
使用方式直接后台上传
分析使用接口
http://127.0.0.1:8081/admin/test/analyse?org_id=4
整体分析接口
http://127.0.0.1:8081/admin/company_inout/total_analyse?org_id=4
行业分析接口
http://127.0.0.1:8081/admin/company_inout/industry_analyse?org_id=4

View File

@ -1,7 +1,7 @@
package admin package admin
import ( import (
. "../../../hotime" . "../../../iedc-go"
. "../../common" . "../../common"
"fmt" "fmt"
"github.com/chain-zhang/pinyin" "github.com/chain-zhang/pinyin"

View File

@ -1,7 +1,7 @@
package admin package admin
import ( import (
. "../../../hotime" . "../../../iedc-go"
. "../../common" . "../../common"
"fmt" "fmt"
"github.com/chain-zhang/pinyin" "github.com/chain-zhang/pinyin"

View File

@ -1,7 +1,7 @@
package admin package admin
import ( import (
. "../../../hotime" . "../../../iedc-go"
. "../../common" . "../../common"
"../../dri/baidu" "../../dri/baidu"
"fmt" "fmt"

View File

@ -1,7 +1,7 @@
package app package app
import ( import (
. "../../../hotime" . "../../../iedc-go"
. "../../common" . "../../common"
"fmt" "fmt"
"github.com/xuri/excelize" "github.com/xuri/excelize"
@ -64,6 +64,7 @@ var analyseCtr = Ctr{
filePath := "temp/home" + ObjToStr(orgId) + ".xlsx" filePath := "temp/home" + ObjToStr(orgId) + ".xlsx"
f, e := excelize.OpenFile(this.Config.GetString("tpt") + "/" + filePath) f, e := excelize.OpenFile(this.Config.GetString("tpt") + "/" + filePath)
//fmt.Println(e)
// 设置单元格的值 // 设置单元格的值
tagCompany1 := this.Db.Select("tag", "*", Map{"AND": Map{"type": 2, "org_id": orgId}, "ORDER": Slice{"`sort` DESC", "id ASC"}}) tagCompany1 := this.Db.Select("tag", "*", Map{"AND": Map{"type": 2, "org_id": orgId}, "ORDER": Slice{"`sort` DESC", "id ASC"}})
if e != nil { if e != nil {
@ -77,6 +78,7 @@ var analyseCtr = Ctr{
f.NewSheet("“3”项定性") f.NewSheet("“3”项定性")
f.NewSheet("“N”项特色") f.NewSheet("“N”项特色")
f.DeleteSheet("Sheet1") f.DeleteSheet("Sheet1")
}
//cs := append(NewCompanys{}, companys...) //cs := append(NewCompanys{}, companys...)
f.SetCellValue("企业分析", convertToTitle(1)+"1", "企业名") f.SetCellValue("企业分析", convertToTitle(1)+"1", "企业名")
@ -107,7 +109,7 @@ var analyseCtr = Ctr{
return return
} }
} //}
run := func(str string, data Map, f *excelize.File) { run := func(str string, data Map, f *excelize.File) {
var keys []string var keys []string

View File

@ -1,8 +1,8 @@
package app package app
import ( import (
. "../../../hotime" . "../../../iedc-go"
. "../../../hotime/common" . "../../common"
//"strings" //"strings"
) )

View File

@ -1,8 +1,8 @@
package app package app
import ( import (
. "../../../hotime" . "../../../iedc-go"
. "../../../hotime/common" . "../../common"
"../../dri/aliyun" "../../dri/aliyun"
"../../dri/tencent" "../../dri/tencent"
"fmt" "fmt"

View File

@ -1,8 +1,8 @@
package app package app
import ( import (
. "../../../hotime" . "../../../iedc-go"
. "../../../hotime/common" . "../../common"
"fmt" "fmt"
"time" "time"
//"strings" //"strings"

View File

@ -1,7 +1,7 @@
package app package app
import ( import (
. "../../../hotime" . "../../../iedc-go"
"../../dri/ddsms" "../../dri/ddsms"
) )

View File

@ -1,7 +1,7 @@
package app package app
import ( import (
. "../../../hotime" . "../../../iedc-go"
. "../../common" . "../../common"
) )

View File

@ -1,10 +1,10 @@
package app package app
import ( import (
. "../../../hotime" . "../../../iedc-go"
. "../../../hotime/common" . "../../common"
"../../../hotime/dri/download" "../../dri/download"
"../../../hotime/dri/tencent" "../../dri/tencent"
"encoding/base64" "encoding/base64"
"fmt" "fmt"
"io/ioutil" "io/ioutil"

View File

@ -1,9 +1,9 @@
package app package app
import ( import (
. "../../../hotime" . "../../../iedc-go"
. "../../../hotime/cache" . "../../../iedc-go/cache"
. "../../../hotime/common" . "../../../iedc-go/common"
"fmt" "fmt"
"github.com/silenceper/wechat" "github.com/silenceper/wechat"
"github.com/silenceper/wechat/cache" "github.com/silenceper/wechat/cache"

Binary file not shown.

View File

@ -1,7 +1,7 @@
package main package main
import ( import (
"../../hotime" "../../iedc-go"
"strings" "strings"
//"../dri/aliyun" //"../dri/aliyun"

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.