|
|
@ -14,23 +14,51 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<result property="updateBy" column="update_by" />
|
|
|
|
<result property="updateBy" column="update_by" />
|
|
|
|
<result property="updateTime" column="update_time" />
|
|
|
|
<result property="updateTime" column="update_time" />
|
|
|
|
<result property="remark" column="remark" />
|
|
|
|
<result property="remark" column="remark" />
|
|
|
|
|
|
|
|
<result property="posName" column="pos_name"/>
|
|
|
|
|
|
|
|
<result property="phoneNumber" column="phone_number"/>
|
|
|
|
|
|
|
|
<result property="linkMan" column="link_man"/>
|
|
|
|
|
|
|
|
<result property="city" column="city"/>
|
|
|
|
|
|
|
|
<result property="address" column="address"/>
|
|
|
|
</resultMap>
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
|
|
<sql id="selectBNetVo">
|
|
|
|
<sql id="selectBNetVo">
|
|
|
|
select id,net_name, shanghu_id, wifi_name, wifi_pass, create_by, create_time, update_by, update_time, remark from b_net
|
|
|
|
select bn.id,
|
|
|
|
|
|
|
|
bn.net_name,
|
|
|
|
|
|
|
|
bn.shanghu_id,
|
|
|
|
|
|
|
|
bn.wifi_name,
|
|
|
|
|
|
|
|
bn.wifi_pass,
|
|
|
|
|
|
|
|
bn.create_by,
|
|
|
|
|
|
|
|
bn.create_time,
|
|
|
|
|
|
|
|
bn.update_by,
|
|
|
|
|
|
|
|
bn.update_time,
|
|
|
|
|
|
|
|
bn.remark,
|
|
|
|
|
|
|
|
bs.pos_name,
|
|
|
|
|
|
|
|
bs.phone_number,
|
|
|
|
|
|
|
|
bs.link_man,
|
|
|
|
|
|
|
|
bs.city,
|
|
|
|
|
|
|
|
bs.address
|
|
|
|
|
|
|
|
from b_net bn
|
|
|
|
|
|
|
|
left join b_shanghu bs on bn.shanghu_id = bs.id
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectBNetList" parameterType="BNet" resultMap="BNetResult">
|
|
|
|
<select id="selectBNetList" parameterType="BNet" resultMap="BNetResult">
|
|
|
|
<include refid="selectBNetVo"/>
|
|
|
|
<include refid="selectBNetVo"/>
|
|
|
|
<where>
|
|
|
|
<where>
|
|
|
|
<if test="netName != null and netName != ''">and net_name like concat('%', #{netName}, '%')</if>
|
|
|
|
<if test="netName != null and netName != ''">and bn.net_name like concat('%', #{netName}, '%')</if>
|
|
|
|
<if test="shanghuId != null and shanghuId != ''">and shanghu_id = #{shanghuId}</if>
|
|
|
|
<if test="shanghuId != null and shanghuId != ''">and bn.shanghu_id = #{shanghuId}</if>
|
|
|
|
|
|
|
|
<if test="posName != null and posName != ''">and bs.pos_name like concat('%', #{posName}, '%')</if>
|
|
|
|
|
|
|
|
<if test="phoneNumber != null and phoneNumber != ''">and bs.phone_number like concat('%', #{phoneNumber},
|
|
|
|
|
|
|
|
'%')
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="linkMan != null and linkMan != ''">and bs.link_man like concat('%', #{linkMan}, '%')</if>
|
|
|
|
|
|
|
|
<if test="city != null and city != ''">and bs.city like concat('%', #{city}, '%')</if>
|
|
|
|
|
|
|
|
<if test="address != null and address != ''">and bs.address like concat('%', #{address}, '%')</if>
|
|
|
|
</where>
|
|
|
|
</where>
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectBNetById" parameterType="Long" resultMap="BNetResult">
|
|
|
|
<select id="selectBNetById" parameterType="Long" resultMap="BNetResult">
|
|
|
|
<include refid="selectBNetVo"/>
|
|
|
|
<include refid="selectBNetVo"/>
|
|
|
|
where id = #{id}
|
|
|
|
where bn.id = #{id}
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="findByShanghuId" resultType="com.ruoyi.system.domain.BNet">
|
|
|
|
<select id="findByShanghuId" resultType="com.ruoyi.system.domain.BNet">
|
|
|
|