package com.deloitte.system.model; import com.common.annotation.Table; import com.common.core.domain.BaseModel; @Table(tableName = "repair", clazz = Repair.class) public class Repair extends BaseModel{ public static final Repair dao = new Repair(); public Long getDataId(){ return getLong("id"); } public Repair setDataId(Long dataId){ set("id", dataId); return this; } public String getTelephonen(){ return getStr("telephonen"); } public Repair setTelephonen(String telephonen){ set("telephonen", telephonen); return this; } public String getContactD(){ return getStr("contact_d"); } public Repair setContactD(String contactD){ set("contact_d", contactD); return this; } public String getSfRecordId(){ return getStr("sf_record_id"); } public Repair setSfRecordId(String sfRecordId){ set("sf_record_id", sfRecordId); return this; } public Repair findById(String dataId){ return this.dao.findFirst("select * from `" + getTableName() + "` where id=? ", dataId); } }