entity ย้ายสับเปลี่ยนตำแหน่ง
This commit is contained in:
parent
de27e1941b
commit
dd5662c14a
4 changed files with 292 additions and 1 deletions
|
|
@ -556,7 +556,11 @@ export class ProfileEmployeeController extends Controller {
|
|||
const exists =
|
||||
!!body.citizenId &&
|
||||
(await this.profileRepo.findOne({
|
||||
where: { id: Not(id), citizenId: body.citizenId },
|
||||
where: {
|
||||
id: Not(id),
|
||||
citizenId: body.citizenId,
|
||||
employeeClass: String(body.employeeClass)
|
||||
},
|
||||
}));
|
||||
|
||||
if (exists) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue