forked from golang/hotime
新版本
This commit is contained in:
parent
4ccf7d2f9d
commit
531ef23287
10
README.md
10
README.md
@ -3,4 +3,12 @@ golang web服务框架
|
|||||||
支持数据库db:mysql、sqlite3
|
支持数据库db:mysql、sqlite3
|
||||||
支持缓存cache:redis,memory,数据库
|
支持缓存cache:redis,memory,数据库
|
||||||
自带工具类,上下文,以及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
|
@ -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"
|
||||||
|
@ -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"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package admin
|
package admin
|
||||||
|
|
||||||
import (
|
import (
|
||||||
. "../../../hotime"
|
. "../../../iedc-go"
|
||||||
. "../../common"
|
. "../../common"
|
||||||
"../../dri/baidu"
|
"../../dri/baidu"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
@ -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
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
package app
|
package app
|
||||||
|
|
||||||
import (
|
import (
|
||||||
. "../../../hotime"
|
. "../../../iedc-go"
|
||||||
. "../../../hotime/common"
|
. "../../common"
|
||||||
//"strings"
|
//"strings"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -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"
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
package app
|
package app
|
||||||
|
|
||||||
import (
|
import (
|
||||||
. "../../../hotime"
|
. "../../../iedc-go"
|
||||||
. "../../../hotime/common"
|
. "../../common"
|
||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
"time"
|
||||||
//"strings"
|
//"strings"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package app
|
package app
|
||||||
|
|
||||||
import (
|
import (
|
||||||
. "../../../hotime"
|
. "../../../iedc-go"
|
||||||
"../../dri/ddsms"
|
"../../dri/ddsms"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package app
|
package app
|
||||||
|
|
||||||
import (
|
import (
|
||||||
. "../../../hotime"
|
. "../../../iedc-go"
|
||||||
. "../../common"
|
. "../../common"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -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"
|
||||||
|
@ -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"
|
||||||
|
BIN
example/iedc.exe
BIN
example/iedc.exe
Binary file not shown.
@ -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.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user