CrtDramaProjectStoryboardDao.xml 2.7 KB

1234567891011121314151617181920212223242526272829303132
  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
  3. <mapper namespace="com.backendsys.modules.crt.dao.CrtDramaProjectStoryboardDao">
  4. <!-- 编辑分镜 -->
  5. <!-- { user_id } 用户ID不能改 -->
  6. <!-- { drama_project_id, episode_num } 项目ID、集数 不能改 -->
  7. <!-- { generate_image_status, generate_video_status } 任务状态 不能改 -->
  8. <update id="updateStoryboard" parameterType="com.backendsys.modules.crt.entity.CrtDramaProjectStoryboard">
  9. UPDATE crt_drama_project_storyboard SET
  10. <trim suffixOverrides="," suffix=" ">
  11. <if test="sort != null and sort != ''">sort = #{sort},</if>
  12. <if test="story_prompt != null and story_prompt != ''">story_prompt = #{story_prompt},</if>
  13. <if test="story_framing != null and story_framing != ''">story_framing = #{story_framing},</if>
  14. <if test="story_scene != null and story_scene != ''">story_scene = #{story_scene},</if>
  15. <if test="story_weather_time != null and story_weather_time != ''">story_weather_time = #{story_weather_time},</if>
  16. <if test="lora_figure_ids != null and lora_figure_ids != ''">lora_figure_ids = #{lora_figure_ids},</if>
  17. <if test="param_image_count != null and param_image_count != ''">param_image_count = #{param_image_count},</if>
  18. <if test="param_prompt_weight != null and param_prompt_weight != ''">param_prompt_weight = #{param_prompt_weight},</if>
  19. <if test="param_sampling_method != null and param_sampling_method != ''">param_sampling_method = #{param_sampling_method},</if>
  20. <if test="param_step_count != null and param_step_count != ''">param_step_count = #{param_step_count},</if>
  21. <if test="param_random_seed != null and param_random_seed != ''">param_random_seed = #{param_random_seed},</if>
  22. <if test="param_random_seed_custom != null and param_random_seed_custom != ''">param_random_seed_custom = #{param_random_seed_custom},</if>
  23. <if test="text_to_image_prompt != null and text_to_image_prompt != ''">text_to_image_prompt = #{text_to_image_prompt},</if>
  24. <if test="param_video_reference_type != null and param_video_reference_type != ''">param_video_reference_type = #{param_video_reference_type},</if>
  25. <if test="param_video_reference_images != null and param_video_reference_images != ''">param_video_reference_images = #{param_video_reference_images},</if>
  26. <if test="image_to_video_prompt != null and image_to_video_prompt != ''">image_to_video_prompt = #{image_to_video_prompt},</if>
  27. </trim>
  28. WHERE id = #{drama_project_storyboard_id}
  29. </update>
  30. </mapper>