เพิ่มฟิวหน่วยงานผู้ค้ำ
This commit is contained in:
parent
109bea3fc8
commit
a840274150
5 changed files with 84 additions and 7 deletions
|
|
@ -239,7 +239,7 @@ export class DevelopmentEmployeeHistoryController extends Controller {
|
|||
{ year: body.year },
|
||||
)
|
||||
.andWhere(
|
||||
body.root != null && body.root != undefined ? "developmentHistory.rootId = :root" : "1=1",
|
||||
body.root != null && body.root != undefined ? "developmentHistory.root = :root" : "1=1",
|
||||
{
|
||||
root: body.root,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -230,12 +230,9 @@ export class DevelopmentOfficerHistoryController extends Controller {
|
|||
: "1=1",
|
||||
{ year: body.year },
|
||||
)
|
||||
.andWhere(
|
||||
body.root != null && body.root != undefined ? "development.rootId = :root" : "1=1",
|
||||
{
|
||||
root: body.root,
|
||||
},
|
||||
)
|
||||
.andWhere(body.root != null && body.root != undefined ? "development.root = :root" : "1=1", {
|
||||
root: body.root,
|
||||
})
|
||||
.andWhere(body.root != null ? "developmentHistory.root = :root" : "1=1", { root: body.root })
|
||||
.andWhere("developmentHistory.type = :type", { type: type })
|
||||
.andWhere(
|
||||
|
|
|
|||
|
|
@ -238,7 +238,11 @@ export class DevelopmentScholarshipController extends Controller {
|
|||
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูลทุนการศึกษา/ฝึกอบรมนี้");
|
||||
}
|
||||
const formattedData = {
|
||||
rootId: getDevelopment.rootId ? getDevelopment.rootId : null,
|
||||
root: getDevelopment.root ? getDevelopment.root : null,
|
||||
org: getDevelopment.org ? getDevelopment.org : null,
|
||||
orgRootShortName: getDevelopment.orgRootShortName ? getDevelopment.orgRootShortName : null,
|
||||
orgRevisionId: getDevelopment.orgRevisionId ? getDevelopment.orgRevisionId : null,
|
||||
rank: getDevelopment.rank ? getDevelopment.rank : null,
|
||||
prefix: getDevelopment.prefix ? getDevelopment.prefix : null,
|
||||
firstName: getDevelopment.firstName ? getDevelopment.firstName : null,
|
||||
|
|
@ -252,6 +256,15 @@ export class DevelopmentScholarshipController extends Controller {
|
|||
: null,
|
||||
posTypeId: getDevelopment.posTypeId ? getDevelopment.posTypeId : null,
|
||||
posTypeName: getDevelopment.posType?.posTypeName ? getDevelopment.posType?.posTypeName : null,
|
||||
guarantorRootId: getDevelopment.guarantorRootId ? getDevelopment.guarantorRootId : null,
|
||||
guarantorRoot: getDevelopment.guarantorRoot ? getDevelopment.guarantorRoot : null,
|
||||
guarantorOrg: getDevelopment.guarantorOrg ? getDevelopment.guarantorOrg : null,
|
||||
guarantorOrgRootShortName: getDevelopment.guarantorOrgRootShortName
|
||||
? getDevelopment.guarantorOrgRootShortName
|
||||
: null,
|
||||
guarantorOrgRevisionId: getDevelopment.guarantorOrgRevisionId
|
||||
? getDevelopment.guarantorOrgRevisionId
|
||||
: null,
|
||||
guarantorRank: getDevelopment.guarantorRank ? getDevelopment.guarantorRank : null,
|
||||
guarantorPrefix: getDevelopment.guarantorPrefix ? getDevelopment.guarantorPrefix : null,
|
||||
guarantorFirstName: getDevelopment.guarantorFirstName
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue