|
|
@@ -16,10 +16,11 @@ |
|
|
<result column="first_hb_time" jdbcType="TIMESTAMP" property="firstHbTime"/> |
|
|
<result column="first_hb_time" jdbcType="TIMESTAMP" property="firstHbTime"/> |
|
|
<result column="last_hb_time" jdbcType="TIMESTAMP" property="lastHbTime"/> |
|
|
<result column="last_hb_time" jdbcType="TIMESTAMP" property="lastHbTime"/> |
|
|
<result column="hb_cmd" jdbcType="INTEGER" property="hbCmd"/> |
|
|
<result column="hb_cmd" jdbcType="INTEGER" property="hbCmd"/> |
|
|
|
|
|
<result column="config" jdbcType="VARCHAR" property="config"/> |
|
|
</resultMap> |
|
|
</resultMap> |
|
|
|
|
|
|
|
|
<sql id="allColumns"> |
|
|
<sql id="allColumns"> |
|
|
`id`, `tenant_id`, `device_id`, `type`, `status`, `location`, `name`, `version`, `create_date`, `update_date`, `online_status`, `first_hb_time`, `last_hb_time`, `hb_cmd` |
|
|
|
|
|
|
|
|
`id`, `tenant_id`, `device_id`, `type`, `status`, `location`, `name`, `version`, `create_date`, `update_date`, `online_status`, `first_hb_time`, `last_hb_time`, `hb_cmd`, `config` |
|
|
</sql> |
|
|
</sql> |
|
|
|
|
|
|
|
|
<sql id="dynamicWhereConditions"> |
|
|
<sql id="dynamicWhereConditions"> |
|
|
@@ -82,6 +83,10 @@ |
|
|
and `hb_cmd` = #{hbCmd} |
|
|
and `hb_cmd` = #{hbCmd} |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
|
|
|
|
|
|
<if test=" null != config "> |
|
|
|
|
|
and `config` = #{config} |
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<if test=" null != ids "> |
|
|
<if test=" null != ids "> |
|
|
and id in |
|
|
and id in |
|
|
|