|
|
|
|
@ -10,11 +10,12 @@
|
|
|
|
|
<result property="webJsonString" column="web_json_string" />
|
|
|
|
|
<result property="webCode" column="web_code" />
|
|
|
|
|
<result property="deviceId" column="device_id" />
|
|
|
|
|
<result property="typeId" column="typeId" />
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<sql id="selectHwWebVo">
|
|
|
|
|
select web_id, web_json, web_json_string, web_code,
|
|
|
|
|
device_id
|
|
|
|
|
device_id,typeId
|
|
|
|
|
from hw_web1
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
@ -26,6 +27,7 @@
|
|
|
|
|
<if test="webJsonString != null and webJsonString != ''"> and web_json_string = #{webJsonString}</if>
|
|
|
|
|
<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>
|
|
|
|
|
</where>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
@ -41,12 +43,14 @@
|
|
|
|
|
<if test="webJsonString != null">web_json_string,</if>
|
|
|
|
|
<if test="webCode != null">web_code,</if>
|
|
|
|
|
<if test="deviceId != null">device_id,</if>
|
|
|
|
|
<if test="typeId != null">typeId,</if>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="webJson != null">#{webJson},</if>
|
|
|
|
|
<if test="webJsonString != null">#{webJsonString},</if>
|
|
|
|
|
<if test="webCode != null">#{webCode},</if>
|
|
|
|
|
<if test="deviceId != null">#{deviceId},</if>
|
|
|
|
|
<if test="typeId != null">#{typeId},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
@ -56,9 +60,12 @@
|
|
|
|
|
<if test="webJson != null">web_json = #{webJson},</if>
|
|
|
|
|
<if test="webJsonString != null">web_json_string = #{webJsonString},</if>
|
|
|
|
|
<!-- <if test="webCode != null">web_code = #{webCode},</if>-->
|
|
|
|
|
<if test="deviceId != null">device_id = #{deviceId},</if>
|
|
|
|
|
<!-- <if test="deviceId != null">device_id = #{deviceId},</if>-->
|
|
|
|
|
<!-- <if test="typeId != null">typeId = #{typeId},</if>-->
|
|
|
|
|
</trim>
|
|
|
|
|
where web_code = #{webCode}
|
|
|
|
|
and device_id = #{deviceId}
|
|
|
|
|
and typeId = #{typeId}
|
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
<delete id="deleteHwWebByWebId" parameterType="Long">
|
|
|
|
|
|