浏览代码

feat:投标状态更新及时间

wangshan 1 年之前
父节点
当前提交
95b9de7dec
共有 1 个文件被更改,包括 6 次插入1 次删除
  1. 6 1
      jyBXCore/rpc/model/mysql/participateStage.go

+ 6 - 1
jyBXCore/rpc/model/mysql/participateStage.go

@@ -42,7 +42,6 @@ func (p *ParStage) UpdateStage() {
 	} else {
 		recordsContentData := IC.BaseMysql.SelectBySql(`SELECT * FROM  participate_bid_records WHERE  position_id =? and project_id =?  order by  create_date `, p.PositionId, p.ProjectId)
 		if recordsContentData != nil && len(*recordsContentData) > 0 {
-
 			for _, rv := range *recordsContentData {
 				var (
 					recordContent = gconv.String(rv["record_content"])
@@ -74,6 +73,12 @@ func (p *ParStage) UpdateStage() {
 								}
 							}
 						}
+						if bidType := gconv.Map(afterM["bidType"]); bidType != nil {
+							values := gconv.String(bidType["value"])
+							if values != "" {
+								recordsMap[values] = createDate
+							}
+						}
 					}
 				}
 				if p.Stage == "终止参标" {