政企超链接开始集成

This commit is contained in:
hoteas
2022-03-04 00:06:04 +08:00
parent cac0214271
commit 6512f122f5
3 changed files with 46 additions and 27 deletions
+3 -3
View File
@@ -483,10 +483,10 @@ func decodeData2Sql(table [][]string, this *Context, orgId int) error {
companyData["industry_id"] = industry.GetCeilInt("id")
}
company := this.Db.Get("company", "id", Map{"sn": companyData["sn"]})
company := this.Db.Get("company", "id", Map{"name": companyData["name"]})
//没有则创建
if company == nil {
company = this.Db.Get("company", "id", Map{"name": companyData["name"]})
if company == nil && companyData.GetString("sn") != "暂无" {
company = this.Db.Get("company", "id", Map{"sn": companyData["sn"]})
}
//没有则创建