|
|
@@ -7,6 +7,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<resultMap type="com.zd.laboratory.domain.LabAudioSynthesis" id="LabAudioSynthesisResult">
|
|
|
<result property="id" column="id" />
|
|
|
<result property="riskPlanId" column="risk_plan_id" />
|
|
|
+ <result property="sceneType" column="scene_type" />
|
|
|
<result property="musicUrl" column="music_url" />
|
|
|
<result property="musicVolume" column="music_volume" />
|
|
|
<result property="bgmusicUrl" column="bgmusic_url" />
|
|
|
@@ -18,21 +19,23 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectLabAudioSynthesisVo">
|
|
|
- select id, risk_plan_id, music_url, music_volume, bgmusic_url, bgmusic_volume, new_music_url, user_id, create_by, create_time from lab_audio_synthesis
|
|
|
+ select id, risk_plan_id, scene_type, music_url, music_volume, bgmusic_url, bgmusic_volume, new_music_url, user_id, create_by, create_time from lab_audio_synthesis
|
|
|
</sql>
|
|
|
<sql id="selectLabAudioSynthesisListVo">
|
|
|
- select t.id, t.risk_plan_id, t.music_url, t.music_volume, t.bgmusic_url, t.bgmusic_volume, t.new_music_url, t.user_id, t.create_by, t.create_time from lab_audio_synthesis as t
|
|
|
+ select t.id, t.risk_plan_id, t.scene_type, t.music_url, t.music_volume, t.bgmusic_url, t.bgmusic_volume, t.new_music_url, t.user_id, t.create_by, t.create_time from lab_audio_synthesis as t
|
|
|
</sql>
|
|
|
<select id="selectLabAudioSynthesisList" parameterType="com.zd.laboratory.domain.LabAudioSynthesis" resultMap="LabAudioSynthesisResult">
|
|
|
<include refid="selectLabAudioSynthesisVo"/>
|
|
|
<where>
|
|
|
<if test="riskPlanId != null and riskPlanId != ''"> and risk_plan_id = #{riskPlanId}</if>
|
|
|
+ <if test="sceneType != null and sceneType != ''"> and scene_type = #{sceneType}</if>
|
|
|
<if test="musicUrl != null and musicUrl != ''"> and music_url = #{musicUrl}</if>
|
|
|
<if test="musicVolume != null "> and music_volume = #{musicVolume}</if>
|
|
|
<if test="bgmusicUrl != null and bgmusicUrl != ''"> and bgmusic_url = #{bgmusicUrl}</if>
|
|
|
<if test="bgmusicVolume != null "> and bgmusic_volume = #{bgmusicVolume}</if>
|
|
|
<if test="newMusicUrl != null and newMusicUrl != ''"> and new_music_url = #{newMusicUrl}</if>
|
|
|
</where>
|
|
|
+ order by create_time desc
|
|
|
</select>
|
|
|
|
|
|
<select id="getListByIds" resultMap="LabAudioSynthesisResult">
|
|
|
@@ -55,6 +58,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
<if test="riskPlanId != null">risk_plan_id,</if>
|
|
|
|
|
|
+ <if test="sceneType != null">scene_type,</if>
|
|
|
+
|
|
|
<if test="musicUrl != null">music_url,</if>
|
|
|
|
|
|
<if test="musicVolume != null">music_volume,</if>
|
|
|
@@ -74,6 +79,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="riskPlanId != null">#{riskPlanId},</if>
|
|
|
+ <if test="sceneType != null">#{sceneType},</if>
|
|
|
<if test="musicUrl != null">#{musicUrl},</if>
|
|
|
<if test="musicVolume != null">#{musicVolume},</if>
|
|
|
<if test="bgmusicUrl != null">#{bgmusicUrl},</if>
|
|
|
@@ -89,6 +95,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
update lab_audio_synthesis
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
<if test="riskPlanId != null">risk_plan_id = #{riskPlanId},</if>
|
|
|
+ <if test="sceneType != null">scene_type = #{sceneType},</if>
|
|
|
<if test="musicUrl != null">music_url = #{musicUrl},</if>
|
|
|
<if test="musicVolume != null">music_volume = #{musicVolume},</if>
|
|
|
<if test="bgmusicUrl != null">bgmusic_url = #{bgmusicUrl},</if>
|