add entry
This commit is contained in:
parent
c6829ed14f
commit
30c785dc3c
5 changed files with 174 additions and 3 deletions
|
|
@ -89,6 +89,7 @@ import { OrgRoot } from "../entities/OrgRoot";
|
|||
import { EmployeeTempPosMaster } from "../entities/EmployeeTempPosMaster";
|
||||
import { ProfileInsignia, CreateProfileInsignia } from "../entities/ProfileInsignia";
|
||||
import { ProfileInsigniaHistory } from "../entities/ProfileInsigniaHistory";
|
||||
import { Gender } from "../entities/Gender";
|
||||
@Route("api/v1/org/command")
|
||||
@Tags("Command")
|
||||
@Security("bearerAuth")
|
||||
|
|
@ -141,6 +142,7 @@ export class CommandController extends Controller {
|
|||
private orgRootRepository = AppDataSource.getRepository(OrgRoot);
|
||||
private insigniaRepo = AppDataSource.getRepository(ProfileInsignia);
|
||||
private insigniaHistoryRepo = AppDataSource.getRepository(ProfileInsigniaHistory);
|
||||
private genderRepo = AppDataSource.getRepository(Gender);
|
||||
|
||||
/**
|
||||
* API list รายการคำสั่ง
|
||||
|
|
@ -7052,4 +7054,19 @@ export class CommandController extends Controller {
|
|||
},
|
||||
});
|
||||
}
|
||||
|
||||
async cronjobTest(@Request() request?: RequestWithUser) {
|
||||
const gender = {
|
||||
name: "เพศทางเลือก",
|
||||
code: "M",
|
||||
isActive: true,
|
||||
createdFullName: "system",
|
||||
createdAt: new Date(),
|
||||
updatedAt: new Date(),
|
||||
};
|
||||
|
||||
await this.genderRepo.save(gender);
|
||||
|
||||
return new HttpSuccess();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue