按天复制课程
This commit is contained in:
@@ -622,4 +622,28 @@
|
||||
and a.venue_id = #{venueId}
|
||||
</select>
|
||||
|
||||
<!-- api 查询需要copy的信息 -->
|
||||
<select id="getCopyLesson" resultMap="VenueLessonMap">
|
||||
SELECT
|
||||
*
|
||||
FROM
|
||||
sv_venue_lesson
|
||||
WHERE
|
||||
date = #{date}
|
||||
AND venue_id = #{venueId}
|
||||
AND deleted = 0
|
||||
</select>
|
||||
|
||||
<!-- copy -->
|
||||
<update id="copyImg">
|
||||
INSERT INTO sv_venue_lesson_image
|
||||
(lesson_id,url,platform_id,created_id,modified_id,created_time,modified_time,deleted)
|
||||
(
|
||||
SELECT
|
||||
#{nId},url,platform_id,created_id,'999',created_time,modified_time,deleted
|
||||
FROM sv_venue_lesson_image where sv_venue_lesson_image.deleted = 0
|
||||
AND sv_venue_lesson_image.lesson_id = #{id}
|
||||
)
|
||||
</update>
|
||||
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user