New file |
| | |
| | | package cn.exrick.xboot.your.entity; |
| | | |
| | | import cn.exrick.xboot.core.base.XbootBaseEntity; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import org.hibernate.annotations.DynamicInsert; |
| | | import org.hibernate.annotations.DynamicUpdate; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import javax.persistence.Entity; |
| | | import javax.persistence.Table; |
| | | import javax.persistence.Transient; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @author Exrick |
| | | */ |
| | | @Data |
| | | @Entity |
| | | @DynamicInsert |
| | | @DynamicUpdate |
| | | @Table(name = "t_accident") |
| | | @TableName("t_accident") |
| | | @ApiModel(value = "车险记录") |
| | | public class Accident extends XbootBaseEntity { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | |
| | | @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | @ApiModelProperty(value = "事故日期") |
| | | private Date accidentDate; |
| | | |
| | | @ApiModelProperty(value = "对方联系人") |
| | | private String linker; |
| | | |
| | | @ApiModelProperty(value = "事故描述") |
| | | private String description; |
| | | |
| | | @ApiModelProperty(value = "责任认定") |
| | | private String dutySure; |
| | | |
| | | @ApiModelProperty(value = "解决方案") |
| | | private String solve; |
| | | |
| | | @ApiModelProperty(value = "现场照片") |
| | | private String imgs; |
| | | |
| | | @ApiModelProperty(value = "车辆id") |
| | | private String carId; |
| | | |
| | | @Transient |
| | | @TableField(exist = false) |
| | | private String carNo; |
| | | } |