|
@@ -445,3 +445,38 @@ func confrimBiddingData(source_id string, info_id string) (bool, map[string]inte
|
|
}
|
|
}
|
|
return isvalid, info_data, source_data
|
|
return isvalid, info_data, source_data
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+func IsJingPinData(s_href string, i_href string) bool {
|
|
|
|
+ if strings.Contains(s_href, "www.jianyu360") ||
|
|
|
|
+ strings.Contains(i_href, "www.jianyu360") {
|
|
|
|
+ return true
|
|
|
|
+ }
|
|
|
|
+ return false
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func confirmJingPinIsRepeatData(v *Info, info *Info) bool {
|
|
|
|
+ //先验证标题
|
|
|
|
+ if (strings.Contains(info.title, v.title) || strings.Contains(v.title, info.title)) &&
|
|
|
|
+ v.title != "" && info.title != "" {
|
|
|
|
+ if !isTheSameDay(v.publishtime, info.publishtime) {
|
|
|
|
+ return false
|
|
|
|
+ }
|
|
|
|
+ if v.budget != info.budget && v.budget != 0 && info.budget != 0 {
|
|
|
|
+ return false
|
|
|
|
+ }
|
|
|
|
+ if isBidWinningAmount(v.bidamount, info.bidamount) && v.bidamount != 0 && info.bidamount != 0 {
|
|
|
|
+ return false
|
|
|
|
+ }
|
|
|
|
+ if deleteExtraSpace(v.winner) != deleteExtraSpace(info.winner) && v.winner != "" && info.winner != "" {
|
|
|
|
+ return false
|
|
|
|
+ }
|
|
|
|
+ if v.contractnumber != "" && info.contractnumber != "" && v.contractnumber != info.contractnumber {
|
|
|
|
+ return false
|
|
|
|
+ }
|
|
|
|
+ if v.projectcode != "" && info.projectcode != "" && v.projectcode != info.projectcode {
|
|
|
|
+ return false
|
|
|
|
+ }
|
|
|
|
+ return true
|
|
|
|
+ }
|
|
|
|
+ return false
|
|
|
|
+}
|