|  |  | 
 |  |  |      * 上级行下区ID | 
 |  |  |      */ | 
 |  |  |     @Schema(description = "上级实体id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
 |  |  |     @JSONField(serializeUsing= ObjectWriterImplToString.class) | 
 |  |  |     public Long supperId; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  | 
 |  |  |      */ | 
 |  |  |     @Schema(description = "行政区名称", requiredMode = Schema.RequiredMode.REQUIRED) | 
 |  |  |     @NotEmpty(message = "行政区名称不能为空") //不能为空也不能为null | 
 |  |  |     @Length(message = "行政区名称不大于{max}字符,不小于{min}字符", min = 1, max = 25) | 
 |  |  |     @Length(message = "行政区名称不大于{max}字,不小于{min}字", min = 1, max = 25) | 
 |  |  |     public String name; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 行政区编号 | 
 |  |  |      */ | 
 |  |  |     @Schema(description = "行政区编号", requiredMode = Schema.RequiredMode.REQUIRED) | 
 |  |  |     @NotEmpty(message = "行政区编号不能为空") //不能为空也不能为null | 
 |  |  |     @Max(message = "行政区编号不大于99", value = 99) | 
 |  |  |     @Min(message = "行政区编号不小于0",value = 0) | 
 |  |  |     public String num; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 行政区级别 | 
 |  |  |      */ | 
 |  |  |     @Schema(description = "行政区级别", requiredMode = Schema.RequiredMode.REQUIRED) | 
 |  |  |     @Schema(description = "行政区级别", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
 |  |  |     @NotNull(message = "行政区级别不能为空") //不能为空也不能为null | 
 |  |  |     @Max(message = "行政区级别不大于10", value = 10) | 
 |  |  |     @Min(message = "行政区级别不小于0",value = 0) | 
 |  |  | 
 |  |  |     @TableField(exist = false) | 
 |  |  |     public List<BaDistrict> subDistricts ; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 下级行政区集合 | 
 |  |  |      */ | 
 |  |  |     @Schema(description = "是否可以添下级,表单不用填写,只在查询列表时有效", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
 |  |  |     @TableField(exist = false) | 
 |  |  |     public boolean canAdd ; | 
 |  |  |  | 
 |  |  |     @Schema(description = "是否可以删除,表单不用填写,只在查询列表时有效", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
 |  |  |     @TableField(exist = false) | 
 |  |  |     public boolean canDelete ; | 
 |  |  |  | 
 |  |  | } |