|
|
@ -3491,7 +3491,7 @@ class BaseModelSqlv2 { |
|
|
|
rowId, |
|
|
|
rowId, |
|
|
|
}: { |
|
|
|
}: { |
|
|
|
cookie: any; |
|
|
|
cookie: any; |
|
|
|
childIds: (string|number)[]; |
|
|
|
childIds: (string | number)[]; |
|
|
|
colId: string; |
|
|
|
colId: string; |
|
|
|
rowId: string; |
|
|
|
rowId: string; |
|
|
|
}) { |
|
|
|
}) { |
|
|
@ -3599,7 +3599,7 @@ class BaseModelSqlv2 { |
|
|
|
rowId, |
|
|
|
rowId, |
|
|
|
}: { |
|
|
|
}: { |
|
|
|
cookie: any; |
|
|
|
cookie: any; |
|
|
|
childIds: (string|number)[]; |
|
|
|
childIds: (string | number)[]; |
|
|
|
colId: string; |
|
|
|
colId: string; |
|
|
|
rowId: string; |
|
|
|
rowId: string; |
|
|
|
}) { |
|
|
|
}) { |
|
|
@ -3636,7 +3636,7 @@ class BaseModelSqlv2 { |
|
|
|
.where({ |
|
|
|
.where({ |
|
|
|
[vParentCol.column_name]: this.dbDriver(parentTn) |
|
|
|
[vParentCol.column_name]: this.dbDriver(parentTn) |
|
|
|
.select(parentColumn.column_name) |
|
|
|
.select(parentColumn.column_name) |
|
|
|
.whereIn(parentTable.primaryKey.column_name,childIds) |
|
|
|
.whereIn(parentTable.primaryKey.column_name, childIds) |
|
|
|
.first(), |
|
|
|
.first(), |
|
|
|
[vChildCol.column_name]: this.dbDriver(childTn) |
|
|
|
[vChildCol.column_name]: this.dbDriver(childTn) |
|
|
|
.select(childColumn.column_name) |
|
|
|
.select(childColumn.column_name) |
|
|
|