|
|
@@ -12,10 +12,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<!-- 根据 id 查询单条记录 -->
|
|
|
<select id="selectScheduleConfigById" parameterType="long" resultType="org.dromara.business.domain.vo.ScheduleConfigVo">
|
|
|
- SELECT id, template_id, creation_scheme_id, start_date, end_date, enabled, created_at, updated_at
|
|
|
- FROM schedule_config
|
|
|
- WHERE id = #{id}
|
|
|
- </select>
|
|
|
+ SELECT a.id, a.template_id,a.creation_scheme_id, a.start_date, a.end_date, a.enabled, a.created_at, a.updated_at
|
|
|
+ FROM schedule_config a left join tournaments_template b on a.template_id=b.id
|
|
|
+ WHERE a.id = #{id} and a.enabled=TRUE
|
|
|
+ </select>
|
|
|
|
|
|
|
|
|
<!-- 查询所有字段 -->
|