Revert "✨ feat(db): 修改role表数据库操作方式"

This reverts commit e39af3649288cc5802739cfe862c818fe56e194e.
This commit is contained in:
luying
2023-05-22 19:43:21 +08:00
parent 2d45b2c66c
commit 7bc9e1fe49
79 changed files with 423 additions and 423 deletions
+2 -2
View File
@@ -5,7 +5,7 @@ import { checkWjxSign, getRedisSubChannel } from 'app/pubUtils/sdkUtil';
import { Service } from 'egg';
import { RedisClient } from 'redis';
import { REDIS_KEY } from '@consts';
import Role from '@db/Role';
import { RoleModel } from '@db/Role';
/**
* Test Service
@@ -24,7 +24,7 @@ export default class Sdk extends Service {
let roleId = params[`q${curConfig.roleIndex}`];
if(!roleId) return 0;
let role = await Role.findByRoleId(roleId);
let role = await RoleModel.findByRoleId(roleId);
if(!role) return 0;
let rec = await SurveyRecModel.findByRoleIdAndId(roleId, params.activity);