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

+ 1 - 1
service/bl_service.go Vedi File

@@ -234,7 +234,7 @@ func GetLastSyncRecord(org_id int64) (record LisSyncProcessStatusInfo, err error
234 234
 }
235 235
 
236 236
 func GetLastSyncResultRecord(org_id int64) (record LisSyncResultStatusInfo, err error) {
237
-	err = readDb.Model(&LisSyncResultStatusInfo{}).Where("org_id = ? AND status = 1", org_id).Last(&record).Error
237
+	err = readMiddleDb.Model(&LisSyncResultStatusInfo{}).Where("org_id = ? AND status = 1", org_id).Last(&record).Error
238 238
 	return
239 239
 }
240 240