wangchuanjin 2 жил өмнө
parent
commit
58a0818601
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      mapping/bidcode.go

+ 1 - 1
mapping/bidcode.go

@@ -58,7 +58,7 @@ func (b *bidCodeMapping) Init(Mysql *mysql.Mysql) {
 	b.Subscopeclass = map[string]string{}
 	codeBidScope := Mysql.SelectBySql("SELECT b.code,CONCAT(a.name,'_',b.name) AS NAME FROM global_common_data.code_bidscope a INNER JOIN global_common_data.code_bidscope b ON (a.level=1 AND b.level=2 AND a.code=b.pcode)")
 	if codeBidScope != nil && len(*codeBidScope) > 0 {
-		for _, v := range *codeBuyerclass {
+		for _, v := range *codeBidScope {
 			code, _ := v["code"].(string)
 			name, _ := v["name"].(string)
 			b.Subscopeclass[name] = code