|
|
|
|
@ -26,6 +26,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<result property="updateBy" column="update_by" />
|
|
|
|
|
<result property="updateTime" column="update_time" />
|
|
|
|
|
<result property="remark" column="remark" />
|
|
|
|
|
<result property="technologyInfo" column="technology_info" />
|
|
|
|
|
<result property="effectContent" column="effect_content" />
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<resultMap type="WxMode" id="WxModeNewResult" extends="WxModeResult">
|
|
|
|
|
@ -33,7 +35,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<sql id="selectWxModeVo">
|
|
|
|
|
select id, instrument_type, instrument_model, mode_name, mode_desc, mode_banner, mode_video, mode_type, mode_class, is_cabin_mode, is_custom_mode, mode_time, preparation_video, began_video, pause_video, status, create_by, create_time, update_by, update_time, remark from wx_mode
|
|
|
|
|
select id, instrument_type, instrument_model, mode_name, mode_desc, mode_banner, mode_video, mode_type, mode_class, is_cabin_mode, is_custom_mode, mode_time, preparation_video, began_video, pause_video, status, create_by, create_time, update_by, update_time, remark, technology_info, effect_content from wx_mode
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
<select id="selectWxModeList" parameterType="WxMode" resultMap="WxModeResult">
|
|
|
|
|
@ -54,6 +56,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="beganVideo != null and beganVideo != ''"> and began_video = #{beganVideo}</if>
|
|
|
|
|
<if test="pauseVideo != null and pauseVideo != ''"> and pause_video = #{pauseVideo}</if>
|
|
|
|
|
<if test="status != null "> and status = #{status}</if>
|
|
|
|
|
<if test="technologyInfo != null "> and technology_info = #{technologyInfo}</if>
|
|
|
|
|
<if test="effectContent != null "> and effect_content = #{effectContent}</if>
|
|
|
|
|
</where>
|
|
|
|
|
order by create_time desc
|
|
|
|
|
</select>
|
|
|
|
|
@ -97,6 +101,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="updateBy != null">update_by,</if>
|
|
|
|
|
<if test="updateTime != null">update_time,</if>
|
|
|
|
|
<if test="remark != null">remark,</if>
|
|
|
|
|
<if test="technologyInfo != null "> technology_info</if>
|
|
|
|
|
<if test="effectContent != null "> effect_content</if>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="instrumentType != null">#{instrumentType},</if>
|
|
|
|
|
@ -119,6 +125,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
|
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
|
|
|
<if test="remark != null">#{remark},</if>
|
|
|
|
|
<if test="technologyInfo != null "> #{technologyInfo}</if>
|
|
|
|
|
<if test="effectContent != null "> #{effectContent}</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
@ -145,6 +153,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
|
|
<if test="remark != null">remark = #{remark},</if>
|
|
|
|
|
<if test="technologyInfo != null "> technology_info = #{technologyInfo}, </if>
|
|
|
|
|
<if test="effectContent != null "> effect_content = #{effectContent}, </if>
|
|
|
|
|
</trim>
|
|
|
|
|
where id = #{id}
|
|
|
|
|
</update>
|
|
|
|
|
|