package com.lunhan.xxx.repository.vo; import com.lunhan.xxx.common.util.LocalDateTimeUtil; import com.lunhan.xxx.common.util.NumericUtil; import com.lunhan.xxx.repository.po.TestInfoPO; import java.util.Objects; public class TestInfoVO extends TestInfoPO 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.getDataChangeLastTime())) { return ""; } return LocalDateTimeUtil.toFormatFullString(this.getDataChangeLastTime()); } }