|
@@ -122,13 +122,13 @@ func SyncFromGuangzhouContract() (err error) {
|
|
|
obj := new(data_manage.BaseFromTradeGuangzhouIndex)
|
|
|
|
|
|
for _, item := range respObj.Data {
|
|
|
- if _, ok := existContractMap[item.BaseFromTradeGuangzhouContractId]; !ok {
|
|
|
- err = obj.AddBaseFromTradeGuangzhouContract(item)
|
|
|
- if err != nil {
|
|
|
- fmt.Println("AddBaseFromTradeGuangzhouContract error:", err)
|
|
|
- }
|
|
|
- fmt.Println("AddBaseFromTradeGuangzhouContract new indexID:")
|
|
|
+ //if _, ok := existContractMap[item.BaseFromTradeGuangzhouContractId]; !ok {
|
|
|
+ err = obj.AddBaseFromTradeGuangzhouContract(item)
|
|
|
+ if err != nil {
|
|
|
+ fmt.Println("AddBaseFromTradeGuangzhouContract error:", err)
|
|
|
}
|
|
|
+ fmt.Println("AddBaseFromTradeGuangzhouContract new indexID:")
|
|
|
+ //}
|
|
|
}
|
|
|
return err
|
|
|
}
|