|
@@ -131,8 +131,6 @@ func (p *ParticipateBid) DetailEntFormat(existProjectMap map[string]string, isVa
|
|
formatData.ShowParticipate = true
|
|
formatData.ShowParticipate = true
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- formatData.CurrentTime = time.Now().Unix()
|
|
|
|
- formatData.BidEndTime = bidEndTime
|
|
|
|
persons := ""
|
|
persons := ""
|
|
for _, v := range existProjectMap { // 这是为了取参标人id信息 列表页是多条数据 详情页这里 map里面只会有一条数据
|
|
for _, v := range existProjectMap { // 这是为了取参标人id信息 列表页是多条数据 详情页这里 map里面只会有一条数据
|
|
persons = v
|
|
persons = v
|
|
@@ -146,6 +144,8 @@ func (p *ParticipateBid) DetailEntFormat(existProjectMap map[string]string, isVa
|
|
if !isValid {
|
|
if !isValid {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
+ formatData.CurrentTime = time.Now().Unix()
|
|
|
|
+ formatData.BidEndTime = bidEndTime
|
|
// 如果是管理员 显示 终止参标按钮、转给同事按钮
|
|
// 如果是管理员 显示 终止参标按钮、转给同事按钮
|
|
if p.EntRoleId == RoleEntManager || p.EntRoleId == RoleDepartManager {
|
|
if p.EntRoleId == RoleEntManager || p.EntRoleId == RoleDepartManager {
|
|
formatData.ShowStopParticipate = true
|
|
formatData.ShowStopParticipate = true
|
|
@@ -335,7 +335,7 @@ func (p *ParticipateBid) GetLastBidStatus(projectId string) (map[string]interfac
|
|
|
|
|
|
}
|
|
}
|
|
func (p ParticipateBid) ParticipateContentFormat(data map[string]interface{}) (rs bxcore.ParticipateContentData) {
|
|
func (p ParticipateBid) ParticipateContentFormat(data map[string]interface{}) (rs bxcore.ParticipateContentData) {
|
|
- if data == nil {
|
|
|
|
|
|
+ if len(data) == 0 {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
rs.BidType = common.Int64All(data["bidType"])
|
|
rs.BidType = common.Int64All(data["bidType"])
|