|
@@ -23,13 +23,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="soundUrl" column="sound_url" />
|
|
<result property="soundUrl" column="sound_url" />
|
|
|
<result property="soundStatus" column="sound_status" />
|
|
<result property="soundStatus" column="sound_status" />
|
|
|
<result property="treatmentTargetTag" column="treatment_target_tag" />
|
|
<result property="treatmentTargetTag" column="treatment_target_tag" />
|
|
|
|
|
+ <result property="cateId" column="cate_id" />
|
|
|
|
|
+ <result property="subTitle" column="sub_title" />
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
|
|
<sql id="selectFsProjectVo">
|
|
<sql id="selectFsProjectVo">
|
|
|
select id, project_name, day_name, create_time, update_time, meridians_img_url
|
|
select id, project_name, day_name, create_time, update_time, meridians_img_url
|
|
|
, first_field, second_field, third_field, fourth_field, first_content
|
|
, first_field, second_field, third_field, fourth_field, first_content
|
|
|
, second_content, third_content, fourth_content,video_url
|
|
, second_content, third_content, fourth_content,video_url
|
|
|
- , sound_url, sound_status, treatment_target_tag from fs_project
|
|
|
|
|
|
|
+ , sound_url, sound_status, treatment_target_tag, cate_id, sub_title from fs_project
|
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
|
|
<select id="selectFsProjectList" parameterType="FsProject" resultMap="FsProjectResult">
|
|
<select id="selectFsProjectList" parameterType="FsProject" resultMap="FsProjectResult">
|
|
@@ -74,6 +76,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="soundUrl != null">sound_url,</if>
|
|
<if test="soundUrl != null">sound_url,</if>
|
|
|
<if test="soundStatus != null">sound_status,</if>
|
|
<if test="soundStatus != null">sound_status,</if>
|
|
|
<if test="treatmentTargetTag != null">treatment_target_tag,</if>
|
|
<if test="treatmentTargetTag != null">treatment_target_tag,</if>
|
|
|
|
|
+ <if test="cateId != null">cate_id,</if>
|
|
|
|
|
+ <if test="subTitle != null">sub_title,</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="projectName != null">#{projectName},</if>
|
|
<if test="projectName != null">#{projectName},</if>
|
|
@@ -93,6 +97,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="soundUrl != null">#{soundUrl},</if>
|
|
<if test="soundUrl != null">#{soundUrl},</if>
|
|
|
<if test="soundStatus != null">#{soundStatus},</if>
|
|
<if test="soundStatus != null">#{soundStatus},</if>
|
|
|
<if test="treatmentTargetTag != null">#{treatmentTargetTag},</if>
|
|
<if test="treatmentTargetTag != null">#{treatmentTargetTag},</if>
|
|
|
|
|
+ <if test="cateId != null">#{cateId},</if>
|
|
|
|
|
+ <if test="subTitle != null">#{subTitle},</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
|
@@ -116,6 +122,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="soundUrl != null">sound_url = #{soundUrl},</if>
|
|
<if test="soundUrl != null">sound_url = #{soundUrl},</if>
|
|
|
<if test="soundStatus != null">sound_status = #{soundStatus},</if>
|
|
<if test="soundStatus != null">sound_status = #{soundStatus},</if>
|
|
|
<if test="treatmentTargetTag != null">treatment_target_tag = #{treatmentTargetTag},</if>
|
|
<if test="treatmentTargetTag != null">treatment_target_tag = #{treatmentTargetTag},</if>
|
|
|
|
|
+ <if test="cateId != null">cate_id = #{cateId},</if>
|
|
|
|
|
+ <if test="subTitle != null">sub_title = #{subTitle},</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
where id = #{id}
|
|
where id = #{id}
|
|
|
</update>
|
|
</update>
|