This commit is contained in:
AdisakKanthawilang 2024-08-07 15:08:40 +07:00
parent 78fb5b5c0a
commit 8a36a6c977
2 changed files with 27 additions and 4 deletions

View file

@ -1410,6 +1410,29 @@ export class DevelopmentController extends Controller {
await this.developmentRepository.save(development, { data: request });
return new HttpSuccess(development.id);
}
/**
* API / tab6
*
* @summary DEV_00 - /tab6 #
*
* @param {string} id Id
*/
@Get("tab7/{id}")
async GetDevelopemtTab7ById(@Path() id: string) {
const getDevelopment = await this.developmentRepository.findOne({
where: { id },
});
const _getDevelopment = {
id: getDevelopment ? getDevelopment.id : null,
accept: getDevelopment ? getDevelopment.accept : null,
receive: getDevelopment ? getDevelopment.receive : null,
approved: getDevelopment ? getDevelopment.approved : null,
budget: getDevelopment ? getDevelopment.budget : null,
budgetSub: getDevelopment ? getDevelopment.budgetSub : null,
budgetPay: getDevelopment ? getDevelopment.budgetPay : null,
};
return new HttpSuccess(_getDevelopment);
}
/**
* API / tab8

View file

@ -821,8 +821,6 @@ export class UpdateDevelopment5 {
isOutBudget: boolean;
//end
@Column()
budgetPay: Double | null;
@Column()
expect: string | null;
@Column()
topicAcademic: string | null;
@ -833,18 +831,20 @@ export class UpdateDevelopment5 {
}
export class UpdateDevelopment7 {
//move from tab5
//move from tab5
@Column()
budget: string | null;
@Column()
budgetSub: string | null;
@Column()
budgetPay: Double | null;
@Column()
accept: Double | null;
@Column()
receive: Double | null;
@Column()
approved: Double | null;
//end
//end
}
export class UpdateDevelopment8 {
//move from tab5