check workflow
This commit is contained in:
parent
4c2188a363
commit
32b0aa325d
74 changed files with 529 additions and 285 deletions
|
|
@ -44,7 +44,9 @@ export class ProfileNopaidController extends Controller {
|
|||
|
||||
@Get("{profileId}")
|
||||
public async getNopaid(@Path() profileId: string, @Request() req: RequestWithUser) {
|
||||
await new permission().PermissionOrgUserGet(req, "SYS_REGISTRY_OFFICER", profileId);
|
||||
let _workflow = await new permission().Workflow(req, profileId, "SYS_REGISTRY_OFFICER");
|
||||
if (_workflow == false)
|
||||
await new permission().PermissionOrgUserGet(req, "SYS_REGISTRY_OFFICER", profileId);
|
||||
const lists = await this.nopaidRepository.find({
|
||||
where: { profileId },
|
||||
order: { createdAt: "ASC" },
|
||||
|
|
@ -56,7 +58,9 @@ export class ProfileNopaidController extends Controller {
|
|||
public async nopaidHistory(@Path() nopaidId: string, @Request() req: RequestWithUser) {
|
||||
const _record = await this.nopaidRepository.findOneBy({ id: nopaidId });
|
||||
if (_record) {
|
||||
await new permission().PermissionOrgUserGet(req, "SYS_REGISTRY_OFFICER", _record.profileId);
|
||||
let _workflow = await new permission().Workflow(req, nopaidId, "SYS_REGISTRY_OFFICER");
|
||||
if (_workflow == false)
|
||||
await new permission().PermissionOrgUserGet(req, "SYS_REGISTRY_OFFICER", _record.profileId);
|
||||
}
|
||||
const record = await this.nopaidHistoryRepository.find({
|
||||
where: { profileNopaidId: nopaidId },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue