/** * # __----~~~~~~~~~~~------___ * # . . ~~//====...... __--~ ~~ * # -. \_|// |||\\ ~~~~~~::::... /~ * # ___-==_ _-~o~ \/ ||| \\ _/~~- * # __---~~~.==~||\=_ -_--~/_-~|- |\\ \\ _/~ * # _-~~ .=~ | \\-_ '-~7 /- / || \ / * # .~ .~ | \\ -_ / /- / || \ / * # / ____ / | \\ ~-_/ /|- _/ .|| \ / * # |~~ ~~|--~~~~--_ \ ~==-/ | \~--===~~ .\ * # ' ~-| /| |-~\~~ __--~~ * # |-~~-_/ | | ~\_ _-~ /\ * # / \ \__ \/~ \__ * # _--~ _/ | .-~~____--~-/ ~~==. * # ((->/~ '.|||' -_| ~~-/ , . _|| * # -_ ~\ ~~---l__i__i__i--~~_/ * # _-~-__ ~) \--______________--~~ * # //.-~~~-~_--~- |-------~~~~~~~~ * # //.-~~~--\ * # 神兽保佑 * # 永无BUG! */ package com.nanjing.water.repository.vo; import com.nanjing.water.common.util.LocalDateTimeUtil; import com.nanjing.water.common.util.NumericUtil; import com.nanjing.water.repository.po.WaterMonitoryPointPO; import lombok.Data; import java.util.ArrayList; import java.util.List; import java.util.Objects; /** * 监控点 * @author lin.liu */ @Data public class WaterMonitoryPointVO extends WaterMonitoryPointPO implements BasicVO { private List childrenList=new ArrayList<>(); private String pointTypeName; @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()); } }