mirror of
https://github.com/dataease/dataease.git
synced 2025-02-24 19:42:56 +08:00
fix: 【桌面版】api数据源全量更新-简单重复-更新记录为空
This commit is contained in:
parent
af4cc96737
commit
cacf1e9eb1
@ -17,10 +17,8 @@ public interface ExtDatasourceTaskMapper {
|
|||||||
|
|
||||||
@Select(
|
@Select(
|
||||||
"""
|
"""
|
||||||
SELECT core_datasource.name as datasource_name,core_datasource_task.* , QRTZ_TRIGGERS.NEXT_FIRE_TIME as NEXT_FIRE_TIME
|
SELECT QRTZ_TRIGGERS.*
|
||||||
FROM core_datasource_task
|
FROM QRTZ_TRIGGERS
|
||||||
left join core_datasource on core_datasource.id=core_datasource_task.ds_id
|
|
||||||
left join QRTZ_TRIGGERS on core_datasource_task.id=QRTZ_TRIGGERS.TRIGGER_NAME
|
|
||||||
${ew.customSqlSegment}
|
${ew.customSqlSegment}
|
||||||
"""
|
"""
|
||||||
)
|
)
|
||||||
|
@ -126,7 +126,7 @@ public class DatasourceTaskServer {
|
|||||||
|
|
||||||
public List<CoreDatasourceTaskDTO> taskWithTriggers(Long taskId) {
|
public List<CoreDatasourceTaskDTO> taskWithTriggers(Long taskId) {
|
||||||
QueryWrapper<CoreDatasourceTaskDTO> wrapper = new QueryWrapper<>();
|
QueryWrapper<CoreDatasourceTaskDTO> wrapper = new QueryWrapper<>();
|
||||||
wrapper.eq("core_datasource_task.id", String.valueOf(taskId));
|
wrapper.eq("QRTZ_TRIGGERS.TRIGGER_NAME", String.valueOf(taskId));
|
||||||
return extDatasourceTaskMapper.taskWithTriggers(wrapper);
|
return extDatasourceTaskMapper.taskWithTriggers(wrapper);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user