|
@@ -32,7 +32,7 @@ func ChooseCheckDataAI(tmp map[string]interface{}, update_info *map[string]inter
|
|
(*update_info)["ext_ai_record"] = ext_ai_record
|
|
(*update_info)["ext_ai_record"] = ext_ai_record
|
|
|
|
|
|
//跨分类是否删除结果类字段
|
|
//跨分类是否删除结果类字段
|
|
- if s_subtype == "单一" || s_subtype == "中标" || s_subtype == "成交" || s_subtype == "合同" {
|
|
|
|
|
|
+ if s_toptype == "结果" || s_toptype == "其它" || s_subtype == "单一" {
|
|
|
|
|
|
} else {
|
|
} else {
|
|
for k, _ := range Unset_Check {
|
|
for k, _ := range Unset_Check {
|
|
@@ -118,7 +118,7 @@ func ChooseTheBestCoreField(ai_zhipu map[string]interface{}, s_toptype string, s
|
|
(*ext_ai_record)["district"] = tmp["district"]
|
|
(*ext_ai_record)["district"] = tmp["district"]
|
|
}
|
|
}
|
|
//先用外围字段替换
|
|
//先用外围字段替换
|
|
- if s_subtype == "中标" || s_subtype == "成交" || s_subtype == "合同" || s_subtype == "单一" {
|
|
|
|
|
|
+ if s_toptype == "结果" || s_toptype == "其它" || s_subtype == "单一" {
|
|
if s_bidamount := qu.Float64All(ai_zhipu["s_bidamount"]); s_bidamount > 0.0 && s_bidamount < 1000000000.0 {
|
|
if s_bidamount := qu.Float64All(ai_zhipu["s_bidamount"]); s_bidamount > 0.0 && s_bidamount < 1000000000.0 {
|
|
(*update_info)["bidamount"] = s_bidamount
|
|
(*update_info)["bidamount"] = s_bidamount
|
|
(*ext_ai_record)["bidamount"] = tmp["bidamount"]
|
|
(*ext_ai_record)["bidamount"] = tmp["bidamount"]
|
|
@@ -183,7 +183,7 @@ func ChooseTheBestPackageField(ai_zhipu map[string]interface{}, s_toptype string
|
|
(*update_info)["budget"] = p_budget
|
|
(*update_info)["budget"] = p_budget
|
|
(*ext_ai_record)["budget"] = tmp["budget"]
|
|
(*ext_ai_record)["budget"] = tmp["budget"]
|
|
}
|
|
}
|
|
- if s_subtype == "单一" || s_subtype == "中标" || s_subtype == "成交" || s_subtype == "合同" {
|
|
|
|
|
|
+ if s_toptype == "结果" || s_toptype == "其它" || s_subtype == "单一" {
|
|
if p_winner := qu.ObjToString((*s_pkg)["s_winner"]); p_winner != "" {
|
|
if p_winner := qu.ObjToString((*s_pkg)["s_winner"]); p_winner != "" {
|
|
(*update_info)["s_winner"] = p_winner
|
|
(*update_info)["s_winner"] = p_winner
|
|
(*update_info)["winner"] = p_winner
|
|
(*update_info)["winner"] = p_winner
|
|
@@ -208,7 +208,7 @@ func ChooseTheBestPackageField(ai_zhipu map[string]interface{}, s_toptype string
|
|
(*update_info)["budget"] = p_budget
|
|
(*update_info)["budget"] = p_budget
|
|
(*ext_ai_record)["budget"] = tmp["budget"]
|
|
(*ext_ai_record)["budget"] = tmp["budget"]
|
|
}
|
|
}
|
|
- if s_subtype == "单一" || s_subtype == "中标" || s_subtype == "成交" || s_subtype == "合同" {
|
|
|
|
|
|
+ if s_toptype == "结果" || s_toptype == "其它" || s_subtype == "单一" {
|
|
if p_winner := qu.ObjToString((*s_pkg)["s_winner"]); p_winner != "" && (*update_info)["s_winner"] == nil {
|
|
if p_winner := qu.ObjToString((*s_pkg)["s_winner"]); p_winner != "" && (*update_info)["s_winner"] == nil {
|
|
(*update_info)["s_winner"] = p_winner
|
|
(*update_info)["s_winner"] = p_winner
|
|
(*update_info)["winner"] = p_winner
|
|
(*update_info)["winner"] = p_winner
|
|
@@ -272,7 +272,7 @@ func ChooseTheBestUnitField(ai_zhipu map[string]interface{}, s_toptype string, s
|
|
(*update_info)["buyer"] = ""
|
|
(*update_info)["buyer"] = ""
|
|
(*ext_ai_record)["buyer"] = tmp["buyer"]
|
|
(*ext_ai_record)["buyer"] = tmp["buyer"]
|
|
} else {
|
|
} else {
|
|
- if s_subtype == "单一" || s_subtype == "中标" || s_subtype == "成交" || s_subtype == "合同" {
|
|
|
|
|
|
+ if s_toptype == "结果" || s_toptype == "其它" || s_subtype == "单一" {
|
|
(*update_info)["s_winner"] = ""
|
|
(*update_info)["s_winner"] = ""
|
|
(*update_info)["winner"] = ""
|
|
(*update_info)["winner"] = ""
|
|
(*ext_ai_record)["s_winner"] = tmp["s_winner"]
|
|
(*ext_ai_record)["s_winner"] = tmp["s_winner"]
|
|
@@ -290,9 +290,16 @@ func ChooseTheBestUnitField(ai_zhipu map[string]interface{}, s_toptype string, s
|
|
|
|
|
|
// 选择其它字段
|
|
// 选择其它字段
|
|
func ChooseTheBestOtherField(ai_zhipu map[string]interface{}, tmp map[string]interface{}, update_info *map[string]interface{}, ext_ai_record *map[string]interface{}) {
|
|
func ChooseTheBestOtherField(ai_zhipu map[string]interface{}, tmp map[string]interface{}, update_info *map[string]interface{}, ext_ai_record *map[string]interface{}) {
|
|
- if purchasinglist := ai_zhipu["purchasinglist"]; purchasinglist != nil {
|
|
|
|
- (*update_info)["purchasinglist"] = purchasinglist
|
|
|
|
- (*ext_ai_record)["purchasinglist"] = tmp["purchasinglist"]
|
|
|
|
|
|
+ if s_purchasinglist := qu.ObjToMap(ai_zhipu["s_purchasinglist"]); s_purchasinglist != nil {
|
|
|
|
+ if purchasinglist := IsMarkInterfaceMap((*s_purchasinglist)["purchasinglist"]); len(purchasinglist) > 0 {
|
|
|
|
+ (*update_info)["purchasinglist"] = purchasinglist
|
|
|
|
+ }
|
|
|
|
+ if purchasinglist_label := qu.ObjToMap((*s_purchasinglist)["purchasinglist_label"]); purchasinglist_label != nil {
|
|
|
|
+ (*update_info)["purchasinglist_label"] = purchasinglist_label
|
|
|
|
+ }
|
|
|
|
+ if jycodes := qu.ObjToString((*s_purchasinglist)["jycodes"]); jycodes != "" {
|
|
|
|
+ (*update_info)["jycodes"] = jycodes
|
|
|
|
+ }
|
|
}
|
|
}
|
|
//新增字段
|
|
//新增字段
|
|
if biddingcode := ai_zhipu["s_biddingcode"]; biddingcode != nil {
|
|
if biddingcode := ai_zhipu["s_biddingcode"]; biddingcode != nil {
|
|
@@ -411,7 +418,7 @@ func staffInfo(pkg map[string]interface{}) bool {
|
|
|
|
|
|
// 核对ai分包
|
|
// 核对ai分包
|
|
func staffAiPackageInfo(com_package []map[string]interface{}, s_toptype string, s_subtype string) []map[string]interface{} {
|
|
func staffAiPackageInfo(com_package []map[string]interface{}, s_toptype string, s_subtype string) []map[string]interface{} {
|
|
- if s_subtype == "单一" || s_subtype == "中标" || s_subtype == "成交" || s_subtype == "合同" {
|
|
|
|
|
|
+ if s_toptype == "结果" || s_toptype == "其它" || s_subtype == "单一" {
|
|
return com_package
|
|
return com_package
|
|
}
|
|
}
|
|
new_com_package := []map[string]interface{}{}
|
|
new_com_package := []map[string]interface{}{}
|