|
@@ -10,6 +10,7 @@
|
|
|
<result property="aliasName" column="alias_name" />
|
|
|
<result property="address" column="address_" />
|
|
|
<result property="isOnline" column="is_online" />
|
|
|
+ <result property="companyId" column="company_id" />
|
|
|
<result property="unlockPassword" column="unlock_password" />
|
|
|
<result property="codeAddress" column="code_address" />
|
|
|
<result property="ipAddress" column="ip_address" />
|
|
@@ -30,7 +31,7 @@
|
|
|
-->
|
|
|
<![CDATA[
|
|
|
insert into base_device_info
|
|
|
- (id_,header_,device_no,alias_name,address_,is_online,unlock_password,code_address,ip_address,port_,type_,is_auto_update,del_flag,create_by,create_time,update_by,update_time)
|
|
|
+ (id_,header_,device_no,alias_name,address_,is_online,company_id,unlock_password,code_address,ip_address,port_,type_,is_auto_update,del_flag,create_by,create_time,update_by,update_time)
|
|
|
values
|
|
|
(
|
|
|
#{id,jdbcType=VARCHAR}
|
|
@@ -40,6 +41,7 @@
|
|
|
,#{address,jdbcType=VARCHAR}
|
|
|
,#{isOnline,jdbcType= NUMERIC }
|
|
|
,#{unlockPassword,jdbcType=VARCHAR}
|
|
|
+,#{companyId,jdbcType=VARCHAR}
|
|
|
,#{codeAddress,jdbcType=VARCHAR}
|
|
|
,#{ipAddress,jdbcType=VARCHAR}
|
|
|
,#{port,jdbcType=VARCHAR}
|
|
@@ -74,6 +76,9 @@
|
|
|
<if test="isOnline!=null">
|
|
|
is_online=#{isOnline,jdbcType= NUMERIC },
|
|
|
</if>
|
|
|
+ <if test="companyId!=null">
|
|
|
+ company_id=#{companyId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="unlockPassword!=null">
|
|
|
unlock_password=#{unlockPassword,jdbcType=VARCHAR},
|
|
|
</if>
|
|
@@ -112,7 +117,7 @@
|
|
|
</update>
|
|
|
<select id="get" parameterType="string" resultMap="DeviceInfoMap">
|
|
|
select
|
|
|
-id_, header_,device_no,alias_name,address_,is_online,unlock_password,code_address,ip_address,port_,type_,is_auto_update,del_flag,create_by,create_time,update_by,update_time from base_device_info where id_=#{0}
|
|
|
+id_, header_,device_no,alias_name,address_,is_online,company_id,unlock_password,code_address,ip_address,port_,type_,is_auto_update,del_flag,create_by,create_time,update_by,update_time from base_device_info where id_=#{0}
|
|
|
</select>
|
|
|
<select id="exist" parameterType="string" resultType="int">
|
|
|
select count(*) from base_device_info where id_=#{0} and del_flag=false
|
|
@@ -135,6 +140,9 @@ id_, header_,device_no,alias_name,address_,is_online,unlock_password,code_addres
|
|
|
<if test="searchParams.address != null">
|
|
|
and address_ like #{searchParams.address}
|
|
|
</if>
|
|
|
+ <if test="searchParams.companyId != null">
|
|
|
+ and company_id = #{searchParams.companyId}
|
|
|
+ </if>
|
|
|
</where>
|
|
|
<foreach item="sort" collection="sortList" open="order by" separator=",">
|
|
|
${sort.name} ${sort.order}
|