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

+ 1 - 1
service/bl_service.go View File

234
 }
234
 }
235
 
235
 
236
 func GetLastSyncResultRecord(org_id int64) (record LisSyncResultStatusInfo, err error) {
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
 	return
238
 	return
239
 }
239
 }
240
 
240