|
@@ -364,7 +364,6 @@ func (p *ParticipateBid) GetBidRecords(projectId string, page, pageSize int64) *
|
|
|
func (p ParticipateBid) BidRecordsFormat(data []map[string]interface{}) []*bxcore.ParticipateRecords {
|
|
|
records := []*bxcore.ParticipateRecords{}
|
|
|
switch p.PositionType {
|
|
|
-
|
|
|
case PositionTypeEnt:
|
|
|
// 用户id
|
|
|
// 拿到所有的用户id
|
|
@@ -377,7 +376,6 @@ func (p ParticipateBid) BidRecordsFormat(data []map[string]interface{}) []*bxcor
|
|
|
userIdArr = append(userIdArr, fmt.Sprint(userId))
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
// 根据id查询出姓名{id:name}
|
|
|
userIdMap = getUserIdName(userIdArr)
|
|
|
// 遍历数据 换成姓名
|
|
@@ -394,7 +392,6 @@ func (p ParticipateBid) BidRecordsFormat(data []map[string]interface{}) []*bxcor
|
|
|
RecordType: common.Int64All(data[i]["record_type"]),
|
|
|
}
|
|
|
records = append(records, &tmp)
|
|
|
-
|
|
|
}
|
|
|
case PositionTypePersonal:
|
|
|
// 遍历数据
|
|
@@ -405,7 +402,6 @@ func (p ParticipateBid) BidRecordsFormat(data []map[string]interface{}) []*bxcor
|
|
|
RecordType: common.Int64All(data[i]["record_type"]),
|
|
|
}
|
|
|
records = append(records, &tmp)
|
|
|
-
|
|
|
}
|
|
|
}
|
|
|
return records
|