|
@@ -5,6 +5,7 @@ import java.util.Date;
|
|
|
import java.text.SimpleDateFormat;
|
|
|
import java.math.BigDecimal;
|
|
|
|
|
|
+import com.github.pagehelper.util.StringUtil;
|
|
|
import com.jpsoft.smart.modules.base.service.DeviceInfoService;
|
|
|
import com.jpsoft.smart.modules.base.service.impl.DeviceInfoServiceImpl;
|
|
|
import com.jpsoft.smart.modules.sys.dao.DataDictionaryDAO;
|
|
@@ -28,27 +29,27 @@ public class DeviceInfo {
|
|
|
/**
|
|
|
*ID
|
|
|
*/
|
|
|
- @ApiModelProperty(value = "ID")
|
|
|
+ @ApiModelProperty(value = "ID")
|
|
|
private String id;
|
|
|
/**
|
|
|
*表头
|
|
|
*/
|
|
|
- @ApiModelProperty(value = "表头")
|
|
|
+ @ApiModelProperty(value = "表头")
|
|
|
private String header;
|
|
|
/**
|
|
|
*设备编号
|
|
|
*/
|
|
|
- @ApiModelProperty(value = "设备编号")
|
|
|
+ @ApiModelProperty(value = "设备编号")
|
|
|
private String deviceNo;
|
|
|
/**
|
|
|
*设备别名
|
|
|
*/
|
|
|
- @ApiModelProperty(value = "设备别名")
|
|
|
+ @ApiModelProperty(value = "设备别名")
|
|
|
private String aliasName;
|
|
|
/**
|
|
|
*单元楼栋
|
|
|
*/
|
|
|
- @ApiModelProperty(value = "单元楼栋")
|
|
|
+ @ApiModelProperty(value = "单元楼栋")
|
|
|
private String address;
|
|
|
/**
|
|
|
*运行状态(是否在线)
|
|
@@ -58,7 +59,6 @@ public class DeviceInfo {
|
|
|
/**
|
|
|
*运行状态(是否在线)
|
|
|
*/
|
|
|
- @ApiModelProperty(value = "运行状态(是否在线)")
|
|
|
private String isOnlineN;
|
|
|
/**
|
|
|
*开锁密码
|
|
@@ -104,9 +104,9 @@ public class DeviceInfo {
|
|
|
/**
|
|
|
*创建时间
|
|
|
*/
|
|
|
- @DateTimeFormat(pattern="yyyy-MM-dd HH:mm")
|
|
|
+ @DateTimeFormat(pattern="yyyy-MM-dd HH:mm")
|
|
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone ="GMT+8")
|
|
|
- @ApiModelProperty(value = "创建时间")
|
|
|
+ @ApiModelProperty(value = "创建时间")
|
|
|
private Date createTime;
|
|
|
/**
|
|
|
*更新人
|
|
@@ -122,11 +122,12 @@ public class DeviceInfo {
|
|
|
private Date updateTime;
|
|
|
|
|
|
public String getIsOnlineN() {
|
|
|
- if(isOnline){
|
|
|
- isOnlineN="在线";
|
|
|
- }
|
|
|
- else{
|
|
|
- isOnlineN="离线";
|
|
|
+ if(isOnline!=null) {
|
|
|
+ if (isOnline) {
|
|
|
+ isOnlineN = "在线";
|
|
|
+ } else {
|
|
|
+ isOnlineN = "离线";
|
|
|
+ }
|
|
|
}
|
|
|
return isOnlineN;
|
|
|
}
|