เพิ่มฟิวหน่วยงานผู้ค้ำ

This commit is contained in:
Kittapath 2024-04-18 16:17:37 +07:00
parent 109bea3fc8
commit a840274150
5 changed files with 84 additions and 7 deletions

View file

@ -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(