New file |
| | |
| | | package cn.exrick.xboot.your.entity; |
| | | |
| | | import cn.exrick.xboot.core.base.XbootBaseEntity; |
| | | 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 java.util.Date; |
| | | |
| | | /** |
| | | * @author Exrick |
| | | */ |
| | | @Data |
| | | @Entity |
| | | @DynamicInsert |
| | | @DynamicUpdate |
| | | @Table(name = "t_repair") |
| | | @TableName("t_repair") |
| | | @ApiModel(value = "维修记录") |
| | | public class Repair extends XbootBaseEntity { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @ApiModelProperty(value = "维修科目") |
| | | private String type; |
| | | |
| | | @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | @ApiModelProperty(value = "日期") |
| | | private Date repairDate; |
| | | |
| | | @ApiModelProperty(value = "费用") |
| | | private double cost; |
| | | |
| | | @ApiModelProperty(value = "维修厂家") |
| | | private String repairFactor; |
| | | |
| | | @ApiModelProperty(value = "维修责任人(选人或者手填)") |
| | | private String userId; |
| | | |
| | | @ApiModelProperty(value = "车辆id") |
| | | private String carId; |
| | | |
| | | } |