...
|
...
|
@@ -105,13 +105,14 @@ func buildChanceCheckResultData(checkResultData []models.ChanceCheckResult) (pro |
|
|
}
|
|
|
}
|
|
|
checkReusltSlice[i].CustomItemData = customItemsData
|
|
|
if checkReusltSlice[i].CheckPid == 0 {
|
|
|
checkReusltSlice[i].Total = fmt.Sprintf("是:%d 否:%d 不清楚:%d",
|
|
|
checkReusltSlice[i].AnswerYes, checkReusltSlice[i].AnswerNo, checkReusltSlice[i].AnswerAny)
|
|
|
}
|
|
|
|
|
|
if checkReusltSlice[i].CheckPid > 0 {
|
|
|
//子集归并到父级
|
|
|
pid := checkReusltSlice[i].CheckPid
|
|
|
checkReusltSlice[i].CheckItemTwo = checkReusltSlice[i].CheckItem
|
|
|
checkReusltSlice[i].CheckItem = checkResultMap[pid].CheckItem
|
|
|
checkResultMap[pid].Child = append(checkResultMap[pid].Child, checkReusltSlice[i])
|
|
|
}
|
|
|
}
|
...
|
...
|
|