fix: 调度任务日志多语言下查询失败

This commit is contained in:
TsMask
2024-01-10 14:57:33 +08:00
parent 2e2ccba765
commit b838c76a4f
2 changed files with 7 additions and 1 deletions

View File

@@ -41,6 +41,12 @@ type SysJobLogController struct {
func (s *SysJobLogController) List(c *gin.Context) {
// 查询参数转换map
querys := ctx.QueryMap(c)
// 任务ID优先级更高
if v, ok := querys["jobId"]; ok && v != nil {
jobInfo := service.NewSysJobImpl.SelectJobById(v.(string))
querys["jobName"] = jobInfo.JobName
querys["jobGroup"] = jobInfo.JobGroup
}
data := s.sysJobLogService.SelectJobLogPage(querys)
rows := data["rows"].([]model.SysJobLog)