|
|
|
@ -1,45 +1,61 @@
|
|
|
|
|
<?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.system.mapper.BNetHistoryMapper">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<resultMap type="BNetHistory" id="BNetHistoryResult">
|
|
|
|
|
<result property="id" column="id" />
|
|
|
|
|
<result property="isTrue" column="is_true" />
|
|
|
|
|
<result property="netId" column="net_id" />
|
|
|
|
|
<result property="netName" column="net_name" />
|
|
|
|
|
<result property="wifiName" column="wifi_name" />
|
|
|
|
|
<result property="wifiPass" column="wifi_pass" />
|
|
|
|
|
<result property="createBy" column="create_by" />
|
|
|
|
|
<result property="createTime" column="create_time" />
|
|
|
|
|
<result property="updateBy" column="update_by" />
|
|
|
|
|
<result property="updateTime" column="update_time" />
|
|
|
|
|
<result property="remark" column="remark" />
|
|
|
|
|
<result property="id" column="id"/>
|
|
|
|
|
<result property="isTrue" column="is_true"/>
|
|
|
|
|
<result property="shanghuId" column="shanghu_id"/>
|
|
|
|
|
<result property="netId" column="net_id"/>
|
|
|
|
|
<result property="netName" column="net_name"/>
|
|
|
|
|
<result property="wifiName" column="wifi_name"/>
|
|
|
|
|
<result property="wifiPass" column="wifi_pass"/>
|
|
|
|
|
<result property="createBy" column="create_by"/>
|
|
|
|
|
<result property="createTime" column="create_time"/>
|
|
|
|
|
<result property="updateBy" column="update_by"/>
|
|
|
|
|
<result property="updateTime" column="update_time"/>
|
|
|
|
|
<result property="remark" column="remark"/>
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<sql id="selectBNetHistoryVo">
|
|
|
|
|
select id, is_true, net_id, net_name, wifi_name, wifi_pass, create_by, create_time, update_by, update_time, remark from b_net_history
|
|
|
|
|
select id,
|
|
|
|
|
is_true,
|
|
|
|
|
shanghu_id,
|
|
|
|
|
net_id,
|
|
|
|
|
net_name,
|
|
|
|
|
wifi_name,
|
|
|
|
|
wifi_pass,
|
|
|
|
|
create_by,
|
|
|
|
|
create_time,
|
|
|
|
|
update_by,
|
|
|
|
|
update_time,
|
|
|
|
|
remark
|
|
|
|
|
from b_net_history
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
<select id="selectBNetHistoryList" parameterType="BNetHistory" resultMap="BNetHistoryResult">
|
|
|
|
|
<include refid="selectBNetHistoryVo"/>
|
|
|
|
|
<where>
|
|
|
|
|
<if test="isTrue != null "> and is_true = #{isTrue}</if>
|
|
|
|
|
<if test="netName != null and netName != ''"> and net_name like concat('%', #{netName}, '%')</if>
|
|
|
|
|
<where>
|
|
|
|
|
<if test="isTrue != null ">and is_true = #{isTrue}</if>
|
|
|
|
|
<if test="shanghuId != null ">and shanghu_id = #{shanghuId}</if>
|
|
|
|
|
<if test="netName != null and netName != ''">and net_name like concat('%', #{netName}, '%')</if>
|
|
|
|
|
</where>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectBNetHistoryById" parameterType="Long" resultMap="BNetHistoryResult">
|
|
|
|
|
<include refid="selectBNetHistoryVo"/>
|
|
|
|
|
where id = #{id}
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<insert id="insertBNetHistory" parameterType="com.ruoyi.system.domain.BNetHistory" useGeneratedKeys="true" keyProperty="id">
|
|
|
|
|
|
|
|
|
|
<insert id="insertBNetHistory" parameterType="com.ruoyi.system.domain.BNetHistory" useGeneratedKeys="true"
|
|
|
|
|
keyProperty="id">
|
|
|
|
|
insert into b_net_history
|
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="isTrue != null">is_true,</if>
|
|
|
|
|
<if test="netId != null">net_id,</if>
|
|
|
|
|
<if test="shanghuId != null">shanghu_id,</if>
|
|
|
|
|
<if test="netName != null and netName != ''">net_name,</if>
|
|
|
|
|
<if test="wifiName != null and wifiName != ''">wifi_name,</if>
|
|
|
|
|
<if test="wifiPass != null and wifiPass != ''">wifi_pass,</if>
|
|
|
|
@ -48,10 +64,11 @@ 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>
|
|
|
|
|
</trim>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="isTrue != null">#{isTrue},</if>
|
|
|
|
|
<if test="netId != null">#{netId},</if>
|
|
|
|
|
<if test="shanghuId != null">#{shanghuId},</if>
|
|
|
|
|
<if test="netName != null and netName != ''">#{netName},</if>
|
|
|
|
|
<if test="wifiName != null and wifiName != ''">#{wifiName},</if>
|
|
|
|
|
<if test="wifiPass != null and wifiPass != ''">#{wifiPass},</if>
|
|
|
|
@ -60,7 +77,7 @@ 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>
|
|
|
|
|
</trim>
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
<update id="updateBNetHistory" parameterType="BNetHistory">
|
|
|
|
@ -68,6 +85,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
|
|
<if test="isTrue != null">is_true = #{isTrue},</if>
|
|
|
|
|
<if test="netId != null">net_id = #{netId},</if>
|
|
|
|
|
<if test="shanghuId != null">shanghu_id = #{shanghuId},</if>
|
|
|
|
|
<if test="netName != null and netName != ''">net_name = #{netName},</if>
|
|
|
|
|
<if test="wifiName != null and wifiName != ''">wifi_name = #{wifiName},</if>
|
|
|
|
|
<if test="wifiPass != null and wifiPass != ''">wifi_pass = #{wifiPass},</if>
|
|
|
|
@ -81,11 +99,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
<delete id="deleteBNetHistoryById" parameterType="Long">
|
|
|
|
|
delete from b_net_history where id = #{id}
|
|
|
|
|
delete
|
|
|
|
|
from b_net_history
|
|
|
|
|
where id = #{id}
|
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
<delete id="deleteBNetHistoryByIds" parameterType="String">
|
|
|
|
|
delete from b_net_history where id in
|
|
|
|
|
delete from b_net_history where id in
|
|
|
|
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
|
|
|
|
#{id}
|
|
|
|
|
</foreach>
|
|
|
|
|