fix: ลบ isActive
This commit is contained in:
parent
23f8382928
commit
ed9ed493f5
10 changed files with 5 additions and 67 deletions
|
|
@ -47,7 +47,6 @@ export class ProfileAbilityController extends Controller {
|
|||
createdFullName: "test bar",
|
||||
lastUpdateFullName: "test bar",
|
||||
profileId: "1526d9d3-d8b1-43ab-81b5-a84dfbe99201",
|
||||
isActive: true,
|
||||
remark: "ต้องส่งให้ทันก่อนวันที่ 15 มีนาคม",
|
||||
detail: "-",
|
||||
reference: "-",
|
||||
|
|
@ -78,7 +77,6 @@ export class ProfileAbilityController extends Controller {
|
|||
lastUpdateUserId: "00000000-0000-0000-0000-000000000000",
|
||||
createdFullName: "string",
|
||||
lastUpdateFullName: "test bar",
|
||||
isActive: true,
|
||||
remark: "ต้องส่งให้ทันก่อนวันที่ 15 มีนาคม",
|
||||
detail: "ด่วน",
|
||||
reference: "-",
|
||||
|
|
@ -95,7 +93,6 @@ export class ProfileAbilityController extends Controller {
|
|||
lastUpdateUserId: "00000000-0000-0000-0000-000000000000",
|
||||
createdFullName: "string",
|
||||
lastUpdateFullName: "test bar",
|
||||
isActive: true,
|
||||
remark: "ต้องส่งให้ทันก่อนวันที่ 15 มีนาคม",
|
||||
detail: "ด่วนมากสุด",
|
||||
reference: "-",
|
||||
|
|
|
|||
|
|
@ -53,7 +53,6 @@ export class ProfileAssessmentsController extends Controller {
|
|||
createdFullName: "test bar",
|
||||
lastUpdateFullName: "test bar",
|
||||
profileId: "1526d9d3-d8b1-43ab-81b5-a84dfbe99201",
|
||||
isActive: true,
|
||||
name: "สาวิตรี ศรีสมัย",
|
||||
date: "2024-03-13T03:55:42.000Z",
|
||||
point1: 0,
|
||||
|
|
@ -86,7 +85,6 @@ export class ProfileAssessmentsController extends Controller {
|
|||
lastUpdateUserId: "00000000-0000-0000-0000-000000000000",
|
||||
createdFullName: "string",
|
||||
lastUpdateFullName: "test bar",
|
||||
isActive: true,
|
||||
name: "สาวิตรี ศรีสมัย",
|
||||
date: "2024-03-13T03:55:42.000Z",
|
||||
point1: 0,
|
||||
|
|
@ -105,7 +103,6 @@ export class ProfileAssessmentsController extends Controller {
|
|||
lastUpdateUserId: "00000000-0000-0000-0000-000000000000",
|
||||
createdFullName: "string",
|
||||
lastUpdateFullName: "test bar",
|
||||
isActive: true,
|
||||
name: "สาวิตรี ศรีสมัย",
|
||||
date: "2024-03-13T03:55:42.000Z",
|
||||
point1: 50,
|
||||
|
|
|
|||
|
|
@ -48,7 +48,6 @@ export class ProfileCertificateController extends Controller {
|
|||
lastUpdateFullName: "สาวิตรี ศรีสมัย",
|
||||
profileId: "1526d9d3-d8b1-43ab-81b5-a84dfbe99201",
|
||||
expireDate: "2024-03-12T10:01:48.000Z",
|
||||
isActive: true,
|
||||
issueDate: "2024-03-12T10:01:48.000Z",
|
||||
certificateNo: "string",
|
||||
certificateType: "string",
|
||||
|
|
@ -75,7 +74,6 @@ export class ProfileCertificateController extends Controller {
|
|||
createdFullName: "string",
|
||||
lastUpdateFullName: "สาวิตรี ศรีสมัย",
|
||||
expireDate: "2024-03-12T10:03:05.000Z",
|
||||
isActive: true,
|
||||
issueDate: "2024-03-12T10:03:05.000Z",
|
||||
certificateNo: "no",
|
||||
certificateType: "type",
|
||||
|
|
@ -91,7 +89,6 @@ export class ProfileCertificateController extends Controller {
|
|||
createdFullName: "สาวิตรี ศรีสมัย",
|
||||
lastUpdateFullName: "สาวิตรี ศรีสมัย",
|
||||
expireDate: "2024-03-12T10:01:48.000Z",
|
||||
isActive: true,
|
||||
issueDate: "2024-03-12T10:01:48.000Z",
|
||||
certificateNo: "string",
|
||||
certificateType: "string",
|
||||
|
|
|
|||
|
|
@ -40,7 +40,6 @@ export class ProfileChangeNameController extends Controller {
|
|||
result: [
|
||||
{
|
||||
id: "debfa8a7-83fb-4801-a940-8ae74e7638d3",
|
||||
isActive: true,
|
||||
prefix: "string",
|
||||
firstName: "string",
|
||||
lastName: "string",
|
||||
|
|
@ -51,7 +50,7 @@ export class ProfileChangeNameController extends Controller {
|
|||
public async getChangeName(@Path() profileId: string) {
|
||||
const lists = await this.changeNameRepository.find({
|
||||
where: { profileId: profileId },
|
||||
select: ["id", "isActive", "prefix", "firstName", "lastName", "status"],
|
||||
select: ["id", "prefix", "firstName", "lastName", "status"],
|
||||
});
|
||||
return new HttpSuccess(lists);
|
||||
}
|
||||
|
|
@ -63,7 +62,6 @@ export class ProfileChangeNameController extends Controller {
|
|||
result: [
|
||||
{
|
||||
id: "debfa8a7-83fb-4801-a940-8ae74e7638d3",
|
||||
isActive: true,
|
||||
prefix: "string",
|
||||
firstName: "string",
|
||||
lastName: "string",
|
||||
|
|
@ -73,7 +71,6 @@ export class ProfileChangeNameController extends Controller {
|
|||
},
|
||||
{
|
||||
id: "debfa8a7-83fb-4801-a940-8ae74e7638d3",
|
||||
isActive: true,
|
||||
prefix: "string",
|
||||
firstName: "string",
|
||||
lastName: "string",
|
||||
|
|
@ -86,16 +83,7 @@ export class ProfileChangeNameController extends Controller {
|
|||
public async changeNameHistory(@Path() changeNameId: string) {
|
||||
const record = await this.changeNameHistoryRepository.find({
|
||||
where: { profileChangeNameId: changeNameId },
|
||||
select: [
|
||||
"id",
|
||||
"isActive",
|
||||
"prefix",
|
||||
"firstName",
|
||||
"lastName",
|
||||
"status",
|
||||
"createdFullName",
|
||||
"createdAt",
|
||||
],
|
||||
select: ["id", "prefix", "firstName", "lastName", "status", "createdFullName", "createdAt"],
|
||||
order: { createdAt: "DESC" },
|
||||
});
|
||||
return new HttpSuccess(record);
|
||||
|
|
|
|||
|
|
@ -40,7 +40,6 @@ export class ProfileDisciplineController extends Controller {
|
|||
result: [
|
||||
{
|
||||
id: "debfa8a7-83fb-4801-a940-8ae74e7638d3",
|
||||
isActive: true,
|
||||
date: "2024-03-12T10:09:47.000Z",
|
||||
level: "string",
|
||||
detail: "string",
|
||||
|
|
@ -53,16 +52,7 @@ export class ProfileDisciplineController extends Controller {
|
|||
public async getDiscipline(@Path() profileId: string) {
|
||||
const lists = await this.disciplineRepository.find({
|
||||
where: { profileId: profileId },
|
||||
select: [
|
||||
"id",
|
||||
"isActive",
|
||||
"date",
|
||||
"level",
|
||||
"detail",
|
||||
"unStigma",
|
||||
"refCommandNo",
|
||||
"refCommandDate",
|
||||
],
|
||||
select: ["id", "date", "level", "detail", "unStigma", "refCommandNo", "refCommandDate"],
|
||||
});
|
||||
return new HttpSuccess(lists);
|
||||
}
|
||||
|
|
@ -74,7 +64,6 @@ export class ProfileDisciplineController extends Controller {
|
|||
result: [
|
||||
{
|
||||
id: "debfa8a7-83fb-4801-a940-8ae74e7638d3",
|
||||
isActive: true,
|
||||
date: "2024-03-12T10:09:47.000Z",
|
||||
level: "string",
|
||||
detail: "string",
|
||||
|
|
@ -84,7 +73,6 @@ export class ProfileDisciplineController extends Controller {
|
|||
},
|
||||
{
|
||||
id: "ba0e2f82-014e-46c6-8b82-a7c28eb5325f",
|
||||
isActive: true,
|
||||
date: "2024-03-12T10:09:47.000Z",
|
||||
level: "string",
|
||||
detail: "string",
|
||||
|
|
@ -97,17 +85,8 @@ export class ProfileDisciplineController extends Controller {
|
|||
public async disciplineHistory(@Path() disciplineId: string) {
|
||||
const record = await this.disciplineHistoryRepository.find({
|
||||
where: { profileDisciplineId: disciplineId },
|
||||
select: [
|
||||
"id",
|
||||
"isActive",
|
||||
"date",
|
||||
"level",
|
||||
"detail",
|
||||
"unStigma",
|
||||
"refCommandNo",
|
||||
"refCommandDate",
|
||||
],
|
||||
order: { createdAt: "DESC" }
|
||||
select: ["id", "date", "level", "detail", "unStigma", "refCommandNo", "refCommandDate"],
|
||||
order: { createdAt: "DESC" },
|
||||
});
|
||||
return new HttpSuccess(record);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -36,7 +36,6 @@ export class ProfileDutyController extends Controller {
|
|||
result: [
|
||||
{
|
||||
id: "debfa8a7-83fb-4801-a940-8ae74e7638d3",
|
||||
isActive: true,
|
||||
dateStart: "2024-03-12T10:09:47.000Z",
|
||||
dateEnd: "string",
|
||||
reference: "string",
|
||||
|
|
@ -51,7 +50,6 @@ export class ProfileDutyController extends Controller {
|
|||
where: { profileId: profileId },
|
||||
select: [
|
||||
"id",
|
||||
"isActive",
|
||||
"dateStart",
|
||||
"dateEnd",
|
||||
"reference",
|
||||
|
|
@ -70,7 +68,6 @@ export class ProfileDutyController extends Controller {
|
|||
result: [
|
||||
{
|
||||
id: "debfa8a7-83fb-4801-a940-8ae74e7638d3",
|
||||
isActive: true,
|
||||
dateStart: "2024-03-12T10:09:47.000Z",
|
||||
dateEnd: "string",
|
||||
reference: "string",
|
||||
|
|
@ -80,7 +77,6 @@ export class ProfileDutyController extends Controller {
|
|||
},
|
||||
{
|
||||
id: "debfa8a7-83fb-4801-a940-8ae74e7638d3",
|
||||
isActive: true,
|
||||
dateStart: "2024-03-12T10:09:47.000Z",
|
||||
dateEnd: "string",
|
||||
reference: "string",
|
||||
|
|
@ -95,7 +91,6 @@ export class ProfileDutyController extends Controller {
|
|||
where: { profileDutyId: dutyId },
|
||||
select: [
|
||||
"id",
|
||||
"isActive",
|
||||
"dateStart",
|
||||
"dateEnd",
|
||||
"reference",
|
||||
|
|
|
|||
|
|
@ -48,7 +48,6 @@ export class ProfileFamilyHistoryController extends Controller {
|
|||
lastUpdateUserId: "59134ef9-9e62-41d0-aac5-339be727f2b0",
|
||||
createdFullName: "สาวิตรี ศรีสมัย",
|
||||
lastUpdateFullName: "สาวิตรี ศรีสมัย",
|
||||
isActive: true,
|
||||
couple: true,
|
||||
couplePrefix: "string",
|
||||
coupleFirstName: "string",
|
||||
|
|
@ -79,7 +78,6 @@ export class ProfileFamilyHistoryController extends Controller {
|
|||
lastUpdateUserId: "59134ef9-9e62-41d0-aac5-339be727f2b0",
|
||||
createdFullName: "สาวิตรี ศรีสมัย",
|
||||
lastUpdateFullName: "สาวิตรี ศรีสมัย",
|
||||
isActive: true,
|
||||
childrenCareer: "string",
|
||||
childrenFirstName: "string",
|
||||
childrenLastName: "string",
|
||||
|
|
@ -124,7 +122,6 @@ export class ProfileFamilyHistoryController extends Controller {
|
|||
lastUpdateUserId: "59134ef9-9e62-41d0-aac5-339be727f2b0",
|
||||
createdFullName: "สาวิตรี ศรีสมัย",
|
||||
lastUpdateFullName: "สาวิตรี ศรีสมัย",
|
||||
isActive: true,
|
||||
couple: true,
|
||||
couplePrefix: "string",
|
||||
coupleFirstName: "string",
|
||||
|
|
@ -155,7 +152,6 @@ export class ProfileFamilyHistoryController extends Controller {
|
|||
lastUpdateUserId: "59134ef9-9e62-41d0-aac5-339be727f2b0",
|
||||
createdFullName: "สาวิตรี ศรีสมัย",
|
||||
lastUpdateFullName: "สาวิตรี ศรีสมัย",
|
||||
isActive: false,
|
||||
childrenCareer: "hey",
|
||||
childrenFirstName: "hey",
|
||||
childrenLastName: "hey",
|
||||
|
|
@ -174,7 +170,6 @@ export class ProfileFamilyHistoryController extends Controller {
|
|||
lastUpdateUserId: "59134ef9-9e62-41d0-aac5-339be727f2b0",
|
||||
createdFullName: "สาวิตรี ศรีสมัย",
|
||||
lastUpdateFullName: "สาวิตรี ศรีสมัย",
|
||||
isActive: false,
|
||||
childrenCareer: "ay",
|
||||
childrenFirstName: "ay",
|
||||
childrenLastName: "ay",
|
||||
|
|
@ -195,7 +190,6 @@ export class ProfileFamilyHistoryController extends Controller {
|
|||
lastUpdateUserId: "59134ef9-9e62-41d0-aac5-339be727f2b0",
|
||||
createdFullName: "สาวิตรี ศรีสมัย",
|
||||
lastUpdateFullName: "สาวิตรี ศรีสมัย",
|
||||
isActive: true,
|
||||
couple: true,
|
||||
couplePrefix: "string",
|
||||
coupleFirstName: "string",
|
||||
|
|
|
|||
|
|
@ -43,7 +43,6 @@ export class ProfileHonorController extends Controller {
|
|||
createdFullName: "สาวิตรี ศรีสมัย",
|
||||
lastUpdateFullName: "สาวิตรี ศรีสมัย",
|
||||
profileId: "1526d9d3-d8b1-43ab-81b5-a84dfbe99201",
|
||||
isActive: true,
|
||||
detail: "string",
|
||||
issueDate: "2024-03-12T10:09:47.000Z",
|
||||
issuer: "string",
|
||||
|
|
@ -71,7 +70,6 @@ export class ProfileHonorController extends Controller {
|
|||
lastUpdateUserId: "00000000-0000-0000-0000-000000000000",
|
||||
createdFullName: "string",
|
||||
lastUpdateFullName: "สาวิตรี ศรีสมัย",
|
||||
isActive: true,
|
||||
detail: "detail",
|
||||
issueDate: "2024-03-12T10:10:31.000Z",
|
||||
issuer: "issuer",
|
||||
|
|
@ -88,7 +86,6 @@ export class ProfileHonorController extends Controller {
|
|||
lastUpdateUserId: "59134ef9-9e62-41d0-aac5-339be727f2b0",
|
||||
createdFullName: "สาวิตรี ศรีสมัย",
|
||||
lastUpdateFullName: "สาวิตรี ศรีสมัย",
|
||||
isActive: true,
|
||||
detail: "string",
|
||||
issueDate: "2024-03-12T10:09:47.000Z",
|
||||
issuer: "string",
|
||||
|
|
|
|||
|
|
@ -47,7 +47,6 @@ export class ProfileInsigniaController extends Controller {
|
|||
createdFullName: "สาวิตรี ศรีสมัย",
|
||||
lastUpdateFullName: "สาวิตรี ศรีสมัย",
|
||||
profileId: "1526d9d3-d8b1-43ab-81b5-a84dfbe99201",
|
||||
isActive: true,
|
||||
year: 0,
|
||||
no: "string",
|
||||
volume: "string",
|
||||
|
|
@ -90,7 +89,6 @@ export class ProfileInsigniaController extends Controller {
|
|||
lastUpdateUserId: "00000000-0000-0000-0000-000000000000",
|
||||
createdFullName: "string",
|
||||
lastUpdateFullName: "สาวิตรี ศรีสมัย",
|
||||
isActive: true,
|
||||
year: 0,
|
||||
no: "no",
|
||||
volume: "volume",
|
||||
|
|
@ -115,7 +113,6 @@ export class ProfileInsigniaController extends Controller {
|
|||
lastUpdateUserId: "59134ef9-9e62-41d0-aac5-339be727f2b0",
|
||||
createdFullName: "สาวิตรี ศรีสมัย",
|
||||
lastUpdateFullName: "สาวิตรี ศรีสมัย",
|
||||
isActive: true,
|
||||
year: 0,
|
||||
no: "string",
|
||||
volume: "string",
|
||||
|
|
|
|||
|
|
@ -36,7 +36,6 @@ export class ProfileNopaidController extends Controller {
|
|||
result: [
|
||||
{
|
||||
id: "debfa8a7-83fb-4801-a940-8ae74e7638d3",
|
||||
isActive: true,
|
||||
date: "2024-03-12T10:09:47.000Z",
|
||||
reference: "string",
|
||||
detail: "string",
|
||||
|
|
@ -59,7 +58,6 @@ export class ProfileNopaidController extends Controller {
|
|||
result: [
|
||||
{
|
||||
id: "debfa8a7-83fb-4801-a940-8ae74e7638d3",
|
||||
isActive: true,
|
||||
date: "2024-03-12T10:09:47.000Z",
|
||||
reference: "string",
|
||||
detail: "string",
|
||||
|
|
@ -68,7 +66,6 @@ export class ProfileNopaidController extends Controller {
|
|||
},
|
||||
{
|
||||
id: "debfa8a7-83fb-4801-a940-8ae74e7638d3",
|
||||
isActive: true,
|
||||
date: "2024-03-12T10:09:47.000Z",
|
||||
reference: "string",
|
||||
detail: "string",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue