...
|
...
|
@@ -3,6 +3,7 @@ package models |
|
|
import (
|
|
|
"encoding/json"
|
|
|
"fmt"
|
|
|
"strings"
|
|
|
"time"
|
|
|
|
|
|
"github.com/astaxie/beego/orm"
|
...
|
...
|
@@ -136,7 +137,8 @@ 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 {
|
|
|
reason := strings.TrimSpace(data[i].Reason)
|
|
|
if data[i].Answer == "否" && len(reason) > 0 {
|
|
|
data[i].Answer = fmt.Sprintf("否,理由:%s", data[i].Reason)
|
|
|
}
|
|
|
}
|
...
|
...
|
|