Просмотр исходного кода

[设备][修改]:增加设备配置字段

release_toaliyun_real
hupeng 7 лет назад
Родитель
Сommit
d59ff9eee0
2 измененных файлов: 18 добавлений и 1 удалений
  1. +12
    -0
      mallinkService/src/main/java/com/iformall/domain/po/WxDevice.java
  2. +6
    -1
      mallinkService/src/main/resources/mapper/WxDeviceMapper.xml

+ 12
- 0
mallinkService/src/main/java/com/iformall/domain/po/WxDevice.java Просмотреть файл

@@ -92,6 +92,10 @@ public class WxDevice implements Serializable {
@io.swagger.annotations.ApiModelProperty(value="最后一次在线时间",name="hbCmd")
private Integer hbCmd;

/**设备名**/
@io.swagger.annotations.ApiModelProperty(value="设备配置",name="config")
private String config;

public String getTenantId() {
return tenantId;
}
@@ -195,6 +199,14 @@ public class WxDevice implements Serializable {
this.hbCmd = hbCmd;
}

public String getConfig() {
return config;
}

public void setConfig(String config) {
this.config = config;
}

public static enum Field
{
Id_ASC("`id` ASC"),Id_DESC("`id` DESC")


+ 6
- 1
mallinkService/src/main/resources/mapper/WxDeviceMapper.xml Просмотреть файл

@@ -16,10 +16,11 @@
<result column="first_hb_time" jdbcType="TIMESTAMP" property="firstHbTime"/>
<result column="last_hb_time" jdbcType="TIMESTAMP" property="lastHbTime"/>
<result column="hb_cmd" jdbcType="INTEGER" property="hbCmd"/>
<result column="config" jdbcType="VARCHAR" property="config"/>
</resultMap>

<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 id="dynamicWhereConditions">
@@ -82,6 +83,10 @@
and `hb_cmd` = #{hbCmd}
</if>

<if test=" null != config ">
and `config` = #{config}
</if>


<if test=" null != ids ">
and id in


Загрузка…
Отмена
Сохранить