Browse Source

feat:增加映射文件

wangchuanjin 2 years ago
parent
commit
11fba19bd9
1 changed files with 2 additions and 2 deletions
  1. 2 2
      p/mapping.go

+ 2 - 2
p/mapping.go

@@ -19,7 +19,7 @@ type pushMapping struct {
 }
 
 func (p *pushMapping) Init(Mysql *mysql.Mysql) {
-	infotype := Mysql.SelectBySql("select id,type,name from infotype")
+	infotype := Mysql.SelectBySql("select id,type,name from base_service.infotype")
 	p.Toptype = map[string]int{}
 	p.Subtype = map[string]int{}
 	p.Buyerclass = map[string]int{}
@@ -55,7 +55,7 @@ func (p *pushMapping) Init(Mysql *mysql.Mysql) {
 	//
 	p.Area = map[string]int{}
 	p.City = map[string]int{}
-	province := Mysql.SelectBySql("select id,level,name from province")
+	province := Mysql.SelectBySql("select id,level,name from base_service.province")
 	if province != nil && len(*province) > 0 {
 		for _, v := range *province {
 			id := util.IntAll(v["id"])