胡轶钦 6 vuotta sitten
vanhempi
commit
b9b54988dd
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1
    1
      service/bodycheck/bodycheck.go

+ 1
- 1
service/bodycheck/bodycheck.go Näytä tiedosto

@@ -156,7 +156,7 @@ func (s *BodyCheckServ) PostCheckResult(formVal map[string]interface{}) error {
156 156
 	beego.Error("________________presentation___________")
157 157
 	beego.Error(presentation)
158 158
 	beego.Error("_______________________________________")
159
-	if presentation == nil || presentation.Id != "" {
159
+	if presentation == nil || presentation.Id == "" {
160 160
 		// 新增
161 161
 		var preNew = model.TaPresentation{}
162 162
 		preNew.CheckId = checkinfo.Id