package com.example.demo.model;
|
/*
|
* Copyright © 2020-2035 erupt.xyz All rights reserved.
|
* Author: YuePeng (erupts@126.com)
|
*/
|
|
import javax.persistence.*;
|
import xyz.erupt.annotation.*;
|
import xyz.erupt.annotation.sub_erupt.*;
|
import xyz.erupt.annotation.sub_field.*;
|
import xyz.erupt.annotation.sub_field.sub_edit.*;
|
import xyz.erupt.upms.model.base.HyperModel;
|
import xyz.erupt.jpa.model.BaseModel;
|
import java.util.Set;
|
import java.util.Date;
|
|
@Erupt(name = "区域")
|
@Table(name = "t_city")
|
@Entity
|
public class CityArea extends BaseModel {
|
|
@EruptField(
|
views = @View(
|
title = "区域代码"
|
),
|
edit = @Edit(
|
title = "区域代码",
|
type = EditType.INPUT, search = @Search, notNull = true,
|
inputType = @InputType
|
)
|
)
|
private String citycode;
|
|
@EruptField(
|
views = @View(
|
title = "名称"
|
),
|
edit = @Edit(
|
title = "名称",
|
type = EditType.INPUT, search = @Search, notNull = true,
|
inputType = @InputType
|
)
|
)
|
private String cityname;
|
|
@EruptField(
|
views = @View(
|
title = "顺序编号"
|
),
|
edit = @Edit(
|
title = "顺序编号",
|
type = EditType.SLIDER, search = @Search, notNull = true,
|
sliderType = @SliderType(max = 999)
|
)
|
)
|
private Integer orderno;
|
|
@EruptField(
|
views = @View(
|
title = "上级代码"
|
),
|
edit = @Edit(
|
title = "上级代码",
|
type = EditType.INPUT, search = @Search, notNull = true,
|
inputType = @InputType
|
)
|
)
|
private String parentcode;
|
|
@EruptField(
|
views = @View(
|
title = "省份编码"
|
),
|
edit = @Edit(
|
title = "省份编码",
|
type = EditType.INPUT, search = @Search, notNull = true,
|
inputType = @InputType
|
)
|
)
|
private String provincecode;
|
|
@EruptField(
|
views = @View(
|
title = "邮政编码"
|
),
|
edit = @Edit(
|
title = "邮政编码",
|
type = EditType.INPUT, search = @Search, notNull = true,
|
inputType = @InputType
|
)
|
)
|
private String postcode;
|
|
|
public String getCitycode() {
|
return citycode;
|
}
|
|
public void setCitycode(String citycode) {
|
this.citycode = citycode;
|
}
|
|
public String getCityname() {
|
return cityname;
|
}
|
|
public void setCityname(String cityname) {
|
this.cityname = cityname;
|
}
|
|
public Integer getOrderno() {
|
return orderno;
|
}
|
|
public void setOrderno(Integer orderno) {
|
this.orderno = orderno;
|
}
|
|
public String getParentcode() {
|
return parentcode;
|
}
|
|
public void setParentcode(String parentcode) {
|
this.parentcode = parentcode;
|
}
|
|
public String getProvincecode() {
|
return provincecode;
|
}
|
|
public void setProvincecode(String provincecode) {
|
this.provincecode = provincecode;
|
}
|
|
public String getPostcode() {
|
return postcode;
|
}
|
|
public void setPostcode(String postcode) {
|
this.postcode = postcode;
|
}
|
}
|