package cn.ksource.beans; import java.sql.ResultSet; import java.sql.SQLException; import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util.Map; import org.apache.commons.lang.StringUtils; import cn.ksource.core.dao.BaseBean; import cn.ksource.core.util.ConvertUtil; import cn.ksource.core.util.StringUtil; /** * */ public class SC_WORKFLOW_CI_ADD extends BaseBean{ public final static Map KEYS = new HashMap(); private Map BEAN_VALUES = null; static { KEYS.put("id", "String"); KEYS.put("order_code", "String"); KEYS.put("apply_time", "Long"); KEYS.put("apply_user_id", "String"); KEYS.put("apply_user_name", "String"); KEYS.put("apply_reason", "String"); KEYS.put("note", "String"); KEYS.put("flow_id", "String"); KEYS.put("flow_name", "String"); KEYS.put("dispatcher_require_date", "Long"); KEYS.put("urgent_degree", "Integer"); KEYS.put("approve_time", "Long"); KEYS.put("approve_user_id", "String"); KEYS.put("approve_user_name", "String"); KEYS.put("approve_note", "String"); KEYS.put("customer_id", "String"); KEYS.put("customer_name", "String"); KEYS.put("customer_contact_info", "String"); KEYS.put("customer_contacts", "String"); KEYS.put("collection_type_id", "String"); KEYS.put("collection_type_name", "String"); KEYS.put("deal_time", "Long"); KEYS.put("partner_id", "String"); KEYS.put("fzr_id", "String"); KEYS.put("fzr_name", "String"); KEYS.put("order_state", "Integer"); KEYS.put("close_person_id", "String"); KEYS.put("close_person_name", "String"); KEYS.put("close_time", "Long"); KEYS.put("close_note", "String"); KEYS.put("project_id", "String"); KEYS.put("project_name", "String"); KEYS.put("sub_customer_id", "String"); KEYS.put("sub_customer_name", "String"); KEYS.put("contact_id", "String"); } public Map getColumnMap(){ return KEYS; } private String id; private Boolean isSetted_id = false;; private String order_code; private Boolean isSetted_order_code = false; private Long apply_time; private Boolean isSetted_apply_time = false; private String apply_user_id; private Boolean isSetted_apply_user_id = false; private String apply_user_name; private Boolean isSetted_apply_user_name = false; private String apply_reason; private Boolean isSetted_apply_reason = false; private String note; private Boolean isSetted_note = false; private String flow_id; private Boolean isSetted_flow_id = false; private String flow_name; private Boolean isSetted_flow_name = false; private Long dispatcher_require_date; private Boolean isSetted_dispatcher_require_date = false; private Integer urgent_degree; private Boolean isSetted_urgent_degree = false; private Long approve_time; private Boolean isSetted_approve_time = false; private String approve_user_id; private Boolean isSetted_approve_user_id = false; private String approve_user_name; private Boolean isSetted_approve_user_name = false; private String approve_note; private Boolean isSetted_approve_note = false; private String customer_id; private Boolean isSetted_customer_id = false; private String customer_name; private Boolean isSetted_customer_name = false; private String customer_contact_info; private Boolean isSetted_customer_contact_info = false; private String customer_contacts; private Boolean isSetted_customer_contacts = false; private String collection_type_id; private Boolean isSetted_collection_type_id = false; private String collection_type_name; private Boolean isSetted_collection_type_name = false; private Long deal_time; private Boolean isSetted_deal_time = false; private String partner_id; private Boolean isSetted_partner_id = false; private String fzr_id; private Boolean isSetted_fzr_id = false; private String fzr_name; private Boolean isSetted_fzr_name = false; private Integer order_state; private Boolean isSetted_order_state = false; private String close_person_id; private Boolean isSetted_close_person_id = false; private String close_person_name; private Boolean isSetted_close_person_name = false; private Long close_time; private Boolean isSetted_close_time = false; private String close_note; private Boolean isSetted_close_note = false; private String project_id; private Boolean isSetted_project_id = false; private String project_name; private Boolean isSetted_project_name = false; private String sub_customer_id; private Boolean isSetted_sub_customer_id = false; private String sub_customer_name; private Boolean isSetted_sub_customer_name = false; private String contact_id; private Boolean isSetted_contact_id = false; private void initBeanValues(){ BEAN_VALUES = new HashMap(); BEAN_VALUES.put("id",id); BEAN_VALUES.put("order_code", null); BEAN_VALUES.put("apply_time", null); BEAN_VALUES.put("apply_user_id", null); BEAN_VALUES.put("apply_user_name", null); BEAN_VALUES.put("apply_reason", null); BEAN_VALUES.put("note", null); BEAN_VALUES.put("flow_id", null); BEAN_VALUES.put("flow_name", null); BEAN_VALUES.put("dispatcher_require_date", null); BEAN_VALUES.put("urgent_degree", null); BEAN_VALUES.put("approve_time", null); BEAN_VALUES.put("approve_user_id", null); BEAN_VALUES.put("approve_user_name", null); BEAN_VALUES.put("approve_note", null); BEAN_VALUES.put("customer_id", null); BEAN_VALUES.put("customer_name", null); BEAN_VALUES.put("customer_contact_info", null); BEAN_VALUES.put("customer_contacts", null); BEAN_VALUES.put("collection_type_id", null); BEAN_VALUES.put("collection_type_name", null); BEAN_VALUES.put("deal_time", null); BEAN_VALUES.put("partner_id", null); BEAN_VALUES.put("fzr_id", null); BEAN_VALUES.put("fzr_name", null); BEAN_VALUES.put("order_state", null); BEAN_VALUES.put("close_person_id", null); BEAN_VALUES.put("close_person_name", null); BEAN_VALUES.put("close_time", null); BEAN_VALUES.put("close_note", null); BEAN_VALUES.put("project_id", null); BEAN_VALUES.put("project_name", null); BEAN_VALUES.put("sub_customer_id", null); BEAN_VALUES.put("sub_customer_name", null); BEAN_VALUES.put("contact_id", null); } public SC_WORKFLOW_CI_ADD() { initBeanValues(); } public SC_WORKFLOW_CI_ADD(String id) { super(); this.id = id; initBeanValues(); BEAN_VALUES.put("id",id); } /** * 获取ID */ public String getId() { return this.id; } /** * 设置ID */ public SC_WORKFLOW_CI_ADD setId(String id) { this.id = id; this.isSetted_id = true; BEAN_VALUES.put("id",id); return this; } @Override public String getUpdateSql() { StringBuffer sBuffer = new StringBuffer("update SC_WORKFLOW_CI_ADD set "); if (isSetted_order_code) { sBuffer.append("order_code=:order_code,"); } if (isSetted_apply_time) { sBuffer.append("apply_time=:apply_time,"); } if (isSetted_apply_user_id) { sBuffer.append("apply_user_id=:apply_user_id,"); } if (isSetted_apply_user_name) { sBuffer.append("apply_user_name=:apply_user_name,"); } if (isSetted_apply_reason) { sBuffer.append("apply_reason=:apply_reason,"); } if (isSetted_note) { sBuffer.append("note=:note,"); } if (isSetted_flow_id) { sBuffer.append("flow_id=:flow_id,"); } if (isSetted_flow_name) { sBuffer.append("flow_name=:flow_name,"); } if (isSetted_dispatcher_require_date) { sBuffer.append("dispatcher_require_date=:dispatcher_require_date,"); } if (isSetted_urgent_degree) { sBuffer.append("urgent_degree=:urgent_degree,"); } if (isSetted_approve_time) { sBuffer.append("approve_time=:approve_time,"); } if (isSetted_approve_user_id) { sBuffer.append("approve_user_id=:approve_user_id,"); } if (isSetted_approve_user_name) { sBuffer.append("approve_user_name=:approve_user_name,"); } if (isSetted_approve_note) { sBuffer.append("approve_note=:approve_note,"); } if (isSetted_customer_id) { sBuffer.append("customer_id=:customer_id,"); } if (isSetted_customer_name) { sBuffer.append("customer_name=:customer_name,"); } if (isSetted_customer_contact_info) { sBuffer.append("customer_contact_info=:customer_contact_info,"); } if (isSetted_customer_contacts) { sBuffer.append("customer_contacts=:customer_contacts,"); } if (isSetted_collection_type_id) { sBuffer.append("collection_type_id=:collection_type_id,"); } if (isSetted_collection_type_name) { sBuffer.append("collection_type_name=:collection_type_name,"); } if (isSetted_deal_time) { sBuffer.append("deal_time=:deal_time,"); } if (isSetted_partner_id) { sBuffer.append("partner_id=:partner_id,"); } if (isSetted_fzr_id) { sBuffer.append("fzr_id=:fzr_id,"); } if (isSetted_fzr_name) { sBuffer.append("fzr_name=:fzr_name,"); } if (isSetted_order_state) { sBuffer.append("order_state=:order_state,"); } if (isSetted_close_person_id) { sBuffer.append("close_person_id=:close_person_id,"); } if (isSetted_close_person_name) { sBuffer.append("close_person_name=:close_person_name,"); } if (isSetted_close_time) { sBuffer.append("close_time=:close_time,"); } if (isSetted_close_note) { sBuffer.append("close_note=:close_note,"); } if (isSetted_project_id) { sBuffer.append("project_id=:project_id,"); } if (isSetted_project_name) { sBuffer.append("project_name=:project_name,"); } if (isSetted_sub_customer_id) { sBuffer.append("sub_customer_id=:sub_customer_id,"); } if (isSetted_sub_customer_name) { sBuffer.append("sub_customer_name=:sub_customer_name,"); } if (isSetted_contact_id) { sBuffer.append("contact_id=:contact_id,"); } String sql = sBuffer.toString(); return StringUtils.removeEnd(sql, ",") + " where id=:id"; } @Override public String getInsertSql() { StringBuffer sBuffer = new StringBuffer("insert into SC_WORKFLOW_CI_ADD("); StringBuffer fileds = new StringBuffer("id,"); StringBuffer values = new StringBuffer(":id,"); fileds.append("order_code,"); values.append(":order_code,"); fileds.append("apply_time,"); values.append(":apply_time,"); fileds.append("apply_user_id,"); values.append(":apply_user_id,"); fileds.append("apply_user_name,"); values.append(":apply_user_name,"); fileds.append("apply_reason,"); values.append(":apply_reason,"); fileds.append("note,"); values.append(":note,"); fileds.append("flow_id,"); values.append(":flow_id,"); fileds.append("flow_name,"); values.append(":flow_name,"); fileds.append("dispatcher_require_date,"); values.append(":dispatcher_require_date,"); fileds.append("urgent_degree,"); values.append(":urgent_degree,"); fileds.append("approve_time,"); values.append(":approve_time,"); fileds.append("approve_user_id,"); values.append(":approve_user_id,"); fileds.append("approve_user_name,"); values.append(":approve_user_name,"); fileds.append("approve_note,"); values.append(":approve_note,"); fileds.append("customer_id,"); values.append(":customer_id,"); fileds.append("customer_name,"); values.append(":customer_name,"); fileds.append("customer_contact_info,"); values.append(":customer_contact_info,"); fileds.append("customer_contacts,"); values.append(":customer_contacts,"); fileds.append("collection_type_id,"); values.append(":collection_type_id,"); fileds.append("collection_type_name,"); values.append(":collection_type_name,"); fileds.append("deal_time,"); values.append(":deal_time,"); fileds.append("partner_id,"); values.append(":partner_id,"); fileds.append("fzr_id,"); values.append(":fzr_id,"); fileds.append("fzr_name,"); values.append(":fzr_name,"); fileds.append("order_state,"); values.append(":order_state,"); fileds.append("close_person_id,"); values.append(":close_person_id,"); fileds.append("close_person_name,"); values.append(":close_person_name,"); fileds.append("close_time,"); values.append(":close_time,"); fileds.append("close_note,"); values.append(":close_note,"); fileds.append("project_id,"); values.append(":project_id,"); fileds.append("project_name,"); values.append(":project_name,"); fileds.append("sub_customer_id,"); values.append(":sub_customer_id,"); fileds.append("sub_customer_name,"); values.append(":sub_customer_name,"); fileds.append("contact_id,"); values.append(":contact_id,"); sBuffer.append(StringUtils.removeEnd(fileds.toString(), ",") + ") values("+StringUtils.removeEnd(values.toString(), ",")+")"); return sBuffer.toString(); } /** * 获取工单编码
* 䣺2017-28-23 hh:02 */ public String getOrder_code() { return order_code; } /** * 设置工单编码
* 2017-28-23 hh:02 */ public SC_WORKFLOW_CI_ADD setOrder_code(String order_code) { this.order_code = order_code; this.isSetted_order_code = true; BEAN_VALUES.put("order_code",order_code); return this; } /** * 获取申请时间
* 䣺2017-28-23 hh:02 */ public Long getApply_time() { return apply_time; } /** * 设置申请时间
* 2017-28-23 hh:02 */ public SC_WORKFLOW_CI_ADD setApply_time(Long apply_time) { this.apply_time = apply_time; this.isSetted_apply_time = true; BEAN_VALUES.put("apply_time",apply_time); return this; } /** * 获取申请人编号
* 䣺2017-28-23 hh:02 */ public String getApply_user_id() { return apply_user_id; } /** * 设置申请人编号
* 2017-28-23 hh:02 */ public SC_WORKFLOW_CI_ADD setApply_user_id(String apply_user_id) { this.apply_user_id = apply_user_id; this.isSetted_apply_user_id = true; BEAN_VALUES.put("apply_user_id",apply_user_id); return this; } /** * 获取申请人姓名
* 䣺2017-28-23 hh:02 */ public String getApply_user_name() { return apply_user_name; } /** * 设置申请人姓名
* 2017-28-23 hh:02 */ public SC_WORKFLOW_CI_ADD setApply_user_name(String apply_user_name) { this.apply_user_name = apply_user_name; this.isSetted_apply_user_name = true; BEAN_VALUES.put("apply_user_name",apply_user_name); return this; } /** * 获取申请原因
* 䣺2017-28-23 hh:02 */ public String getApply_reason() { return apply_reason; } /** * 设置申请原因
* 2017-28-23 hh:02 */ public SC_WORKFLOW_CI_ADD setApply_reason(String apply_reason) { this.apply_reason = apply_reason; this.isSetted_apply_reason = true; BEAN_VALUES.put("apply_reason",apply_reason); return this; } /** * 获取设备情况说明
* 䣺2017-28-23 hh:02 */ public String getNote() { return note; } /** * 设置设备情况说明
* 2017-28-23 hh:02 */ public SC_WORKFLOW_CI_ADD setNote(String note) { this.note = note; this.isSetted_note = true; BEAN_VALUES.put("note",note); return this; } /** * 获取流程编号
* 䣺2017-28-23 hh:02 */ public String getFlow_id() { return flow_id; } /** * 设置流程编号
* 2017-28-23 hh:02 */ public SC_WORKFLOW_CI_ADD setFlow_id(String flow_id) { this.flow_id = flow_id; this.isSetted_flow_id = true; BEAN_VALUES.put("flow_id",flow_id); return this; } /** * 获取流程名称
* 䣺2017-28-23 hh:02 */ public String getFlow_name() { return flow_name; } /** * 设置流程名称
* 2017-28-23 hh:02 */ public SC_WORKFLOW_CI_ADD setFlow_name(String flow_name) { this.flow_name = flow_name; this.isSetted_flow_name = true; BEAN_VALUES.put("flow_name",flow_name); return this; } /** * 获取调度要求处理时间
* 䣺2017-28-23 hh:02 */ public Long getDispatcher_require_date() { return dispatcher_require_date; } /** * 设置调度要求处理时间
* 2017-28-23 hh:02 */ public SC_WORKFLOW_CI_ADD setDispatcher_require_date(Long dispatcher_require_date) { this.dispatcher_require_date = dispatcher_require_date; this.isSetted_dispatcher_require_date = true; BEAN_VALUES.put("dispatcher_require_date",dispatcher_require_date); return this; } /** * 获取紧急程度
* 䣺2017-28-23 hh:02 */ public Integer getUrgent_degree() { return urgent_degree; } /** * 设置紧急程度
* 2017-28-23 hh:02 */ public SC_WORKFLOW_CI_ADD setUrgent_degree(Integer urgent_degree) { this.urgent_degree = urgent_degree; this.isSetted_urgent_degree = true; BEAN_VALUES.put("urgent_degree",urgent_degree); return this; } /** * 获取审批时间
* 䣺2017-28-23 hh:02 */ public Long getApprove_time() { return approve_time; } /** * 设置审批时间
* 2017-28-23 hh:02 */ public SC_WORKFLOW_CI_ADD setApprove_time(Long approve_time) { this.approve_time = approve_time; this.isSetted_approve_time = true; BEAN_VALUES.put("approve_time",approve_time); return this; } /** * 获取审批人编号
* 䣺2017-28-23 hh:02 */ public String getApprove_user_id() { return approve_user_id; } /** * 设置审批人编号
* 2017-28-23 hh:02 */ public SC_WORKFLOW_CI_ADD setApprove_user_id(String approve_user_id) { this.approve_user_id = approve_user_id; this.isSetted_approve_user_id = true; BEAN_VALUES.put("approve_user_id",approve_user_id); return this; } /** * 获取审批人姓名
* 䣺2017-28-23 hh:02 */ public String getApprove_user_name() { return approve_user_name; } /** * 设置审批人姓名
* 2017-28-23 hh:02 */ public SC_WORKFLOW_CI_ADD setApprove_user_name(String approve_user_name) { this.approve_user_name = approve_user_name; this.isSetted_approve_user_name = true; BEAN_VALUES.put("approve_user_name",approve_user_name); return this; } /** * 获取审批意见
* 䣺2017-28-23 hh:02 */ public String getApprove_note() { return approve_note; } /** * 设置审批意见
* 2017-28-23 hh:02 */ public SC_WORKFLOW_CI_ADD setApprove_note(String approve_note) { this.approve_note = approve_note; this.isSetted_approve_note = true; BEAN_VALUES.put("approve_note",approve_note); return this; } /** * 获取客户编号
* 䣺2017-28-23 hh:02 */ public String getCustomer_id() { return customer_id; } /** * 设置客户编号
* 2017-28-23 hh:02 */ public SC_WORKFLOW_CI_ADD setCustomer_id(String customer_id) { this.customer_id = customer_id; this.isSetted_customer_id = true; BEAN_VALUES.put("customer_id",customer_id); return this; } /** * 获取客户名称
* 䣺2017-28-23 hh:02 */ public String getCustomer_name() { return customer_name; } /** * 设置客户名称
* 2017-28-23 hh:02 */ public SC_WORKFLOW_CI_ADD setCustomer_name(String customer_name) { this.customer_name = customer_name; this.isSetted_customer_name = true; BEAN_VALUES.put("customer_name",customer_name); return this; } /** * 获取
* 䣺2017-28-23 hh:02 */ public String getCustomer_contact_info() { return customer_contact_info; } /** * 设置
* 2017-28-23 hh:02 */ public SC_WORKFLOW_CI_ADD setCustomer_contact_info(String customer_contact_info) { this.customer_contact_info = customer_contact_info; this.isSetted_customer_contact_info = true; BEAN_VALUES.put("customer_contact_info",customer_contact_info); return this; } /** * 获取
* 䣺2017-28-23 hh:02 */ public String getCustomer_contacts() { return customer_contacts; } /** * 设置
* 2017-28-23 hh:02 */ public SC_WORKFLOW_CI_ADD setCustomer_contacts(String customer_contacts) { this.customer_contacts = customer_contacts; this.isSetted_customer_contacts = true; BEAN_VALUES.put("customer_contacts",customer_contacts); return this; } /** * 获取
* 䣺2017-28-23 hh:02 */ public String getCollection_type_id() { return collection_type_id; } /** * 设置
* 2017-28-23 hh:02 */ public SC_WORKFLOW_CI_ADD setCollection_type_id(String collection_type_id) { this.collection_type_id = collection_type_id; this.isSetted_collection_type_id = true; BEAN_VALUES.put("collection_type_id",collection_type_id); return this; } /** * 获取
* 䣺2017-28-23 hh:02 */ public String getCollection_type_name() { return collection_type_name; } /** * 设置
* 2017-28-23 hh:02 */ public SC_WORKFLOW_CI_ADD setCollection_type_name(String collection_type_name) { this.collection_type_name = collection_type_name; this.isSetted_collection_type_name = true; BEAN_VALUES.put("collection_type_name",collection_type_name); return this; } /** * 获取
* 䣺2017-28-23 hh:02 */ public Long getDeal_time() { return deal_time; } /** * 设置
* 2017-28-23 hh:02 */ public SC_WORKFLOW_CI_ADD setDeal_time(Long deal_time) { this.deal_time = deal_time; this.isSetted_deal_time = true; BEAN_VALUES.put("deal_time",deal_time); return this; } /** * 获取
* 䣺2017-28-23 hh:02 */ public String getPartner_id() { return partner_id; } /** * 设置
* 2017-28-23 hh:02 */ public SC_WORKFLOW_CI_ADD setPartner_id(String partner_id) { this.partner_id = partner_id; this.isSetted_partner_id = true; BEAN_VALUES.put("partner_id",partner_id); return this; } /** * 获取
* 䣺2017-28-23 hh:02 */ public String getFzr_id() { return fzr_id; } /** * 设置
* 2017-28-23 hh:02 */ public SC_WORKFLOW_CI_ADD setFzr_id(String fzr_id) { this.fzr_id = fzr_id; this.isSetted_fzr_id = true; BEAN_VALUES.put("fzr_id",fzr_id); return this; } /** * 获取
* 䣺2017-28-23 hh:02 */ public String getFzr_name() { return fzr_name; } /** * 设置
* 2017-28-23 hh:02 */ public SC_WORKFLOW_CI_ADD setFzr_name(String fzr_name) { this.fzr_name = fzr_name; this.isSetted_fzr_name = true; BEAN_VALUES.put("fzr_name",fzr_name); return this; } /** * 获取
* 䣺2017-28-23 hh:02 */ public Integer getOrder_state() { return order_state; } /** * 设置
* 2017-28-23 hh:02 */ public SC_WORKFLOW_CI_ADD setOrder_state(Integer order_state) { this.order_state = order_state; this.isSetted_order_state = true; BEAN_VALUES.put("order_state",order_state); return this; } /** * 获取
* 䣺2017-28-23 hh:02 */ public String getClose_person_id() { return close_person_id; } /** * 设置
* 2017-28-23 hh:02 */ public SC_WORKFLOW_CI_ADD setClose_person_id(String close_person_id) { this.close_person_id = close_person_id; this.isSetted_close_person_id = true; BEAN_VALUES.put("close_person_id",close_person_id); return this; } /** * 获取
* 䣺2017-28-23 hh:02 */ public String getClose_person_name() { return close_person_name; } /** * 设置
* 2017-28-23 hh:02 */ public SC_WORKFLOW_CI_ADD setClose_person_name(String close_person_name) { this.close_person_name = close_person_name; this.isSetted_close_person_name = true; BEAN_VALUES.put("close_person_name",close_person_name); return this; } /** * 获取
* 䣺2017-28-23 hh:02 */ public Long getClose_time() { return close_time; } /** * 设置
* 2017-28-23 hh:02 */ public SC_WORKFLOW_CI_ADD setClose_time(Long close_time) { this.close_time = close_time; this.isSetted_close_time = true; BEAN_VALUES.put("close_time",close_time); return this; } /** * 获取
* 䣺2017-28-23 hh:02 */ public String getClose_note() { return close_note; } /** * 设置
* 2017-28-23 hh:02 */ public SC_WORKFLOW_CI_ADD setClose_note(String close_note) { this.close_note = close_note; this.isSetted_close_note = true; BEAN_VALUES.put("close_note",close_note); return this; } /** * 获取
* 䣺2017-28-23 hh:02 */ public String getProject_id() { return project_id; } /** * 设置
* 2017-28-23 hh:02 */ public SC_WORKFLOW_CI_ADD setProject_id(String project_id) { this.project_id = project_id; this.isSetted_project_id = true; BEAN_VALUES.put("project_id",project_id); return this; } /** * 获取
* 䣺2017-28-23 hh:02 */ public String getProject_name() { return project_name; } /** * 设置
* 2017-28-23 hh:02 */ public SC_WORKFLOW_CI_ADD setProject_name(String project_name) { this.project_name = project_name; this.isSetted_project_name = true; BEAN_VALUES.put("project_name",project_name); return this; } /** * 获取
* 䣺2017-28-23 hh:02 */ public String getSub_customer_id() { return sub_customer_id; } /** * 设置
* 2017-28-23 hh:02 */ public SC_WORKFLOW_CI_ADD setSub_customer_id(String sub_customer_id) { this.sub_customer_id = sub_customer_id; this.isSetted_sub_customer_id = true; BEAN_VALUES.put("sub_customer_id",sub_customer_id); return this; } /** * 获取
* 䣺2017-28-23 hh:02 */ public String getSub_customer_name() { return sub_customer_name; } /** * 设置
* 2017-28-23 hh:02 */ public SC_WORKFLOW_CI_ADD setSub_customer_name(String sub_customer_name) { this.sub_customer_name = sub_customer_name; this.isSetted_sub_customer_name = true; BEAN_VALUES.put("sub_customer_name",sub_customer_name); return this; } /** * 获取
* 䣺2017-28-23 hh:02 */ public String getContact_id() { return contact_id; } /** * 设置
* 2017-28-23 hh:02 */ public SC_WORKFLOW_CI_ADD setContact_id(String contact_id) { this.contact_id = contact_id; this.isSetted_contact_id = true; BEAN_VALUES.put("contact_id",contact_id); return this; } /** * 使用ID删除Bean
*/ public void deleteById() { if (StringUtils.isBlank(id)) { throw new RuntimeException("删除bean时ID不能为空"); } dao.execute("delete from " + getTableName() + " where id = :id", BEAN_VALUES); } @Override public SC_WORKFLOW_CI_ADD getInstanceById() { if (StringUtils.isBlank(id)) { throw new RuntimeException("获取Bean时ID不能为空"); } return dao.queryForBean("select * from " + getTableName() + " where id=:id", BEAN_VALUES, this); } @Override public SC_WORKFLOW_CI_ADD queryForBean() { StringBuffer sBuffer = new StringBuffer("select * from SC_WORKFLOW_CI_ADD where "); if(isSetted_id){ sBuffer.append("id=:id and "); } if (isSetted_order_code) { sBuffer.append("order_code=:order_code and "); } if (isSetted_apply_time) { sBuffer.append("apply_time=:apply_time and "); } if (isSetted_apply_user_id) { sBuffer.append("apply_user_id=:apply_user_id and "); } if (isSetted_apply_user_name) { sBuffer.append("apply_user_name=:apply_user_name and "); } if (isSetted_apply_reason) { sBuffer.append("apply_reason=:apply_reason and "); } if (isSetted_note) { sBuffer.append("note=:note and "); } if (isSetted_flow_id) { sBuffer.append("flow_id=:flow_id and "); } if (isSetted_flow_name) { sBuffer.append("flow_name=:flow_name and "); } if (isSetted_dispatcher_require_date) { sBuffer.append("dispatcher_require_date=:dispatcher_require_date and "); } if (isSetted_urgent_degree) { sBuffer.append("urgent_degree=:urgent_degree and "); } if (isSetted_approve_time) { sBuffer.append("approve_time=:approve_time and "); } if (isSetted_approve_user_id) { sBuffer.append("approve_user_id=:approve_user_id and "); } if (isSetted_approve_user_name) { sBuffer.append("approve_user_name=:approve_user_name and "); } if (isSetted_approve_note) { sBuffer.append("approve_note=:approve_note and "); } if (isSetted_customer_id) { sBuffer.append("customer_id=:customer_id and "); } if (isSetted_customer_name) { sBuffer.append("customer_name=:customer_name and "); } if (isSetted_customer_contact_info) { sBuffer.append("customer_contact_info=:customer_contact_info and "); } if (isSetted_customer_contacts) { sBuffer.append("customer_contacts=:customer_contacts and "); } if (isSetted_collection_type_id) { sBuffer.append("collection_type_id=:collection_type_id and "); } if (isSetted_collection_type_name) { sBuffer.append("collection_type_name=:collection_type_name and "); } if (isSetted_deal_time) { sBuffer.append("deal_time=:deal_time and "); } if (isSetted_partner_id) { sBuffer.append("partner_id=:partner_id and "); } if (isSetted_fzr_id) { sBuffer.append("fzr_id=:fzr_id and "); } if (isSetted_fzr_name) { sBuffer.append("fzr_name=:fzr_name and "); } if (isSetted_order_state) { sBuffer.append("order_state=:order_state and "); } if (isSetted_close_person_id) { sBuffer.append("close_person_id=:close_person_id and "); } if (isSetted_close_person_name) { sBuffer.append("close_person_name=:close_person_name and "); } if (isSetted_close_time) { sBuffer.append("close_time=:close_time and "); } if (isSetted_close_note) { sBuffer.append("close_note=:close_note and "); } if (isSetted_project_id) { sBuffer.append("project_id=:project_id and "); } if (isSetted_project_name) { sBuffer.append("project_name=:project_name and "); } if (isSetted_sub_customer_id) { sBuffer.append("sub_customer_id=:sub_customer_id and "); } if (isSetted_sub_customer_name) { sBuffer.append("sub_customer_name=:sub_customer_name and "); } if (isSetted_contact_id) { sBuffer.append("contact_id=:contact_id and "); } String sql = sBuffer.toString(); sql = StringUtils.removeEnd(sql, " and "); return dao.queryForBean(sql,this); } @Override public String getTableName() { return "SC_WORKFLOW_CI_ADD"; } public Map getBeanValues(){ return this.BEAN_VALUES; } @Override public SC_WORKFLOW_CI_ADD insert() { if (StringUtils.isBlank(id)) { this.setId(StringUtil.getUUID()); } dao.execute(getInsertSql(),BEAN_VALUES); return this; } @Override public SC_WORKFLOW_CI_ADD update() { if (StringUtils.isBlank(id)) { throw new RuntimeException("更新Bean时ID不能为空"); } dao.execute(getUpdateSql(),BEAN_VALUES); return this; } public SC_WORKFLOW_CI_ADD insertOrUpdate(){ if (StringUtils.isNotBlank(id)) { return update(); } else { return insert(); } } /** * 通过ID获取该条信息的Map结构 */ public Map getBeanMapById() { if (StringUtils.isBlank(id)) { throw new RuntimeException("ID不能为空!"); } return dao.queryForMap("select * from SC_WORKFLOW_CI_ADD where id=:id",BEAN_VALUES); } public Object mapRow(ResultSet rs, int rownum) throws SQLException { Object id = rs.getObject("ID"); this.setId(ConvertUtil.obj2Str(id)); BEAN_VALUES.put("id",id); Object obj = null; obj = rs.getObject("ORDER_CODE"); BEAN_VALUES.put("order_code",obj); this.setOrder_code(ConvertUtil.obj2Str(obj)); obj = rs.getObject("APPLY_TIME"); BEAN_VALUES.put("apply_time",obj); this.setApply_time(ConvertUtil.obj2Long(obj)); obj = rs.getObject("APPLY_USER_ID"); BEAN_VALUES.put("apply_user_id",obj); this.setApply_user_id(ConvertUtil.obj2Str(obj)); obj = rs.getObject("APPLY_USER_NAME"); BEAN_VALUES.put("apply_user_name",obj); this.setApply_user_name(ConvertUtil.obj2Str(obj)); obj = rs.getObject("APPLY_REASON"); BEAN_VALUES.put("apply_reason",obj); this.setApply_reason(ConvertUtil.obj2Str(obj)); obj = rs.getObject("NOTE"); BEAN_VALUES.put("note",obj); this.setNote(ConvertUtil.obj2Str(obj)); obj = rs.getObject("FLOW_ID"); BEAN_VALUES.put("flow_id",obj); this.setFlow_id(ConvertUtil.obj2Str(obj)); obj = rs.getObject("FLOW_NAME"); BEAN_VALUES.put("flow_name",obj); this.setFlow_name(ConvertUtil.obj2Str(obj)); obj = rs.getObject("DISPATCHER_REQUIRE_DATE"); BEAN_VALUES.put("dispatcher_require_date",obj); this.setDispatcher_require_date(ConvertUtil.obj2Long(obj)); obj = rs.getObject("URGENT_DEGREE"); BEAN_VALUES.put("urgent_degree",obj); this.setUrgent_degree(ConvertUtil.obj2Integer(obj)); obj = rs.getObject("APPROVE_TIME"); BEAN_VALUES.put("approve_time",obj); this.setApprove_time(ConvertUtil.obj2Long(obj)); obj = rs.getObject("APPROVE_USER_ID"); BEAN_VALUES.put("approve_user_id",obj); this.setApprove_user_id(ConvertUtil.obj2Str(obj)); obj = rs.getObject("APPROVE_USER_NAME"); BEAN_VALUES.put("approve_user_name",obj); this.setApprove_user_name(ConvertUtil.obj2Str(obj)); obj = rs.getObject("APPROVE_NOTE"); BEAN_VALUES.put("approve_note",obj); this.setApprove_note(ConvertUtil.obj2Str(obj)); obj = rs.getObject("CUSTOMER_ID"); BEAN_VALUES.put("customer_id",obj); this.setCustomer_id(ConvertUtil.obj2Str(obj)); obj = rs.getObject("CUSTOMER_NAME"); BEAN_VALUES.put("customer_name",obj); this.setCustomer_name(ConvertUtil.obj2Str(obj)); obj = rs.getObject("CUSTOMER_CONTACT_INFO"); BEAN_VALUES.put("customer_contact_info",obj); this.setCustomer_contact_info(ConvertUtil.obj2Str(obj)); obj = rs.getObject("CUSTOMER_CONTACTS"); BEAN_VALUES.put("customer_contacts",obj); this.setCustomer_contacts(ConvertUtil.obj2Str(obj)); obj = rs.getObject("COLLECTION_TYPE_ID"); BEAN_VALUES.put("collection_type_id",obj); this.setCollection_type_id(ConvertUtil.obj2Str(obj)); obj = rs.getObject("COLLECTION_TYPE_NAME"); BEAN_VALUES.put("collection_type_name",obj); this.setCollection_type_name(ConvertUtil.obj2Str(obj)); obj = rs.getObject("DEAL_TIME"); BEAN_VALUES.put("deal_time",obj); this.setDeal_time(ConvertUtil.obj2Long(obj)); obj = rs.getObject("PARTNER_ID"); BEAN_VALUES.put("partner_id",obj); this.setPartner_id(ConvertUtil.obj2Str(obj)); obj = rs.getObject("FZR_ID"); BEAN_VALUES.put("fzr_id",obj); this.setFzr_id(ConvertUtil.obj2Str(obj)); obj = rs.getObject("FZR_NAME"); BEAN_VALUES.put("fzr_name",obj); this.setFzr_name(ConvertUtil.obj2Str(obj)); obj = rs.getObject("ORDER_STATE"); BEAN_VALUES.put("order_state",obj); this.setOrder_state(ConvertUtil.obj2Integer(obj)); obj = rs.getObject("CLOSE_PERSON_ID"); BEAN_VALUES.put("close_person_id",obj); this.setClose_person_id(ConvertUtil.obj2Str(obj)); obj = rs.getObject("CLOSE_PERSON_NAME"); BEAN_VALUES.put("close_person_name",obj); this.setClose_person_name(ConvertUtil.obj2Str(obj)); obj = rs.getObject("CLOSE_TIME"); BEAN_VALUES.put("close_time",obj); this.setClose_time(ConvertUtil.obj2Long(obj)); obj = rs.getObject("CLOSE_NOTE"); BEAN_VALUES.put("close_note",obj); this.setClose_note(ConvertUtil.obj2Str(obj)); obj = rs.getObject("PROJECT_ID"); BEAN_VALUES.put("project_id",obj); this.setProject_id(ConvertUtil.obj2Str(obj)); obj = rs.getObject("PROJECT_NAME"); BEAN_VALUES.put("project_name",obj); this.setProject_name(ConvertUtil.obj2Str(obj)); obj = rs.getObject("SUB_CUSTOMER_ID"); BEAN_VALUES.put("sub_customer_id",obj); this.setSub_customer_id(ConvertUtil.obj2Str(obj)); obj = rs.getObject("SUB_CUSTOMER_NAME"); BEAN_VALUES.put("sub_customer_name",obj); this.setSub_customer_name(ConvertUtil.obj2Str(obj)); obj = rs.getObject("CONTACT_ID"); BEAN_VALUES.put("contact_id",obj); this.setContact_id(ConvertUtil.obj2Str(obj)); return this; } public String toString() { StringBuffer sb = new StringBuffer("["); for (Iterator iterator = KEYS.keySet().iterator(); iterator.hasNext();) { String key = (String) iterator.next(); sb.append(key+"=" + BEAN_VALUES.get(key)+","); } sb.append("]"); return sb.toString(); } public SC_WORKFLOW_CI_ADD newInstance(){ return new SC_WORKFLOW_CI_ADD(); } }