/**
|
# __----~~~~~~~~~~~------___
|
# . . ~~//====...... __--~ ~~
|
# -. \_|// |||\\ ~~~~~~::::... /~
|
# ___-==_ _-~o~ \/ ||| \\ _/~~-
|
# __---~~~.==~||\=_ -_--~/_-~|- |\\ \\ _/~
|
# _-~~ .=~ | \\-_ '-~7 /- / || \ /
|
# .~ .~ | \\ -_ / /- / || \ /
|
# / ____ / | \\ ~-_/ /|- _/ .|| \ /
|
# |~~ ~~|--~~~~--_ \ ~==-/ | \~--===~~ .\
|
# ' ~-| /| |-~\~~ __--~~
|
# |-~~-_/ | | ~\_ _-~ /\
|
# / \ \__ \/~ \__
|
# _--~ _/ | .-~~____--~-/ ~~==.
|
# ((->/~ '.|||' -_| ~~-/ , . _||
|
# -_ ~\ ~~---l__i__i__i--~~_/
|
# _-~-__ ~) \--______________--~~
|
# //.-~~~-~_--~- |-------~~~~~~~~
|
# //.-~~~--\
|
# 神兽保佑
|
# 永无BUG!
|
*/
|
package com.nanjing.water.repository.vo;
|
|
import lombok.Data;
|
|
import com.nanjing.water.common.util.LocalDateTimeUtil;
|
import com.nanjing.water.common.util.NumericUtil;
|
import java.util.Objects;
|
import com.nanjing.water.repository.po.MonitorVideoStreamingPO;
|
|
/**
|
* 监控视频播放流
|
* @author lin.liu
|
*/
|
@Data
|
public class MonitorVideoStreamingVO extends MonitorVideoStreamingPO implements BasicVO {
|
|
@Override
|
public String getCreateTimeView() {
|
if (NumericUtil.tryParseLong(this.getCreateTime()).compareTo(0L) > 0) {
|
return LocalDateTimeUtil.toFormatString(this.getCreateTime());
|
}
|
return "";
|
}
|
|
@Override
|
public String getUpdateTimeView() {
|
if (Objects.isNull(this.getUpdateTime())) {
|
return "";
|
}
|
return LocalDateTimeUtil.toFormatFullString(this.getUpdateTime());
|
}
|
}
|