csx 3 anni fa
parent
commit
0daa66ecbb
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      service/bl_service.go

+ 2 - 2
service/bl_service.go Vedi 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