fix: 调度任务日志多语言下查询失败
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user