package com.boying.entity; import com.baomidou.mybatisplus.core.toolkit.StringUtils; import com.boying.util.DateUtil; import java.util.Date; /** * @version v3.3 * @ClassName:HeathState.java * @author: http://www.wgstart.com * @date: 2021年1月16日 * @Description: 服务接口监测状态信息 * @Copyright: 2019-2021 wgcloud. All rights reserved. */ public class HeathState extends BaseEntity { /** * */ private static final long serialVersionUID = 1L; private String heathId; /** * 响应时间,毫秒 */ private Integer resTimes; /** * 添加时间 * yyyy-MM-dd hh:mm:ss */ private String dateStr; /** * 创建时间 */ private Date createTime; public Date getCreateTime() { return createTime; } public void setCreateTime(Date createTime) { this.createTime = createTime; } public String getDateStr() { String s = DateUtil.getDateTimeString(this.getCreateTime()); if (!StringUtils.isEmpty(s) && s.length() > 16) { return s.substring(5); } return dateStr; } public void setDateStr(String dateStr) { this.dateStr = dateStr; } public String getHeathId() { return heathId; } public void setHeathId(String heathId) { this.heathId = heathId; } public Integer getResTimes() { return resTimes; } public void setResTimes(Integer resTimes) { this.resTimes = resTimes; } }