|
@@ -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
|
|