1234567891011121314151617181920212223242526272829303132 |
- <?xml version="1.0" encoding="utf-8" ?>
- <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
- <mapper namespace="com.backendsys.modules.crt.dao.CrtDramaProjectStoryboardDao">
- <!-- 编辑分镜 -->
- <!-- { user_id } 用户ID不能改 -->
- <!-- { drama_project_id, episode_num } 项目ID、集数 不能改 -->
- <!-- { generate_image_status, generate_video_status } 任务状态 不能改 -->
- <update id="updateStoryboard" parameterType="com.backendsys.modules.crt.entity.CrtDramaProjectStoryboard">
- UPDATE crt_drama_project_storyboard SET
- <trim suffixOverrides="," suffix=" ">
- <if test="sort != null and sort != ''">sort = #{sort},</if>
- <if test="story_prompt != null and story_prompt != ''">story_prompt = #{story_prompt},</if>
- <if test="story_framing != null and story_framing != ''">story_framing = #{story_framing},</if>
- <if test="story_scene != null and story_scene != ''">story_scene = #{story_scene},</if>
- <if test="story_weather_time != null and story_weather_time != ''">story_weather_time = #{story_weather_time},</if>
- <if test="lora_figure_ids != null and lora_figure_ids != ''">lora_figure_ids = #{lora_figure_ids},</if>
- <if test="param_image_count != null and param_image_count != ''">param_image_count = #{param_image_count},</if>
- <if test="param_prompt_weight != null and param_prompt_weight != ''">param_prompt_weight = #{param_prompt_weight},</if>
- <if test="param_sampling_method != null and param_sampling_method != ''">param_sampling_method = #{param_sampling_method},</if>
- <if test="param_step_count != null and param_step_count != ''">param_step_count = #{param_step_count},</if>
- <if test="param_random_seed != null and param_random_seed != ''">param_random_seed = #{param_random_seed},</if>
- <if test="param_random_seed_custom != null and param_random_seed_custom != ''">param_random_seed_custom = #{param_random_seed_custom},</if>
- <if test="text_to_image_prompt != null and text_to_image_prompt != ''">text_to_image_prompt = #{text_to_image_prompt},</if>
- <if test="param_video_reference_type != null and param_video_reference_type != ''">param_video_reference_type = #{param_video_reference_type},</if>
- <if test="param_video_reference_images != null and param_video_reference_images != ''">param_video_reference_images = #{param_video_reference_images},</if>
- <if test="image_to_video_prompt != null and image_to_video_prompt != ''">image_to_video_prompt = #{image_to_video_prompt},</if>
- </trim>
- WHERE id = #{drama_project_storyboard_id}
- </update>
- </mapper>
|