const getOrderBy = (field: string, order: string, primaryKey: PrimaryKey) => {
console.log(primaryKey,"primaryKey")
if (field == 'id') {
console.log(primaryKey.map(key => (`${key}.${order.toLowerCase()}`)).join(','))
return primaryKey.map(key => (`${key}.${order.toLowerCase()}`)).join(',');
} else {
console.log(`${field}.${order.toLowerCase()}`,"11")
return `${field}.${order.toLowerCase()}`;
}
};