|
@@ -159,7 +159,6 @@ func (p *ProjectTask) startProjectMerge(info *Info, tmp map[string]interface{})
|
|
compareProject.comStr = comStr
|
|
compareProject.comStr = comStr
|
|
compareProject.pjVal = pjVal
|
|
compareProject.pjVal = pjVal
|
|
compareProject.resVal = resVal
|
|
compareProject.resVal = resVal
|
|
- // fmt.Println(compareProject.comStr)
|
|
|
|
eqV := compareResult(resVal, pjVal, score2, comStr, compareBuyer, compareCity, compareTime, compareAgency, compareBudget, compareBidmount)
|
|
eqV := compareResult(resVal, pjVal, score2, comStr, compareBuyer, compareCity, compareTime, compareAgency, compareBudget, compareBidmount)
|
|
if eqV == 1 {
|
|
if eqV == 1 {
|
|
comRes1 = append(comRes1, compareProject)
|
|
comRes1 = append(comRes1, compareProject)
|
|
@@ -631,6 +630,40 @@ func (p *ProjectTask) NewProject(tmp map[string]interface{}, thisinfo *Info) (st
|
|
if tmp["bid_field"] != nil {
|
|
if tmp["bid_field"] != nil {
|
|
set["bid_field"] = tmp["bid_field"]
|
|
set["bid_field"] = tmp["bid_field"]
|
|
}
|
|
}
|
|
|
|
+ //2025.06.24新增字段
|
|
|
|
+ //项目服务周期
|
|
|
|
+ if thisinfo.Projectperiod != "" {
|
|
|
|
+ set["projectperiod"] = thisinfo.Projectperiod
|
|
|
|
+ }
|
|
|
|
+ //标讯信息三大类
|
|
|
|
+ if thisinfo.BasicClass != "" {
|
|
|
|
+ set["basicClass"] = thisinfo.BasicClass
|
|
|
|
+ }
|
|
|
|
+ //预计采购时间
|
|
|
|
+ if thisinfo.EstPurchaseTime > 0 {
|
|
|
|
+ set["est_purchase_time"] = thisinfo.EstPurchaseTime
|
|
|
|
+ }
|
|
|
|
+ //合同签订日期
|
|
|
|
+ if thisinfo.Signaturedate > 0 {
|
|
|
|
+ set["signaturedate"] = thisinfo.Signaturedate
|
|
|
|
+ }
|
|
|
|
+ //合同到期时间
|
|
|
|
+ if thisinfo.Expiredate > 0 {
|
|
|
|
+ set["expiredate"] = thisinfo.Expiredate
|
|
|
|
+ }
|
|
|
|
+ //招标文件获取截止时间
|
|
|
|
+ if thisinfo.Docendtime > 0 {
|
|
|
|
+ set["docendtime"] = thisinfo.Docendtime
|
|
|
|
+ }
|
|
|
|
+ //招标文件获取开始时间
|
|
|
|
+ if thisinfo.Docstarttime > 0 {
|
|
|
|
+ set["docstarttime"] = thisinfo.Docstarttime
|
|
|
|
+ }
|
|
|
|
+ //投标文件递交开始时间
|
|
|
|
+ if thisinfo.Bidstarttime > 0 {
|
|
|
|
+ set["bidstarttime"] = thisinfo.Bidstarttime
|
|
|
|
+ }
|
|
|
|
+
|
|
redis.PutCKV(RedisProject, fmt.Sprintf(P_KEY, thisinfo.Id), set)
|
|
redis.PutCKV(RedisProject, fmt.Sprintf(P_KEY, thisinfo.Id), set)
|
|
set["size"] = 1
|
|
set["size"] = 1
|
|
push := p.PushListInfo(tmp, thisinfo.Id)
|
|
push := p.PushListInfo(tmp, thisinfo.Id)
|
|
@@ -1087,6 +1120,47 @@ func (p *ProjectTask) UpdateProject(tmp map[string]interface{}, thisinfo *Info,
|
|
project.BidGuarantee = thisinfo.BidGuarantee
|
|
project.BidGuarantee = thisinfo.BidGuarantee
|
|
set["bid_guarantee"] = thisinfo.BidGuarantee
|
|
set["bid_guarantee"] = thisinfo.BidGuarantee
|
|
}
|
|
}
|
|
|
|
+ //2025.06.24新增字段
|
|
|
|
+ //项目服务周期
|
|
|
|
+ if thisinfo.Projectperiod != "" {
|
|
|
|
+ project.Projectperiod = thisinfo.Projectperiod
|
|
|
|
+ set["projectperiod"] = thisinfo.Projectperiod
|
|
|
|
+ }
|
|
|
|
+ //标讯信息三大类
|
|
|
|
+ if thisinfo.BasicClass != "" {
|
|
|
|
+ project.BasicClass = thisinfo.BasicClass
|
|
|
|
+ set["basicClass"] = thisinfo.BasicClass
|
|
|
|
+ }
|
|
|
|
+ //预计采购时间
|
|
|
|
+ if thisinfo.EstPurchaseTime > 0 {
|
|
|
|
+ project.EstPurchaseTime = thisinfo.EstPurchaseTime
|
|
|
|
+ set["est_purchase_time"] = thisinfo.EstPurchaseTime
|
|
|
|
+ }
|
|
|
|
+ //合同签订日期
|
|
|
|
+ if thisinfo.Signaturedate > 0 {
|
|
|
|
+ project.Signaturedate = thisinfo.Signaturedate
|
|
|
|
+ set["signaturedate"] = thisinfo.Signaturedate
|
|
|
|
+ }
|
|
|
|
+ //合同到期时间
|
|
|
|
+ if thisinfo.Expiredate > 0 {
|
|
|
|
+ project.Expiredate = thisinfo.Expiredate
|
|
|
|
+ set["expiredate"] = thisinfo.Expiredate
|
|
|
|
+ }
|
|
|
|
+ //招标文件获取截止时间
|
|
|
|
+ if thisinfo.Docendtime > 0 {
|
|
|
|
+ project.Docendtime = thisinfo.Docendtime
|
|
|
|
+ set["docendtime"] = thisinfo.Docendtime
|
|
|
|
+ }
|
|
|
|
+ //招标文件获取开始时间
|
|
|
|
+ if thisinfo.Docstarttime > 0 {
|
|
|
|
+ project.Docstarttime = thisinfo.Docstarttime
|
|
|
|
+ set["docstarttime"] = thisinfo.Docstarttime
|
|
|
|
+ }
|
|
|
|
+ //投标文件递交开始时间
|
|
|
|
+ if thisinfo.Bidstarttime > 0 {
|
|
|
|
+ project.Bidstarttime = thisinfo.Bidstarttime
|
|
|
|
+ set["bidstarttime"] = thisinfo.Bidstarttime
|
|
|
|
+ }
|
|
// 资质条件
|
|
// 资质条件
|
|
if len(thisinfo.Qualifies) > 0 {
|
|
if len(thisinfo.Qualifies) > 0 {
|
|
var str []string
|
|
var str []string
|