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,8 +236,8 @@ func GetLastSyncResultRecord(org_id int64) (record LisSyncResultStatusInfo, err
236 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 241
 	return
242 242
 }
243 243