渲染修改

This commit is contained in:
2025-11-19 10:50:32 +08:00
parent 769cece367
commit 0dcee95a45
4 changed files with 63 additions and 7 deletions

View File

@@ -176,6 +176,32 @@ public class TbCrontabTask extends BaseDTO {
this.description = description;
}
/**
* @description 元数据名称(来自 tb_crontab_task_meta.name
*/
private String metaName;
/**
* @description 元数据描述(来自 tb_crontab_task_meta.description
*/
private String metaDescription;
public String getMetaName() {
return metaName;
}
public void setMetaName(String metaName) {
this.metaName = metaName;
}
public String getMetaDescription() {
return metaDescription;
}
public void setMetaDescription(String metaDescription) {
this.metaDescription = metaDescription;
}
public Integer getConcurrent() {
return concurrent;
}

View File

@@ -24,6 +24,8 @@
<result column="update_time" property="updateTime" />
<result column="delete_time" property="deleteTime" />
<result column="deleted" property="deleted" />
<result column="meta_name" property="metaName" />
<result column="meta_description" property="metaDescription" />
</resultMap>
<!-- 字段列表 -->
@@ -233,9 +235,33 @@
<!-- 分页查询任务列表 -->
<select id="selectTaskPage" resultMap="BaseResultMap">
SELECT DISTINCT ct.*
SELECT DISTINCT
ct.id,
ct.task_id,
ct.task_name,
ct.task_group,
ct.bean_name,
ct.method_name,
ct.method_params,
ct.meta_id,
ct.default_recipient,
ct.cron_expression,
ct.status,
ct.description,
ct.concurrent,
ct.misfire_policy,
ct.creator,
ct.updater,
ct.create_time,
ct.update_time,
ct.delete_time,
ct.deleted,
m.name AS meta_name,
m.description AS meta_description
FROM tb_crontab_task ct
<include refid="Permission_Filter" />
LEFT JOIN tb_crontab_task_meta m
ON ct.meta_id = m.meta_id AND m.deleted = 0
WHERE ct.deleted = 0
<if test="filter != null">
<if test="filter.ID != null and filter.ID != ''">

View File

@@ -40,6 +40,10 @@ export interface CrontabTask extends BaseDTO {
creator?: string;
/** 更新者 */
updater?: string;
/** 元数据名称tb_crontab_task_meta.name */
metaName?: string;
/** 元数据描述tb_crontab_task_meta.description */
metaDescription?: string;
}
/**

View File

@@ -83,20 +83,20 @@
<div class="card-content">
<div class="info-item">
<span class="info-label">Bean名称</span>
<span class="info-value">{{ crawler.beanName }}</span>
<span class="info-label">定时任务类型</span>
<span class="info-value">{{ crawler.taskGroup }}</span>
</div>
<div class="info-item">
<span class="info-label">方法名称</span>
<span class="info-value">{{ crawler.methodName }}</span>
<span class="info-label">定时任务</span>
<span class="info-value">{{ crawler.metaName }}</span>
</div>
<div class="info-item">
<span class="info-label">执行周期</span>
<span class="info-value">{{ crawler.cronExpression }}</span>
</div>
<div class="info-item" v-if="crawler.description">
<div class="info-item" v-if="crawler.description || crawler.metaDescription">
<span class="info-label">描述</span>
<span class="info-value">{{ crawler.description }}</span>
<span class="info-value">{{ crawler.description || crawler.metaDescription }}</span>
</div>
</div>