csx 3 years ago
parent
commit
0daa66ecbb
1 changed files with 2 additions and 2 deletions
  1. 2 2
      service/bl_service.go

+ 2 - 2
service/bl_service.go View File

236
 	return
236
 	return
237
 }
237
 }
238
 
238
 
239
-func GetResultRecord() (record []*CmResult, err error) {
240
-	err = dataBase.Model(&CmResult{}).Order("barcode desc").Limit(100).Find(&record).Error
239
+func GetResultRecord() (record []CmResult, err error) {
240
+	err = dataBase.Model(&CmResult{}).Order("barcode desc").Limit(1).Find(&record).Error
241
 	return
241
 	return
242
 }
242
 }
243
 
243