|
@@ -33,7 +33,6 @@ func Init() {
|
|
|
fmt.Println(err)
|
|
|
}
|
|
|
}()
|
|
|
-
|
|
|
//2.专项债详情
|
|
|
rows, err := f.GetRows("0829")
|
|
|
if err != nil {
|
|
@@ -109,7 +108,7 @@ func main() {
|
|
|
defer util.Catch()
|
|
|
sess := MgoT.GetMgoConn()
|
|
|
defer MgoT.DestoryMongoConn(sess)
|
|
|
- it := sess.DB("mixdata").C("qyxy_std").Find(nil).Select(nil).Sort("_id").Iter()
|
|
|
+ it := sess.DB("mixdata").C("qyxy_std").Find(nil).Sort("_id").Iter()
|
|
|
|
|
|
fmt.Println("taskRun 开始")
|
|
|
count := 0
|
|
@@ -127,6 +126,9 @@ func main() {
|
|
|
if util.ObjToString(tmp["credit_no"]) == "" {
|
|
|
continue
|
|
|
}
|
|
|
+ if util.ObjToString(tmp["company_type"]) == "个体工商户" {
|
|
|
+ continue
|
|
|
+ }
|
|
|
|
|
|
ch <- true
|
|
|
wg.Add(1)
|
|
@@ -198,9 +200,8 @@ func getCreditLabel(appID, privateKeyPEM, certNo, sceneCode string) (createLabel
|
|
|
labelCategory := util.ObjToString((*label)["label_category"]) //一级分类
|
|
|
labelCode := util.ObjToString((*label)["label_code"])
|
|
|
labelDe := util.ObjToString((*label)["label_definition"])
|
|
|
-
|
|
|
newName, subtype := getLabel(labelName)
|
|
|
- log.Println("newName,subtype ", newName, subtype)
|
|
|
+ // log.Println("newName,subtype ", newName, subtype)
|
|
|
data := CreditLabel{}
|
|
|
data.ZhimaCode = labelCode
|
|
|
data.ZhimaDefinition = labelDe
|
|
@@ -229,7 +230,7 @@ func getLabel(labelName string) (newName, subtype string) {
|
|
|
// }
|
|
|
// }
|
|
|
newName = getNewName(labelName)
|
|
|
- log.Println("old ", labelName, " new ", newName)
|
|
|
+ // log.Println("old ", labelName, " new ", newName)
|
|
|
subtype = ""
|
|
|
if ZhimaMap[newName] != "" {
|
|
|
subtype = ZhimaMap[newName]
|