|
|
@@ -9,6 +9,7 @@
|
|
|
<result property="name" column="name"/>
|
|
|
<result property="factory" column="factory"/>
|
|
|
<result property="type" column="type" typeHandler="org.apache.ibatis.type.EnumOrdinalTypeHandler"/>
|
|
|
+ <result property="subType" column="sub_type"/>
|
|
|
<result property="pcType" column="pc_type"/>
|
|
|
<result property="macAdd" column="mac_add"/>
|
|
|
<result property="subjectId" column="subject_id"/>
|
|
|
@@ -57,6 +58,7 @@
|
|
|
he.name,
|
|
|
he.factory,
|
|
|
he.type,
|
|
|
+ he.sub_type,
|
|
|
he.is_pcfire,
|
|
|
he.pc_type,
|
|
|
he.mac_add,
|
|
|
@@ -395,6 +397,7 @@
|
|
|
<if test="name != null">name,</if>
|
|
|
<if test="factory != null">factory,</if>
|
|
|
<if test="type != null">type,</if>
|
|
|
+ <if test="subType != null">sub_type,</if>
|
|
|
<if test="pcType != null">pc_type,</if>
|
|
|
<if test="macAdd != null">mac_add,</if>
|
|
|
<if test="subjectId != null">subject_id,</if>
|
|
|
@@ -432,6 +435,7 @@
|
|
|
<if test="name != null">#{name},</if>
|
|
|
<if test="factory != null">#{factory},</if>
|
|
|
<if test="type != null">#{type},</if>
|
|
|
+ <if test="subType != null">#{subType},</if>
|
|
|
<if test="pcType != null">#{pcType},</if>
|
|
|
<if test="macAdd != null">#{macAdd},</if>
|
|
|
<if test="subjectId != null">#{subjectId},</if>
|
|
|
@@ -472,6 +476,7 @@
|
|
|
<if test="name != null">name = #{name},</if>
|
|
|
<if test="factory != null">factory = #{factory},</if>
|
|
|
<if test="type != null">type = #{type},</if>
|
|
|
+ <if test="subType != null">sub_type = #{subType},</if>
|
|
|
<if test="pcType != null">pc_type = #{pcType},</if>
|
|
|
<if test="macAdd != null">mac_add = #{macAdd},</if>
|
|
|
<if test="subjectId != null">subject_id = #{subjectId},</if>
|
|
|
@@ -601,7 +606,7 @@
|
|
|
where lh.ip_address is not null
|
|
|
and lh.subject_id = #{subId}
|
|
|
and lh.type = #{type}
|
|
|
- and lh.sub_type in #{subType}
|
|
|
+ and FIND_IN_SET(#{subType},lh.sub_type)
|
|
|
order by create_time desc
|
|
|
limit 1
|
|
|
</select>
|