/* * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * Neither the name of the dreamlu.net developer nor the names of its * contributors may be used to endorse or promote products derived from * this software without specific prior written permission. * Author: Chill 庄骞 (smallchill@163.com) */ package org.springblade.modules.grid.entity; import com.baomidou.mybatisplus.annotation.*; import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; import lombok.Data; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.Serializable; import java.util.Date; import lombok.EqualsAndHashCode; import org.springblade.core.tenant.mp.TenantEntity; import org.springframework.format.annotation.DateTimeFormat; /** * 网格巡查记录表 实体类 * * @author BladeX * @since 2023-11-16 */ @Data @TableName("jczz_grid_patrol_record") @ApiModel(value = "GridPatrolRecord对象", description = "网格巡查记录表") public class GridPatrolRecordEntity implements Serializable { private static final long serialVersionUID = 1L; @ApiModelProperty(value = "主键ID", example = "") @TableId(value = "id", type = IdType.ASSIGN_ID) private Long id; /** 名称 */ @ApiModelProperty(value = "名称", example = "") @TableField("name") private String name; /** 内容 */ @ApiModelProperty(value = "内容", example = "") @TableField("context") private String context; /** 图片地址 */ @ApiModelProperty(value = "图片地址", example = "") @TableField("url") private String url; /** 巡查时间 */ @ApiModelProperty(value = "巡查时间", example = "") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @TableField("patrol_time") private Date patrolTime; /** 创建时间 */ @ApiModelProperty(value = "创建时间", example = "") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @TableField(value = "create_time",fill = FieldFill.INSERT) private Date createTime; /** 创建人 */ @ApiModelProperty(value = "创建人", example = "") @TableField("create_user") private Long createUser; /** 是否删除 0:否 1:是 */ @ApiModelProperty(value = "是否删除 0:否 1:是", example = "") @TableField("is_deleted") private Integer isDeleted; /** 纬度 */ @ApiModelProperty(value = "纬度", example = "") @TableField("latitude") private String latitude; /** 经度 */ @ApiModelProperty(value = "经度", example = "") @TableField("longitude") private String longitude; /** 地址 */ @ApiModelProperty(value = "地址", example = "") @TableField("location") private String location; @ApiModelProperty(value = "网格编号") @TableField("grid_code") private String gridCode; /** * 警务网格编号 */ @ApiModelProperty(value = "警务网格编号") @TableField("jw_grid_code") private String jwGridCode; }