This commit is contained in:
cool 2023-10-15 10:37:32 +08:00
parent d16a84b57b
commit 3ca8565ac8
3 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@cool-midway/core", "name": "@cool-midway/core",
"version": "7.0.0-beta5", "version": "7.0.0-beta6",
"description": "", "description": "",
"main": "dist/index.js", "main": "dist/index.js",
"typings": "index.d.ts", "typings": "index.d.ts",

View File

@ -1,6 +1,6 @@
{ {
"name": "@cool-midway/core", "name": "@cool-midway/core",
"version": "7.0.0-beta5", "version": "7.0.0-beta6",
"description": "", "description": "",
"main": "index.js", "main": "index.js",
"typings": "index.d.ts", "typings": "index.d.ts",

View File

@ -464,7 +464,7 @@ export abstract class BaseService {
if(typeof key === "string" && key.includes('.')){ if(typeof key === "string" && key.includes('.')){
const keys = key.split('.'); const keys = key.split('.');
const lastKey = keys.pop(); const lastKey = keys.pop();
key = {requestParam: lastKey, column: keys.join('.')}; key = {requestParam: lastKey, column: key};
} }
// 单表字段无别名的情况下操作 // 单表字段无别名的情况下操作
if (typeof key === "string") { if (typeof key === "string") {