fix total omg_053 and add "createAt","lastUpdateAt","createFullname" 7controller

This commit is contained in:
AdisakKanthawilang 2024-02-05 11:51:03 +07:00
parent 84cc108c7b
commit 70cb1d7c11
7 changed files with 14 additions and 7 deletions

View file

@ -156,7 +156,8 @@ import {
@Get() @Get()
async listBloodGroup() { async listBloodGroup() {
const bloodGroup = await this.bloodGroupRepository.find({ const bloodGroup = await this.bloodGroupRepository.find({
select: ["id", "name" ], select: ["id", "name" , "createdAt" , "lastUpdatedAt" , "createdFullName"],
order:{ createdAt:"ASC" }
}); });
if (!bloodGroup) { if (!bloodGroup) {

View file

@ -156,7 +156,8 @@ export class EducationLevelController extends Controller {
@Get() @Get()
async listEducationLevel() { async listEducationLevel() {
const educationLevel = await this.educationLevelRepository.find({ const educationLevel = await this.educationLevelRepository.find({
select: ["id", "name" ], select: ["id", "name" , "createdAt" , "lastUpdatedAt" , "createdFullName"],
order:{ createdAt:"ASC" }
}); });
if (!educationLevel) { if (!educationLevel) {

View file

@ -41,7 +41,8 @@ export class GenderController extends Controller {
async GetResult() { async GetResult() {
console.log("asds") console.log("asds")
const _gender = await this.genderRepository.find({ const _gender = await this.genderRepository.find({
select: ["id", "name"], select: ["id", "name" , "createdAt" , "lastUpdatedAt" , "createdFullName"],
order:{ createdAt:"ASC" }
}); });
if (!_gender) { if (!_gender) {
return new HttpSuccess([]); return new HttpSuccess([]);

View file

@ -40,7 +40,8 @@ export class PrefixController extends Controller {
@Get() @Get()
async Get() { async Get() {
const _prefix = await this.prefixRepository.find({ const _prefix = await this.prefixRepository.find({
select: ["id", "name"], select: ["id", "name" , "createdAt" , "lastUpdatedAt" , "createdFullName"],
order:{ createdAt:"ASC" }
}); });
if (!_prefix) { if (!_prefix) {
return new HttpSuccess([]); return new HttpSuccess([]);

View file

@ -156,7 +156,8 @@ import {
@Get() @Get()
async listRank() { async listRank() {
const rank = await this.rankRepository.find({ const rank = await this.rankRepository.find({
select: ["id", "name" ], select: ["id", "name" , "createdAt" , "lastUpdatedAt" , "createdFullName"],
order:{ createdAt:"ASC" }
}); });
if (!rank) { if (!rank) {

View file

@ -156,7 +156,8 @@ export class RelationshipController extends Controller {
@Get() @Get()
async listRelationship() { async listRelationship() {
const relationship = await this.relationshipRepository.find({ const relationship = await this.relationshipRepository.find({
select: ["id", "name"], select: ["id", "name" , "createdAt" , "lastUpdatedAt" , "createdFullName"],
order:{ createdAt:"ASC" }
}); });
if (!relationship) { if (!relationship) {
return new HttpSuccess([]); return new HttpSuccess([]);

View file

@ -156,7 +156,8 @@ export class ReligionController extends Controller {
@Get() @Get()
async listReligion() { async listReligion() {
const religion = await this.religionRepository.find({ const religion = await this.religionRepository.find({
select: ["id", "name" ], select: ["id", "name" , "createdAt" , "lastUpdatedAt" , "createdFullName"],
order:{ createdAt:"ASC" }
}); });
if (!religion) { if (!religion) {