|
|
|
|
@ -27,6 +27,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<result property="remark" column="remark" />
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<resultMap type="WxMode" id="WxModeNewResult" extends="WxModeResult">
|
|
|
|
|
<result property="isNew" column="is_new" />
|
|
|
|
|
</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, mode_time, preparation_video, began_video, pause_video, status, create_by, create_time, update_by, update_time, remark from wx_mode
|
|
|
|
|
</sql>
|
|
|
|
|
@ -51,9 +55,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
</where>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="selectListByInstrumentId" parameterType="Long" resultMap="WxModeResult">
|
|
|
|
|
<select id="selectListByInstrumentId" parameterType="Long" resultMap="WxModeNewResult">
|
|
|
|
|
SELECT
|
|
|
|
|
DISTINCT mo.*, imo.mode_sort
|
|
|
|
|
DISTINCT mo.*, imo.mode_sort, imo.is_new
|
|
|
|
|
FROM
|
|
|
|
|
wx_mode mo
|
|
|
|
|
LEFT JOIN `wx_instrument_mode` imo ON imo.mode_id = mo.id
|
|
|
|
|
|