fix citizenId
This commit is contained in:
parent
c6dd2632d5
commit
6e5f20ed18
1 changed files with 2 additions and 2 deletions
|
|
@ -3147,7 +3147,7 @@ export class ProfileController extends Controller {
|
||||||
const skip = (page - 1) * pageSize;
|
const skip = (page - 1) * pageSize;
|
||||||
const take = pageSize;
|
const take = pageSize;
|
||||||
switch (body.fieldName) {
|
switch (body.fieldName) {
|
||||||
case "idcard":
|
case "citizenId":
|
||||||
[findProfile, total] = await this.profileRepo.findAndCount({
|
[findProfile, total] = await this.profileRepo.findAndCount({
|
||||||
where: {
|
where: {
|
||||||
citizenId: Like(`%${body.keyword}%`),
|
citizenId: Like(`%${body.keyword}%`),
|
||||||
|
|
@ -3264,7 +3264,7 @@ export class ProfileController extends Controller {
|
||||||
firstName: item.firstName,
|
firstName: item.firstName,
|
||||||
lastName: item.lastName,
|
lastName: item.lastName,
|
||||||
position: item.position,
|
position: item.position,
|
||||||
idcard: item.citizenId,
|
citizenId: item.citizenId,
|
||||||
email: item.email,
|
email: item.email,
|
||||||
phone: item.phone,
|
phone: item.phone,
|
||||||
name: fullName,
|
name: fullName,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue