fix: Optimize the online data tab display of data tables (#520)
This commit is contained in:
parent
f78d297311
commit
a44b4e8f7e
|
|
@ -641,7 +641,7 @@ func (d databaseService) UpdateDatabaseRecord(ctx context.Context, req *UpdateDa
|
|||
cond := &rdb.Condition{
|
||||
Field: database.DefaultUidColName,
|
||||
Operator: entity3.OperatorEqual,
|
||||
Value: req.UserID,
|
||||
Value: strconv.FormatInt(req.UserID, 10),
|
||||
}
|
||||
|
||||
condition.Conditions = append(condition.Conditions, cond)
|
||||
|
|
@ -711,7 +711,7 @@ func (d databaseService) DeleteDatabaseRecord(ctx context.Context, req *DeleteDa
|
|||
cond := &rdb.Condition{
|
||||
Field: database.DefaultUidColName,
|
||||
Operator: entity3.OperatorEqual,
|
||||
Value: req.UserID,
|
||||
Value: strconv.FormatInt(req.UserID, 10),
|
||||
}
|
||||
|
||||
condition.Conditions = append(condition.Conditions, cond)
|
||||
|
|
@ -773,12 +773,12 @@ func (d databaseService) ListDatabaseRecord(ctx context.Context, req *ListDataba
|
|||
Conditions: []*rdb.Condition{cond},
|
||||
}
|
||||
}
|
||||
|
||||
if req.TableType == table.TableType_DraftTable {
|
||||
if tableInfo.RwMode == table.BotTableRWMode_LimitedReadWrite {
|
||||
cond := &rdb.Condition{
|
||||
Field: database.DefaultUidColName,
|
||||
Operator: entity3.OperatorEqual,
|
||||
Value: req.UserID,
|
||||
Value: strconv.FormatInt(req.UserID, 10),
|
||||
}
|
||||
|
||||
if complexCondition == nil {
|
||||
|
|
@ -789,6 +789,7 @@ func (d databaseService) ListDatabaseRecord(ctx context.Context, req *ListDataba
|
|||
complexCondition.Conditions = append(complexCondition.Conditions, cond)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
limit := 50
|
||||
if req.Limit > 0 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue