|
|
|
@ -1,42 +1,47 @@
|
|
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
|
|
<!DOCTYPE mapper
|
|
|
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
|
<mapper namespace="com.ruoyi.portal.mapper.HwWebMapper">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<resultMap type="HwWeb" id="HwWebResult">
|
|
|
|
|
<result property="webId" column="web_id" />
|
|
|
|
|
<result property="webJson" column="web_json" />
|
|
|
|
|
<result property="webJsonString" column="web_json_string" />
|
|
|
|
|
<result property="webCode" column="web_code" />
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<sql id="selectHwWebVo">
|
|
|
|
|
select web_id, web_json, web_json_string from hw_web
|
|
|
|
|
select web_id, web_json, web_json_string, web_code from hw_web
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
<select id="selectHwWebList" parameterType="HwWeb" resultMap="HwWebResult">
|
|
|
|
|
<include refid="selectHwWebVo"/>
|
|
|
|
|
<where>
|
|
|
|
|
<where>
|
|
|
|
|
<if test="webId != null "> and web_id = #{webId}</if>
|
|
|
|
|
<if test="webJson != null and webJson != ''"> and web_json = #{webJson}</if>
|
|
|
|
|
<if test="webJsonString != null and webJsonString != ''"> and web_json_string = #{webJsonString}</if>
|
|
|
|
|
<if test="webCode != null "> and web_code = #{webCode}</if>
|
|
|
|
|
</where>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="selectHwWebByWebId" parameterType="Long" resultMap="HwWebResult">
|
|
|
|
|
|
|
|
|
|
<select id="selectHwWebByWebcode" parameterType="Long" resultMap="HwWebResult">
|
|
|
|
|
<include refid="selectHwWebVo"/>
|
|
|
|
|
where web_id = #{webId}
|
|
|
|
|
where web_code = #{webCode}
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<insert id="insertHwWeb" parameterType="HwWeb" useGeneratedKeys="true" keyProperty="webId">
|
|
|
|
|
insert into hw_web
|
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="webJson != null">web_json,</if>
|
|
|
|
|
<if test="webJsonString != null">web_json_string,</if>
|
|
|
|
|
</trim>
|
|
|
|
|
<if test="webCode != null">web_code,</if>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="webJson != null">#{webJson},</if>
|
|
|
|
|
<if test="webJsonString != null">#{webJsonString},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
<if test="webCode != null">#{webCode},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
<update id="updateHwWeb" parameterType="HwWeb">
|
|
|
|
@ -44,8 +49,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
|
|
<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>
|
|
|
|
|
</trim>
|
|
|
|
|
where web_id = #{webId}
|
|
|
|
|
where web_code = #{webCode}
|
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
<delete id="deleteHwWebByWebId" parameterType="Long">
|
|
|
|
@ -53,7 +59,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
<delete id="deleteHwWebByWebIds" parameterType="String">
|
|
|
|
|
delete from hw_web where web_id in
|
|
|
|
|
delete from hw_web where web_id in
|
|
|
|
|
<foreach item="webId" collection="array" open="(" separator="," close=")">
|
|
|
|
|
#{webId}
|
|
|
|
|
</foreach>
|
|
|
|
|