Explorar el Código

getcasebyid缺少返回值

zjxpcyc hace 6 años
padre
commit
1d10d519f7
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      models/sys.go

+ 1
- 1
models/sys.go Ver fichero

@@ -276,5 +276,5 @@ func GetCaseByID(caseID string) (cs *model.SysCase, err error) {
276 276
 	cs = new(model.SysCase)
277 277
 
278 278
 	_, err = DBEngine.Where("case_id=?", caseID).Get(cs)
279
-	return
279
+	return cs, err
280 280
 }