...
|
...
|
@@ -118,6 +118,7 @@ type ChanceSelfCheckData struct { |
|
|
Answer string `json::"answer"`
|
|
|
Id int64 `json:"id"`
|
|
|
ParentId int64 `json:"parentId"`
|
|
|
Reason string `json:"reason"`
|
|
|
}
|
|
|
|
|
|
func (m *Chance) GetSelfCheckData() []ChanceSelfCheckData {
|
...
|
...
|
@@ -134,6 +135,11 @@ func (m *Chance) GetSelfCheckData() []ChanceSelfCheckData { |
|
|
}
|
|
|
} else {
|
|
|
json.Unmarshal([]byte(m.SelfChecks), &data)
|
|
|
for i := range data {
|
|
|
if data[i].Answer == "否" && len(data[i].Reason) > 0 {
|
|
|
data[i].Answer = fmt.Sprintf("否,理由:%s", data[i].Reason)
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return data
|
...
|
...
|
|