| package com.moral.api.entity; | 
|   | 
|   | 
| import lombok.Data; | 
| import lombok.EqualsAndHashCode; | 
|   | 
| import java.util.Date; | 
| import java.util.List; | 
|   | 
| import com.baomidou.mybatisplus.annotation.IdType; | 
| import com.baomidou.mybatisplus.annotation.TableField; | 
| import com.baomidou.mybatisplus.annotation.TableId; | 
| import com.baomidou.mybatisplus.extension.activerecord.Model; | 
| import com.fasterxml.jackson.annotation.JsonFormat; | 
|   | 
| @Data | 
| @EqualsAndHashCode(callSuper = false) | 
| public class ResponsibilityUnit extends Model<ResponsibilityUnit> { | 
|   | 
|   | 
|     private static final long serialVersionUID = 1L; | 
|   | 
|     //责任单位id | 
|     @TableId(value = "unit_id", type = IdType.AUTO) | 
|     private Integer unitId; | 
|     /** | 
|      * 单位名称 | 
|      */ | 
|     private String unitName; | 
|     /** | 
|      * 所属编码 | 
|      */ | 
|     private Integer areaCode; | 
|     /** | 
|      * 上级编码 | 
|      */ | 
|     private  Integer parentCode; | 
|     //0是生效 1是失效 | 
|     private  String state; | 
|     //0是未删 1是以删 | 
|     private  String isDel; | 
|     //0是未作废 1是已作废 | 
|     private  Integer isInvalid; | 
|     //作废理由 | 
|     private String invalidReason; | 
|   | 
|     private String value; | 
|   | 
|     private  Integer createId; | 
|   | 
|     private  String createName; | 
|   | 
|     @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") | 
|     private  Date createTime; | 
|   | 
|     private Integer updateId; | 
|   | 
|     private String updateName; | 
|     @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") | 
|     private Date updateTime; | 
|   | 
|     @TableField(exist = false) | 
|     private String areaName; | 
|   | 
|     @TableField(exist = false) | 
|     private String parentName; | 
|   | 
|     @TableField(exist = false) | 
|     private List<Object> parentCodeList; | 
| } |