|
|
@@ -10,6 +10,7 @@ |
|
|
<result column="model" jdbcType="VARCHAR" property="model"/> |
|
|
<result column="model" jdbcType="VARCHAR" property="model"/> |
|
|
<result column="protocol" jdbcType="INTEGER" property="protocol"/> |
|
|
<result column="protocol" jdbcType="INTEGER" property="protocol"/> |
|
|
<result column="bandrate" jdbcType="INTEGER" property="bandrate"/> |
|
|
<result column="bandrate" jdbcType="INTEGER" property="bandrate"/> |
|
|
|
|
|
<result column="last_online_time" jdbcType="TIMESTAMP" property="lastOnlineTime"/> |
|
|
<result column="online_status" jdbcType="INTEGER" property="onlineStatus"/> |
|
|
<result column="online_status" jdbcType="INTEGER" property="onlineStatus"/> |
|
|
<result column="config" jdbcType="VARCHAR" property="config"/> |
|
|
<result column="config" jdbcType="VARCHAR" property="config"/> |
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime"/> |
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime"/> |
|
|
@@ -17,7 +18,7 @@ |
|
|
</resultMap> |
|
|
</resultMap> |
|
|
|
|
|
|
|
|
<sql id="allColumns"> |
|
|
<sql id="allColumns"> |
|
|
`id`,`tenant_id`,`address`,`brand`,`model`,`place`,`protocol`,`bandrate`,`online_status`,`config`,`create_time`,`update_time` |
|
|
|
|
|
|
|
|
`id`,`tenant_id`,`address`,`brand`,`model`,`place`,`protocol`,`bandrate`,`last_online_time`,`online_status`,`config`,`create_time`,`update_time` |
|
|
</sql> |
|
|
</sql> |
|
|
|
|
|
|
|
|
<sql id="dynamicWhereConditions"> |
|
|
<sql id="dynamicWhereConditions"> |
|
|
@@ -31,8 +32,8 @@ |
|
|
and `tenant_id` = #{tenantId} |
|
|
and `tenant_id` = #{tenantId} |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
|
|
|
<if test=" null != address and '' != address "> |
|
|
|
|
|
and `address` like concat('%', #{address},'%') |
|
|
|
|
|
|
|
|
<if test=" null != address"> |
|
|
|
|
|
and `address` = #{address} |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
|
|
|
<if test=" null != brand and '' != brand "> |
|
|
<if test=" null != brand and '' != brand "> |
|
|
@@ -47,8 +48,8 @@ |
|
|
and `model` = #{model} |
|
|
and `model` = #{model} |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
|
|
|
<if test=" null != tenantId "> |
|
|
|
|
|
and `online` = #{online} |
|
|
|
|
|
|
|
|
<if test=" null != onlineStatus "> |
|
|
|
|
|
and `online_status` = #{onlineStatus} |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
|
|
|
<if test=" null != ids "> |
|
|
<if test=" null != ids "> |
|
|
|