fix(任务中心): 缺陷&&需求内置定时任务查询有误

--bug=1048365 --user=宋昌昌 【任务中心】系统后台任务-同步缺陷-状态开启-三方修改缺陷-ms平台未同步更新 https://www.tapd.cn/55049933/s/1602405
This commit is contained in:
song-cc-rock 2024-10-30 17:47:37 +08:00 committed by 刘瑞斌
parent d8fb66bbf4
commit 17680ae686
1 changed files with 2 additions and 2 deletions

View File

@ -341,7 +341,7 @@
FROM
schedule
left join project on schedule.project_id = project.id
left join QRTZ_TRIGGERS on schedule.job = QRTZ_TRIGGERS.JOB_GROUP and schedule.resource_id =
left join QRTZ_TRIGGERS on schedule.job = QRTZ_TRIGGERS.JOB_GROUP and schedule.key =
QRTZ_TRIGGERS.TRIGGER_NAME
where resource_type = 'BUG_SYNC'
union all
@ -365,7 +365,7 @@
FROM
schedule
left join project on schedule.project_id = project.id
left join QRTZ_TRIGGERS on schedule.job = QRTZ_TRIGGERS.JOB_GROUP and schedule.resource_id =
left join QRTZ_TRIGGERS on schedule.job = QRTZ_TRIGGERS.JOB_GROUP and schedule.key =
QRTZ_TRIGGERS.TRIGGER_NAME
where resource_type ='DEMAND_SYNC'
) task