|
@@ -302,65 +302,67 @@ func ChooseTheBestOtherField(ai_zhipu map[string]interface{}, tmp map[string]int
|
|
|
}
|
|
|
}
|
|
|
//新增字段
|
|
|
- if biddingcode := ai_zhipu["s_biddingcode"]; biddingcode != nil {
|
|
|
+ if biddingcode := qu.ObjToString(ai_zhipu["s_biddingcode"]); biddingcode != "" {
|
|
|
(*update_info)["biddingcode"] = biddingcode
|
|
|
}
|
|
|
- if packagecode := ai_zhipu["s_packagecode"]; packagecode != nil {
|
|
|
+ if packagecode := qu.ObjToString(ai_zhipu["s_packagecode"]); packagecode != "" {
|
|
|
(*update_info)["packagecode"] = packagecode
|
|
|
}
|
|
|
|
|
|
//替换字段
|
|
|
- if contractcode := ai_zhipu["s_contractcode"]; contractcode != nil {
|
|
|
+ if contractcode := qu.ObjToString(ai_zhipu["s_contractcode"]); contractcode != "" {
|
|
|
(*update_info)["contractcode"] = contractcode
|
|
|
(*ext_ai_record)["contractcode"] = tmp["contractcode"]
|
|
|
}
|
|
|
- if bidopenaddress := ai_zhipu["s_bidopenaddress"]; bidopenaddress != nil {
|
|
|
+ if bidopenaddress := qu.ObjToString(ai_zhipu["s_bidopenaddress"]); bidopenaddress != "" {
|
|
|
(*update_info)["bidopenaddress"] = bidopenaddress
|
|
|
(*ext_ai_record)["bidopenaddress"] = tmp["bidopenaddress"]
|
|
|
}
|
|
|
- if biddiscount := ai_zhipu["s_biddiscount"]; biddiscount != nil {
|
|
|
+ //折扣
|
|
|
+ if biddiscount := qu.Float64All(ai_zhipu["s_biddiscount"]); biddiscount > 0.0 {
|
|
|
(*update_info)["biddiscount"] = biddiscount
|
|
|
(*ext_ai_record)["biddiscount"] = tmp["biddiscount"]
|
|
|
}
|
|
|
- if bidopentime := ai_zhipu["s_bidopentime"]; bidopentime != nil {
|
|
|
+ //时间戳
|
|
|
+ if bidopentime := qu.Int64All(ai_zhipu["s_bidopentime"]); bidopentime > 0 {
|
|
|
(*update_info)["bidopentime"] = bidopentime
|
|
|
(*ext_ai_record)["bidopentime"] = tmp["bidopentime"]
|
|
|
}
|
|
|
- if bidendtime := ai_zhipu["s_bidendtime"]; bidendtime != nil {
|
|
|
+ if bidendtime := qu.Int64All(ai_zhipu["s_bidendtime"]); bidendtime > 0 {
|
|
|
(*update_info)["bidendtime"] = bidendtime
|
|
|
(*ext_ai_record)["bidendtime"] = tmp["bidendtime"]
|
|
|
}
|
|
|
- if docstarttime := ai_zhipu["s_docstarttime"]; docstarttime != nil {
|
|
|
+ if docstarttime := qu.Int64All(ai_zhipu["s_docstarttime"]); docstarttime > 0 {
|
|
|
(*update_info)["docstarttime"] = docstarttime
|
|
|
(*ext_ai_record)["docstarttime"] = tmp["docstarttime"]
|
|
|
}
|
|
|
- if docendtime := ai_zhipu["s_docendtime"]; docendtime != nil {
|
|
|
+ if docendtime := qu.Int64All(ai_zhipu["s_docendtime"]); docendtime > 0 {
|
|
|
(*update_info)["docendtime"] = docendtime
|
|
|
(*ext_ai_record)["docendtime"] = tmp["docendtime"]
|
|
|
}
|
|
|
|
|
|
//联系方式
|
|
|
- if buyerperson := ai_zhipu["s_buyerperson"]; buyerperson != nil {
|
|
|
+ if buyerperson := qu.ObjToString(ai_zhipu["s_buyerperson"]); buyerperson != "" {
|
|
|
(*update_info)["buyerperson"] = buyerperson
|
|
|
(*ext_ai_record)["buyerperson"] = tmp["buyerperson"]
|
|
|
}
|
|
|
- if buyertel := ai_zhipu["s_buyertel"]; buyertel != nil {
|
|
|
+ if buyertel := qu.ObjToString(ai_zhipu["s_buyertel"]); buyertel != "" {
|
|
|
(*update_info)["buyertel"] = buyertel
|
|
|
(*ext_ai_record)["buyertel"] = tmp["buyertel"]
|
|
|
}
|
|
|
- if agencyperson := ai_zhipu["s_agencyperson"]; agencyperson != nil {
|
|
|
+ if agencyperson := qu.ObjToString(ai_zhipu["s_agencyperson"]); agencyperson != "" {
|
|
|
(*update_info)["agencyperson"] = agencyperson
|
|
|
(*ext_ai_record)["agencyperson"] = tmp["agencyperson"]
|
|
|
}
|
|
|
- if agencytel := ai_zhipu["s_agencytel"]; agencytel != nil {
|
|
|
+ if agencytel := qu.ObjToString(ai_zhipu["s_agencytel"]); agencytel != "" {
|
|
|
(*update_info)["agencytel"] = agencytel
|
|
|
(*ext_ai_record)["agencytel"] = tmp["agencytel"]
|
|
|
}
|
|
|
- if winnerperson := ai_zhipu["s_winnerperson"]; winnerperson != nil {
|
|
|
+ if winnerperson := qu.ObjToString(ai_zhipu["s_winnerperson"]); winnerperson != "" {
|
|
|
(*update_info)["winnerperson"] = winnerperson
|
|
|
(*ext_ai_record)["winnerperson"] = tmp["winnerperson"]
|
|
|
}
|
|
|
- if winnertel := ai_zhipu["s_winnertel"]; winnertel != nil {
|
|
|
+ if winnertel := qu.ObjToString(ai_zhipu["s_winnertel"]); winnertel != "" {
|
|
|
(*update_info)["winnertel"] = winnertel
|
|
|
(*ext_ai_record)["winnertel"] = tmp["winnertel"]
|
|
|
}
|