package com.jiuqi.mobile.nigo.comeclose.bean.app.coop; import java.util.Date; import com.jiuqi.mobile.nigo.comeclose.bean.base.AdminAreaBean; import com.jiuqi.mobile.nigo.comeclose.bean.base.DataDictionaryBean; import com.jiuqi.mobile.nigo.comeclose.bean.master.CarBaseBean; import com.jiuqi.mobile.nigo.comeclose.manager.base.DataDictionaryAnnotation; /** * 跨区作业队实体类 * * @author anjoulee * */ //@DBTable(name = "T_CROSSWORKTEAM", version = 1) public class CrossWorkTeamBean extends CarBaseBean { // @DBColumn(id = true, comment = "创建人GUID") private String coGuid; // @DBColumn(id = true, comment = "机构GUID(绑定分组节点)") private String orgGuid; // @DBColumn(comment = "名称") private String crossLicense; // @DBColumn(comment = "发布单位") private String releaseUnit; // @DBColumn(columnType = DBColumn.Date, comment = "有效开始时间") private long effectiveStartTime; // @DBColumn(columnType = DBColumn.Date, comment = "有效结束时间") private long effectiveEndTime; // @DBColumn(comment = "详细地址") private String address; // @DBColumn(comment = "行政区划") private long areaCode; private AdminAreaBean adminAreaCode; private String carOwnerName; @DataDictionaryAnnotation(mark=30203, comment="定位设备", initNames={"随车手机","车载GPS","车载北斗"}) private DataDictionaryBean locateDevice; private String contactorPhoneNumber; public String getCoGuid() { return coGuid; } public void setCoGuid(String coGuid) { this.coGuid = coGuid; } public String getOrgGuid() { return orgGuid; } public void setOrgGuid(String orgGuid) { this.orgGuid = orgGuid; } public String getCrossLicense() { return crossLicense; } public void setCrossLicense(String crossLicense) { this.crossLicense = crossLicense; } public String getReleaseUnit() { return releaseUnit; } public void setReleaseUnit(String releaseUnit) { this.releaseUnit = releaseUnit; } public Date getStartDate() { return new Date(effectiveStartTime); } public void setStartDate(Date date) { if (date != null) this.effectiveStartTime = date.getTime(); } public Date getEndDate() { return new Date(effectiveEndTime); } public void setEndDate(Date date) { if (date != null) this.effectiveEndTime = date.getTime(); } public long getEffectiveStartTime() { return effectiveStartTime; } public void setEffectiveStartTime(long effectiveStartTime) { this.effectiveStartTime = effectiveStartTime; } public long getEffectiveEndTime() { return effectiveEndTime; } public void setEffectiveEndTime(long effectiveEndTime) { this.effectiveEndTime = effectiveEndTime; } public String getAddress() { return address; } public void setAddress(String address) { this.address = address; } public long getAreaCode() { return areaCode; } public void setAreaCode(long areaCode) { this.areaCode = areaCode; } public AdminAreaBean getAdminAreaCode() { return adminAreaCode; } public void setAdminAreaCode(AdminAreaBean adminAreaCode) { this.adminAreaCode = adminAreaCode; if (this.adminAreaCode != null) { this.areaCode = this.adminAreaCode.getCode(); } } public String getCarOwnerName() { return carOwnerName; } public void setCarOwnerName(String carOwnerName) { this.carOwnerName = carOwnerName; } public DataDictionaryBean getLocateDevice() { return locateDevice; } public void setLocateDevice(DataDictionaryBean locateDevice) { this.locateDevice = locateDevice; } public String getContactorPhoneNumber() { return contactorPhoneNumber; } public void setContactorPhoneNumber(String contactorPhoneNumber) { this.contactorPhoneNumber = contactorPhoneNumber; } }