|
@@ -790,19 +790,20 @@ func (p *ProjectTask) UpdateProject(tmp map[string]interface{}, thisinfo *Info,
|
|
|
} else if thisinfo.TopType == "结果" {
|
|
|
if thisinfo.SubType == "中标" || thisinfo.SubType == "成交" || thisinfo.SubType == "流标" || thisinfo.SubType == "废标" {
|
|
|
if pInfo.Jgtime > 0 {
|
|
|
- jg1 := int64(math.Abs(float64(pInfo.Jgtime - thisinfo.Publishtime)))
|
|
|
+ //jg1 := int64(math.Abs(float64(pInfo.Jgtime - thisinfo.Publishtime)))
|
|
|
+ // 4.12 直接更新jgtime
|
|
|
//公告状态和项目状态同样都是中标或者成交,
|
|
|
if (thisinfo.SubType == "中标" || thisinfo.SubType == "成交") && (pInfo.Bidstatus == "中标" || pInfo.Bidstatus == "成交") {
|
|
|
- if jg1 > p.jgTime {
|
|
|
+ //if jg1 > p.jgTime {
|
|
|
set["jgtime"] = tmp["publishtime"]
|
|
|
pInfo.Jgtime = thisinfo.Publishtime
|
|
|
- }
|
|
|
+ //}
|
|
|
//公告状态和项目状态同样是流标或者废标
|
|
|
} else if (thisinfo.SubType == "流标" || thisinfo.SubType == "废标") && (pInfo.Bidstatus == "流标" || pInfo.Bidstatus == "废标") {
|
|
|
- if jg1 > p.jgTime {
|
|
|
+ //if jg1 > p.jgTime {
|
|
|
set["jgtime"] = tmp["publishtime"]
|
|
|
pInfo.Jgtime = thisinfo.Publishtime
|
|
|
- }
|
|
|
+ //}
|
|
|
}
|
|
|
} else {
|
|
|
set["jgtime"] = tmp["publishtime"]
|
|
@@ -1535,3 +1536,7 @@ func (p *ProjectTask) GetBidTypeAndBidStatus(info *Info) (string, string) {
|
|
|
return typeStr, statusStr
|
|
|
|
|
|
}
|
|
|
+
|
|
|
+func ListSort(tmp map[string]interface{}) {
|
|
|
+
|
|
|
+}
|