ปรับ comment fields

This commit is contained in:
Bright 2024-03-08 14:36:57 +07:00
parent a4f9676297
commit f63d809735
7 changed files with 19 additions and 21 deletions

View file

@ -1629,7 +1629,6 @@ export class SalaryPeriodController extends Controller {
* Cronjob SalaryPeriod * Cronjob SalaryPeriod
*/ */
async CronjobSalaryPeriod() { async CronjobSalaryPeriod() {
//bright
const current = new Date(); const current = new Date();
let salaryPeriod: any; let salaryPeriod: any;
let request: any; let request: any;

View file

@ -38,7 +38,7 @@ export class PosLevel extends EntityBase {
@Column({ @Column({
length: 40, length: 40,
comment: "เป็นระดับของประเภทตำแหน่งใด", comment: "คีย์นอก(FK)ของตาราง posType",
}) })
posTypeId: string; posTypeId: string;

View file

@ -6,7 +6,7 @@ import { SalaryProfile } from "./SalaryProfile";
@Entity("salaryOrg") @Entity("salaryOrg")
export class SalaryOrg extends EntityBase { export class SalaryOrg extends EntityBase {
@Column({ @Column({
comment: "", comment: "คีย์นอก(FK)ของตาราง salaryPeriod",
length: 40, length: 40,
}) })
salaryPeriodId: string; salaryPeriodId: string;
@ -17,14 +17,14 @@ export class SalaryOrg extends EntityBase {
status: string; status: string;
@Column({ @Column({
comment: "id หน่วยงาน", comment: "คีย์นอก(FK)ของตาราง orgRoot",
length: 40, length: 40,
}) })
rootId: string; rootId: string;
@Column({ @Column({
nullable: true, nullable: true,
comment: "id revision", comment: "คีย์นอก(FK)ของตาราง orgRevision",
length: 40, length: 40,
}) })
revisionId: string; revisionId: string;
@ -108,7 +108,6 @@ export class SalaryOrg extends EntityBase {
}) })
remainingAmount: number; remainingAmount: number;
@ManyToOne(() => SalaryPeriod, (salaryPeriod) => salaryPeriod.salaryOrgs) @ManyToOne(() => SalaryPeriod, (salaryPeriod) => salaryPeriod.salaryOrgs)
@JoinColumn({ name: "salaryPeriodId" }) @JoinColumn({ name: "salaryPeriodId" })
salaryPeriod: SalaryPeriod; salaryPeriod: SalaryPeriod;

View file

@ -44,7 +44,7 @@ export class SalaryPeriod extends EntityBase {
@Column({ @Column({
nullable: true, nullable: true,
comment: "id revision", comment: "คีย์นอก(FK)ของตาราง orgRevision",
length: 40, length: 40,
}) })
revisionId: string; revisionId: string;

View file

@ -5,7 +5,7 @@ import { SalaryOrg } from "./SalaryOrg";
@Entity("salaryProfile") @Entity("salaryProfile")
export class SalaryProfile extends EntityBase { export class SalaryProfile extends EntityBase {
@Column({ @Column({
comment: "", comment: "คีย์นอก(FK)ของตาราง salaryOrg",
length: 40, length: 40,
}) })
salaryOrgId: string; salaryOrgId: string;
@ -158,14 +158,14 @@ export class SalaryProfile extends EntityBase {
@Column({ @Column({
nullable: true, nullable: true,
comment: "", comment: "คีย์นอก(FK)ของตาราง orgRoot",
length: 40, length: 40,
}) })
rootId: string; rootId: string;
@Column({ @Column({
nullable: true, nullable: true,
comment: "", comment: "ชื่อของหน่วยงาน",
length: 255, length: 255,
default: null, default: null,
}) })
@ -173,14 +173,14 @@ export class SalaryProfile extends EntityBase {
@Column({ @Column({
nullable: true, nullable: true,
comment: "", comment: "คีย์นอก(FK)ของตาราง orgChild1",
length: 40, length: 40,
}) })
child1Id: string; child1Id: string;
@Column({ @Column({
nullable: true, nullable: true,
comment: "", comment: "ชื่อส่วนราชการ",
length: 255, length: 255,
default: null, default: null,
}) })
@ -188,14 +188,14 @@ export class SalaryProfile extends EntityBase {
@Column({ @Column({
nullable: true, nullable: true,
comment: "", comment: "คีย์นอก(FK)ของตาราง orgChild2",
length: 40, length: 40,
}) })
child2Id: string; child2Id: string;
@Column({ @Column({
nullable: true, nullable: true,
comment: "", comment: "ชื่อส่วนราชการ",
length: 255, length: 255,
default: null, default: null,
}) })
@ -203,14 +203,14 @@ export class SalaryProfile extends EntityBase {
@Column({ @Column({
nullable: true, nullable: true,
comment: "", comment: "คีย์นอก(FK)ของตาราง orgChild3",
length: 40, length: 40,
}) })
child3Id: string; child3Id: string;
@Column({ @Column({
nullable: true, nullable: true,
comment: "", comment: "ชื่อส่วนราชการ",
length: 255, length: 255,
default: null, default: null,
}) })
@ -218,14 +218,14 @@ export class SalaryProfile extends EntityBase {
@Column({ @Column({
nullable: true, nullable: true,
comment: "", comment: "คีย์นอก(FK)ของตาราง orgChild4",
length: 40, length: 40,
}) })
child4Id: string; child4Id: string;
@Column({ @Column({
nullable: true, nullable: true,
comment: "", comment: "ชื่อส่วนราชการ",
length: 255, length: 255,
default: null, default: null,
}) })

View file

@ -6,7 +6,7 @@ import { Salarys } from "./Salarys";
export class SalaryRanks extends EntityBase { export class SalaryRanks extends EntityBase {
@Column({ @Column({
length: 40, length: 40,
comment: "Id ผังเงินเดือน", comment: "คีย์นอก(FK)ของตาราง salary",
}) })
salaryId: string; salaryId: string;

View file

@ -14,13 +14,13 @@ export class Salarys extends EntityBase {
@Column({ @Column({
length: 40, length: 40,
comment: "Id ประเภทของตำแหน่ง", comment: "คีย์นอก(FK)ของตาราง posType",
}) })
posTypeId: string; posTypeId: string;
@Column({ @Column({
length: 40, length: 40,
comment: "Id ระดับของตำแหน่ง", comment: "คีย์นอก(FK)ของตาราง posLevel",
}) })
posLevelId: string; posLevelId: string;