no message
This commit is contained in:
parent
61b56a0d62
commit
6860d52d13
1 changed files with 4 additions and 4 deletions
|
|
@ -79,11 +79,11 @@ export class AuthRoleController extends Controller {
|
||||||
@Post("govoment")
|
@Post("govoment")
|
||||||
public async AddAuthRoleGovoment(@Request() req: RequestWithUser, @Body() body: CreateAddAuthRole) {
|
public async AddAuthRoleGovoment(@Request() req: RequestWithUser, @Body() body: CreateAddAuthRole) {
|
||||||
|
|
||||||
let _NULL_ : any = null;
|
let NULL_ : any = null;
|
||||||
let getDetail
|
let getDetail
|
||||||
|
|
||||||
if(body.authRoleId == "") {
|
if(body.authRoleId == "") {
|
||||||
body.authRoleId = _NULL_
|
body.authRoleId = NULL_
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
getDetail = await this.authRoleRepo.findOneBy({ id: body.authRoleId });
|
getDetail = await this.authRoleRepo.findOneBy({ id: body.authRoleId });
|
||||||
|
|
@ -103,11 +103,11 @@ export class AuthRoleController extends Controller {
|
||||||
@Post("employee")
|
@Post("employee")
|
||||||
public async AddAuthRoleEmployee(@Request() req: RequestWithUser, @Body() body: CreateAddAuthRole) {
|
public async AddAuthRoleEmployee(@Request() req: RequestWithUser, @Body() body: CreateAddAuthRole) {
|
||||||
|
|
||||||
let _NULL_ : any = null;
|
let NULL_ : any = null;
|
||||||
let getDetail
|
let getDetail
|
||||||
|
|
||||||
if(body.authRoleId == "") {
|
if(body.authRoleId == "") {
|
||||||
body.authRoleId = _NULL_
|
body.authRoleId = NULL_
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
getDetail = await this.authRoleRepo.findOneBy({ id: body.authRoleId });
|
getDetail = await this.authRoleRepo.findOneBy({ id: body.authRoleId });
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue