mirror of
https://github.com/geekgeekrun/geekgeekrun.git
synced 2026-06-15 04:30:22 +08:00
add latestLogDate column for job library; fix wrong time displayed
This commit is contained in:
@@ -5,12 +5,18 @@ const { ViewEntity, ViewColumn } = requireTypeorm();
|
||||
job_info.*,
|
||||
boss_info.name AS bossName,
|
||||
boss_info.title AS bossTitle,
|
||||
company_info.name AS companyName
|
||||
company_info.name AS companyName,
|
||||
(
|
||||
SELECT job_info_change_log.updateTime
|
||||
FROM job_info_change_log
|
||||
WHERE job_info_change_log.encryptJobId = job_info.encryptJobId
|
||||
ORDER BY job_info_change_log.updateTime ASC
|
||||
LIMIT 1
|
||||
) AS latestLogDate
|
||||
FROM
|
||||
job_info
|
||||
LEFT JOIN boss_info ON boss_info.encryptBossId = job_info.encryptBossId
|
||||
LEFT JOIN company_info ON company_info.encryptCompanyId = job_info.encryptCompanyId
|
||||
`,
|
||||
LEFT JOIN company_info ON company_info.encryptCompanyId = job_info.encryptCompanyId`,
|
||||
})
|
||||
export class VJobLibrary {
|
||||
@ViewColumn()
|
||||
@@ -54,4 +60,7 @@ export class VJobLibrary {
|
||||
|
||||
@ViewColumn()
|
||||
companyName: string;
|
||||
|
||||
@ViewColumn()
|
||||
latestLogDate: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user