From 7304fbf296b3f83fd2f0900f9fab0113abd9aa31 Mon Sep 17 00:00:00 2001 From: ap <951984189@qq.com> Date: Mon, 8 Mar 2021 00:47:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E6=97=A0=E7=94=A8=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/modules/demo/controller/app/goods.ts | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/src/app/modules/demo/controller/app/goods.ts b/src/app/modules/demo/controller/app/goods.ts index 925deae..9b22726 100644 --- a/src/app/modules/demo/controller/app/goods.ts +++ b/src/app/modules/demo/controller/app/goods.ts @@ -14,22 +14,5 @@ import { BaseSysMenuEntity } from '../../../base/entity/sys/menu'; entity: DemoAppGoodsEntity, }) export class DemoAppGoodsController extends BaseController { - @InjectEntityModel(BaseSysMenuEntity) - baseSysMenuEntity: Repository; - - @Get('/123') - async 123() { - const ms = await this.baseSysMenuEntity.find(); - for (const item of ms) { - if (item.perms) { - let a = item.perms.split(','); - a = a.map(e => { - return 'base:' + e; - }); - item.perms = a.join(','); - this.baseSysMenuEntity.update(item.id, item); - } - } - return this.ok(122); - } + }