|
|
|
|
@ -12,12 +12,12 @@
|
|
|
|
|
<result property="deviceId" column="device_id" />
|
|
|
|
|
<result property="typeId" column="typeId" />
|
|
|
|
|
<result property="isDelete" column="is_delete" />
|
|
|
|
|
<result property="webJsonStringEnglish" column="web_json_string_english" />
|
|
|
|
|
<result property="webJsonEnglish" column="web_json_english" />
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<sql id="selectHwWebVo">
|
|
|
|
|
select web_id, web_json, web_json_string, web_code,
|
|
|
|
|
device_id, typeId, web_json_string_english,
|
|
|
|
|
device_id, typeId, web_json_english,
|
|
|
|
|
is_delete
|
|
|
|
|
from hw_web1
|
|
|
|
|
</sql>
|
|
|
|
|
@ -32,7 +32,7 @@
|
|
|
|
|
<if test="webCode != null "> and web_code = #{webCode}</if>
|
|
|
|
|
<if test="deviceId != null "> and device_id = #{deviceId}</if>
|
|
|
|
|
<if test="typeId != null "> and typeId = #{typeId}</if>
|
|
|
|
|
<if test="webJsonStringEnglish != null "> and web_json_string_english = #{webJsonStringEnglish}</if>
|
|
|
|
|
<if test="webJsonEnglish != null "> and web_json_english = #{webJsonEnglish}</if>
|
|
|
|
|
</where>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
@ -56,7 +56,7 @@
|
|
|
|
|
<if test="webCode != null">web_code,</if>
|
|
|
|
|
<if test="deviceId != null">device_id,</if>
|
|
|
|
|
<if test="typeId != null">typeId,</if>
|
|
|
|
|
<if test="webJsonStringEnglish != null">web_json_string_english,</if>
|
|
|
|
|
<if test="webJsonEnglish != null">web_json_english,</if>
|
|
|
|
|
is_delete,
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
@ -65,7 +65,7 @@
|
|
|
|
|
<if test="webCode != null">#{webCode},</if>
|
|
|
|
|
<if test="deviceId != null">#{deviceId},</if>
|
|
|
|
|
<if test="typeId != null">#{typeId},</if>
|
|
|
|
|
<if test="webJsonStringEnglish != null">#{webJsonStringEnglish},</if>
|
|
|
|
|
<if test="webJsonEnglish != null">#{webJsonEnglish},</if>
|
|
|
|
|
<choose>
|
|
|
|
|
<when test="isDelete != null and isDelete != ''">#{isDelete},</when>
|
|
|
|
|
<otherwise>'0',</otherwise>
|
|
|
|
|
@ -81,7 +81,7 @@
|
|
|
|
|
<!-- <if test="webCode != null">web_code = #{webCode},</if>-->
|
|
|
|
|
<!-- <if test="deviceId != null">device_id = #{deviceId},</if>-->
|
|
|
|
|
<!-- <if test="typeId != null">typeId = #{typeId},</if>-->
|
|
|
|
|
<if test="webJsonStringEnglish != null">web_json_string_english = #{webJsonStringEnglish},</if>
|
|
|
|
|
<if test="webJsonEnglish != null">web_json_english = #{webJsonEnglish},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
where web_code = #{webCode}
|
|
|
|
|
and device_id = #{deviceId}
|
|
|
|
|
|