...
|
...
|
@@ -421,7 +421,7 @@ func GetChanceDetail(chanceid int64, companyid int64) (ResponseChanceInfo, error |
|
|
log.Warn("获取获取记录失败")
|
|
|
}
|
|
|
returnData.FlowLog = flowlogs
|
|
|
returnData.SelfCheck = getChanceSelfChecks(chanceid)
|
|
|
returnData.SelfCheck = getChanceSelfChecks(chanceInfo)
|
|
|
return returnData, nil
|
|
|
}
|
|
|
|
...
|
...
|
@@ -444,8 +444,16 @@ func getAuditFlowLog(chanceid int64) ([]protocol.ChanceFlowLog, error) { |
|
|
return flowLogs, err
|
|
|
}
|
|
|
|
|
|
func getChanceSelfChecks(chanceId int64) []ChanceSelfCheckData {
|
|
|
func getChanceSelfChecks(chanceInfo *models.Chance) []ChanceSelfCheckData {
|
|
|
selfchecks := []ChanceSelfCheckData{}
|
|
|
mSelfChecks := chanceInfo.GetSelfCheckData()
|
|
|
for _, v := range mSelfChecks {
|
|
|
m := ChanceSelfCheckData{
|
|
|
Title: v.ChickItem,
|
|
|
Result: v.Answer,
|
|
|
}
|
|
|
selfchecks = append(selfchecks, m)
|
|
|
}
|
|
|
return selfchecks
|
|
|
}
|
|
|
|
...
|
...
|
|