You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
648 lines
17 KiB
648 lines
17 KiB
/**
|
|
* Copyright (c) 2002 Sinosoft Co.,LTD.
|
|
* All right reserved.
|
|
*/
|
|
|
|
package com.sinosoft.lis.schema;
|
|
|
|
import com.sinosoft.persistence.Entity;
|
|
import com.sinosoft.lis.pubfun.FDate;
|
|
import com.sinosoft.persistence.Column;
|
|
import com.sinosoft.persistence.Id;
|
|
import com.sinosoft.persistence.Schema;
|
|
import com.sinosoft.persistence.Table;
|
|
import com.sinosoft.persistence.impl.SchemaHelper;
|
|
import com.sinosoft.utility.CErrors;
|
|
import lombok.EqualsAndHashCode;
|
|
import lombok.Getter;
|
|
import lombok.Setter;
|
|
import lombok.experimental.Accessors;
|
|
|
|
import java.util.Date;
|
|
|
|
/**
|
|
* <p>ClassName: LDPreGrpSchema </p>
|
|
* <p>Description: DB层 Schema 类文件 </p>
|
|
* <p>Company: Sinosoft Co.,LTD </p>
|
|
*
|
|
* @author Makerx2
|
|
* @Database PhysicalDataModel_1
|
|
* @CreateDatetime 2025-08-25 10:29:16 772
|
|
*/
|
|
@Table(name = "LDPreGrp", desc = "LDPreGrp")
|
|
@EqualsAndHashCode(callSuper = false)
|
|
@Accessors(chain = true)
|
|
public class LDPreGrpSchema extends Entity implements Schema<LDPreGrpSchema>, Cloneable {
|
|
// @Field
|
|
/**
|
|
* 准客户号
|
|
*/
|
|
@Getter
|
|
@Setter
|
|
@Id
|
|
@Column(index = 0, name = "PreCustomerNo", desc = "准客户号", type = Schema.TYPE_STRING)
|
|
private String preCustomerNo;
|
|
|
|
/**
|
|
* 准客户名称
|
|
*/
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 1, name = "PreCustomerName", desc = "准客户名称", type = Schema.TYPE_STRING)
|
|
private String preCustomerName;
|
|
|
|
/**
|
|
* 证件类型
|
|
*/
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 2, name = "IDType", desc = "证件类型", type = Schema.TYPE_STRING)
|
|
private String iDType;
|
|
|
|
/**
|
|
* 证件号
|
|
*/
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 3, name = "IDNo", desc = "证件号", type = Schema.TYPE_STRING)
|
|
private String iDNo;
|
|
|
|
/**
|
|
* 单位性质
|
|
*/
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 4, name = "GrpNature", desc = "单位性质", type = Schema.TYPE_STRING)
|
|
private String grpNature;
|
|
|
|
/**
|
|
* 行业分类
|
|
*/
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 5, name = "BusiCategory", desc = "行业分类", type = Schema.TYPE_STRING)
|
|
private String busiCategory;
|
|
|
|
/**
|
|
* 单位总人数
|
|
*/
|
|
@Getter
|
|
@Column(index = 6, name = "SumNumPeople", desc = "单位总人数", type = Schema.TYPE_INT)
|
|
private int sumNumPeople;
|
|
|
|
/**
|
|
* 预计投保总人数
|
|
*/
|
|
@Getter
|
|
@Column(index = 7, name = "PreSumPeople", desc = "预计投保总人数", type = Schema.TYPE_INT)
|
|
private int preSumPeople;
|
|
|
|
/**
|
|
* 预计保费规模(元)
|
|
*/
|
|
@Getter
|
|
@Column(index = 8, name = "PreSumPrem", desc = "预计保费规模(元)", type = Schema.TYPE_DOUBLE)
|
|
private double preSumPrem;
|
|
|
|
/**
|
|
* 销售渠道
|
|
*/
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 9, name = "SaleChannel", desc = "销售渠道", type = Schema.TYPE_STRING)
|
|
private String saleChannel;
|
|
|
|
/**
|
|
* 单位地址(省)
|
|
*/
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 10, name = "Province", desc = "单位地址(省)", type = Schema.TYPE_STRING)
|
|
private String province;
|
|
|
|
/**
|
|
* 单位地址(市)
|
|
*/
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 11, name = "City", desc = "单位地址(市)", type = Schema.TYPE_STRING)
|
|
private String city;
|
|
|
|
/**
|
|
* 单位地址(县/区)
|
|
*/
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 12, name = "County", desc = "单位地址(县/区)", type = Schema.TYPE_STRING)
|
|
private String county;
|
|
|
|
/**
|
|
* 详细地址
|
|
*/
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 13, name = "DetailAddress", desc = "详细地址", type = Schema.TYPE_STRING)
|
|
private String detailAddress;
|
|
|
|
/**
|
|
* 公司简介
|
|
*/
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 14, name = "CustomerIntro", desc = "公司简介", type = Schema.TYPE_STRING)
|
|
private String customerIntro;
|
|
|
|
/**
|
|
* 客户类型(准客户/客户)
|
|
*/
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 15, name = "CustomerType", desc = "客户类型(准客户/客户)", type = Schema.TYPE_STRING)
|
|
private String customerType;
|
|
|
|
/**
|
|
* 状态
|
|
*/
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 16, name = "State", desc = "状态", type = Schema.TYPE_STRING)
|
|
private String state;
|
|
|
|
/**
|
|
* 客户号
|
|
*/
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 17, name = "CustomerNo", desc = "客户号", type = Schema.TYPE_STRING)
|
|
private String customerNo;
|
|
|
|
/**
|
|
* 管理机构
|
|
*/
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 18, name = "ManageCom", desc = "管理机构", type = Schema.TYPE_STRING)
|
|
private String manageCom;
|
|
|
|
/**
|
|
* 机构代码
|
|
*/
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 19, name = "ComCode", desc = "机构代码", type = Schema.TYPE_STRING)
|
|
private String comCode;
|
|
|
|
/**
|
|
* 创建人
|
|
*/
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 20, name = "MakeOperator", desc = "创建人", type = Schema.TYPE_STRING)
|
|
private String makeOperator;
|
|
|
|
/**
|
|
* 创建日期
|
|
*/
|
|
@Column(index = 21, name = "MakeDate", desc = "创建日期", type = Schema.TYPE_DATE)
|
|
private Date makeDate;
|
|
|
|
/**
|
|
* 创建时间
|
|
*/
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 22, name = "MakeTime", desc = "创建时间", type = Schema.TYPE_STRING)
|
|
private String makeTime;
|
|
|
|
/**
|
|
* 修改人
|
|
*/
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 23, name = "ModifyOperator", desc = "修改人", type = Schema.TYPE_STRING)
|
|
private String modifyOperator;
|
|
|
|
/**
|
|
* 修改日期
|
|
*/
|
|
@Column(index = 24, name = "ModifyDate", desc = "修改日期", type = Schema.TYPE_DATE)
|
|
private Date modifyDate;
|
|
|
|
/**
|
|
* 修改时间
|
|
*/
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 25, name = "ModifyTime", desc = "修改时间", type = Schema.TYPE_STRING)
|
|
private String modifyTime;
|
|
|
|
/**
|
|
* 证件始期
|
|
*/
|
|
@Column(index = 26, name = "IDStartDate", desc = "证件始期", type = Schema.TYPE_DATE)
|
|
private Date iDStartDate;
|
|
|
|
/**
|
|
* 证件止期
|
|
*/
|
|
@Column(index = 27, name = "IDEndDate", desc = "证件止期", type = Schema.TYPE_DATE)
|
|
private Date iDEndDate;
|
|
|
|
/**
|
|
* 客户类别(法人/非法人/个人工商/其他)
|
|
*/
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 28, name = "CustomerCategory", desc = "客户类别(法人/非法人/个人工商/其他)", type = Schema.TYPE_STRING)
|
|
private String customerCategory;
|
|
|
|
/**
|
|
* 企业组织形式
|
|
*/
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 29, name = "EnterpriseFormal", desc = "企业组织形式", type = Schema.TYPE_STRING)
|
|
private String enterpriseFormal;
|
|
|
|
/**
|
|
* 企业规模
|
|
*/
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 30, name = "EnterpriseScale", desc = "企业规模", type = Schema.TYPE_STRING)
|
|
private String enterpriseScale;
|
|
|
|
/**
|
|
* 企业创建时间
|
|
*/
|
|
@Column(index = 31, name = "EnterpriseStartDate", desc = "企业创建时间", type = Schema.TYPE_DATE)
|
|
private Date enterpriseStartDate;
|
|
|
|
/**
|
|
* 负责人个人客户编号
|
|
*/
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 32, name = "CorporationNo", desc = "负责人个人客户编号", type = Schema.TYPE_STRING)
|
|
private String corporationNo;
|
|
|
|
/**
|
|
* 负责人姓名
|
|
*/
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 33, name = "CorporationName", desc = "负责人姓名", type = Schema.TYPE_STRING)
|
|
private String corporationName;
|
|
|
|
/**
|
|
* 负责人证件类型
|
|
*/
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 34, name = "CorIDType", desc = "负责人证件类型", type = Schema.TYPE_STRING)
|
|
private String corIDType;
|
|
|
|
/**
|
|
* 负责人证件号
|
|
*/
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 35, name = "CorID", desc = "负责人证件号", type = Schema.TYPE_STRING)
|
|
private String corID;
|
|
|
|
/**
|
|
* 客户固定电话
|
|
*/
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 36, name = "CorPhone", desc = "客户固定电话", type = Schema.TYPE_STRING)
|
|
private String corPhone;
|
|
|
|
/**
|
|
* 注册资本
|
|
*/
|
|
@Getter
|
|
@Column(index = 37, name = "RegisteredCapital", desc = "注册资本", type = Schema.TYPE_DOUBLE)
|
|
private double registeredCapital;
|
|
|
|
/**
|
|
* 币别
|
|
*/
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 38, name = "RegisteredCapitalType", desc = "币别", type = Schema.TYPE_STRING)
|
|
private String registeredCapitalType;
|
|
|
|
/**
|
|
* 政保合作业务客户标志
|
|
*/
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 39, name = "GicFlag", desc = "政保合作业务客户标志", type = Schema.TYPE_STRING)
|
|
private String gicFlag;
|
|
|
|
/**
|
|
* 参加社会统筹标志
|
|
*/
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 40, name = "SpmFlag", desc = "参加社会统筹标志", type = Schema.TYPE_STRING)
|
|
private String spmFlag;
|
|
|
|
/**
|
|
* 银行名称
|
|
*/
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 41, name = "BankCode", desc = "银行名称", type = Schema.TYPE_STRING)
|
|
private String bankCode;
|
|
|
|
/**
|
|
* 银行账户名称
|
|
*/
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 42, name = "AccName", desc = "银行账户名称", type = Schema.TYPE_STRING)
|
|
private String accName;
|
|
|
|
/**
|
|
* 银行账户
|
|
*/
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 43, name = "BankAccNo", desc = "银行账户", type = Schema.TYPE_STRING)
|
|
private String bankAccNo;
|
|
|
|
/**
|
|
* 负责人性别
|
|
*/
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 44, name = "CorGender", desc = "负责人性别", type = Schema.TYPE_STRING)
|
|
private String corGender;
|
|
|
|
/**
|
|
* 负责人出生年月
|
|
*/
|
|
@Column(index = 45, name = "CorBirthDay", desc = "负责人出生年月", type = Schema.TYPE_DATE)
|
|
private Date corBirthDay;
|
|
|
|
/**
|
|
* 是否为关联交易
|
|
*/
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 46, name = "Relateflag", desc = "是否为关联交易", type = Schema.TYPE_STRING)
|
|
private String relateflag;
|
|
|
|
|
|
public static final int FIELDNUM = 47; // 数据库表的字段个数
|
|
|
|
private transient FDate fDate = new FDate(); // 处理日期
|
|
|
|
public transient CErrors mErrors; // 错误信息
|
|
|
|
// @Constructor
|
|
public LDPreGrpSchema() {
|
|
mErrors = new CErrors();
|
|
}
|
|
|
|
// @Method
|
|
public Object clone() throws CloneNotSupportedException {
|
|
LDPreGrpSchema cloned = (LDPreGrpSchema) super.clone();
|
|
cloned.fDate = (FDate) fDate.clone();
|
|
cloned.mErrors = (CErrors) mErrors.clone();
|
|
SchemaHelper.cloneDate(cloned, this, this.getClass());
|
|
return cloned;
|
|
}
|
|
|
|
public String[] getPK() {
|
|
return SchemaHelper.getPK(this.getClass());
|
|
}
|
|
|
|
public LDPreGrpSchema setSumNumPeople(int aSumNumPeople) {
|
|
sumNumPeople = aSumNumPeople;
|
|
return this;
|
|
}
|
|
|
|
public LDPreGrpSchema setSumNumPeople(String aSumNumPeople) {
|
|
if (aSumNumPeople != null && !aSumNumPeople.equals("") && !aSumNumPeople.equals("null")) {
|
|
sumNumPeople = Integer.parseInt(aSumNumPeople);
|
|
}
|
|
return this;
|
|
}
|
|
|
|
public LDPreGrpSchema setPreSumPeople(int aPreSumPeople) {
|
|
preSumPeople = aPreSumPeople;
|
|
return this;
|
|
}
|
|
|
|
public LDPreGrpSchema setPreSumPeople(String aPreSumPeople) {
|
|
if (aPreSumPeople != null && !aPreSumPeople.equals("") && !aPreSumPeople.equals("null")) {
|
|
preSumPeople = Integer.parseInt(aPreSumPeople);
|
|
}
|
|
return this;
|
|
}
|
|
|
|
public LDPreGrpSchema setPreSumPrem(double aPreSumPrem) {
|
|
preSumPrem = aPreSumPrem;
|
|
return this;
|
|
}
|
|
|
|
public LDPreGrpSchema setPreSumPrem(String aPreSumPrem) {
|
|
if (aPreSumPrem != null && !aPreSumPrem.equals("") && !aPreSumPrem.equals("null")) {
|
|
preSumPrem = Double.parseDouble(aPreSumPrem);
|
|
}
|
|
return this;
|
|
}
|
|
|
|
public String getMakeDate() {
|
|
if (makeDate != null)
|
|
return fDate.getString(makeDate);
|
|
else
|
|
return null;
|
|
}
|
|
|
|
public LDPreGrpSchema setMakeDate(Date aMakeDate) {
|
|
makeDate = aMakeDate;
|
|
return this;
|
|
}
|
|
|
|
public LDPreGrpSchema setMakeDate(String aMakeDate) {
|
|
if (aMakeDate != null && !aMakeDate.equals("") && !aMakeDate.equals("null")) {
|
|
makeDate = fDate.getDate(aMakeDate);
|
|
} else {
|
|
makeDate = null;
|
|
}
|
|
return this;
|
|
}
|
|
|
|
public String getModifyDate() {
|
|
if (modifyDate != null)
|
|
return fDate.getString(modifyDate);
|
|
else
|
|
return null;
|
|
}
|
|
|
|
public LDPreGrpSchema setModifyDate(Date aModifyDate) {
|
|
modifyDate = aModifyDate;
|
|
return this;
|
|
}
|
|
|
|
public LDPreGrpSchema setModifyDate(String aModifyDate) {
|
|
if (aModifyDate != null && !aModifyDate.equals("") && !aModifyDate.equals("null")) {
|
|
modifyDate = fDate.getDate(aModifyDate);
|
|
} else {
|
|
modifyDate = null;
|
|
}
|
|
return this;
|
|
}
|
|
|
|
public String getIDStartDate() {
|
|
if (iDStartDate != null)
|
|
return fDate.getString(iDStartDate);
|
|
else
|
|
return null;
|
|
}
|
|
|
|
public LDPreGrpSchema setIDStartDate(Date aIDStartDate) {
|
|
iDStartDate = aIDStartDate;
|
|
return this;
|
|
}
|
|
|
|
public LDPreGrpSchema setIDStartDate(String aIDStartDate) {
|
|
if (aIDStartDate != null && !aIDStartDate.equals("") && !aIDStartDate.equals("null")) {
|
|
iDStartDate = fDate.getDate(aIDStartDate);
|
|
} else {
|
|
iDStartDate = null;
|
|
}
|
|
return this;
|
|
}
|
|
|
|
public String getIDEndDate() {
|
|
if (iDEndDate != null)
|
|
return fDate.getString(iDEndDate);
|
|
else
|
|
return null;
|
|
}
|
|
|
|
public LDPreGrpSchema setIDEndDate(Date aIDEndDate) {
|
|
iDEndDate = aIDEndDate;
|
|
return this;
|
|
}
|
|
|
|
public LDPreGrpSchema setIDEndDate(String aIDEndDate) {
|
|
if (aIDEndDate != null && !aIDEndDate.equals("") && !aIDEndDate.equals("null")) {
|
|
iDEndDate = fDate.getDate(aIDEndDate);
|
|
} else {
|
|
iDEndDate = null;
|
|
}
|
|
return this;
|
|
}
|
|
|
|
public String getEnterpriseStartDate() {
|
|
if (enterpriseStartDate != null)
|
|
return fDate.getString(enterpriseStartDate);
|
|
else
|
|
return null;
|
|
}
|
|
|
|
public LDPreGrpSchema setEnterpriseStartDate(Date aEnterpriseStartDate) {
|
|
enterpriseStartDate = aEnterpriseStartDate;
|
|
return this;
|
|
}
|
|
|
|
public LDPreGrpSchema setEnterpriseStartDate(String aEnterpriseStartDate) {
|
|
if (aEnterpriseStartDate != null && !aEnterpriseStartDate.equals("") && !aEnterpriseStartDate.equals("null")) {
|
|
enterpriseStartDate = fDate.getDate(aEnterpriseStartDate);
|
|
} else {
|
|
enterpriseStartDate = null;
|
|
}
|
|
return this;
|
|
}
|
|
|
|
public LDPreGrpSchema setRegisteredCapital(double aRegisteredCapital) {
|
|
registeredCapital = aRegisteredCapital;
|
|
return this;
|
|
}
|
|
|
|
public LDPreGrpSchema setRegisteredCapital(String aRegisteredCapital) {
|
|
if (aRegisteredCapital != null && !aRegisteredCapital.equals("") && !aRegisteredCapital.equals("null")) {
|
|
registeredCapital = Double.parseDouble(aRegisteredCapital);
|
|
}
|
|
return this;
|
|
}
|
|
|
|
public String getCorBirthDay() {
|
|
if (corBirthDay != null)
|
|
return fDate.getString(corBirthDay);
|
|
else
|
|
return null;
|
|
}
|
|
|
|
public LDPreGrpSchema setCorBirthDay(Date aCorBirthDay) {
|
|
corBirthDay = aCorBirthDay;
|
|
return this;
|
|
}
|
|
|
|
public LDPreGrpSchema setCorBirthDay(String aCorBirthDay) {
|
|
if (aCorBirthDay != null && !aCorBirthDay.equals("") && !aCorBirthDay.equals("null")) {
|
|
corBirthDay = fDate.getDate(aCorBirthDay);
|
|
} else {
|
|
corBirthDay = null;
|
|
}
|
|
return this;
|
|
}
|
|
|
|
|
|
public LDPreGrpSchema setSchema(LDPreGrpSchema aLDPreGrpSchema) {
|
|
SchemaHelper.setSchema(aLDPreGrpSchema, this);
|
|
return this;
|
|
}
|
|
|
|
public LDPreGrpSchema getSchema() {
|
|
LDPreGrpSchema aLDPreGrpSchema = new LDPreGrpSchema();
|
|
aLDPreGrpSchema.setSchema(this);
|
|
return aLDPreGrpSchema;
|
|
}
|
|
|
|
public String encode() {
|
|
return SchemaHelper.encode(this);
|
|
}
|
|
|
|
public boolean decode(String strMessage) {
|
|
return SchemaHelper.decode(this, strMessage);
|
|
}
|
|
|
|
public String getV(String FCode) {
|
|
return SchemaHelper.getV(this, FCode);
|
|
}
|
|
|
|
public String getV(int nFieldIndex) {
|
|
return SchemaHelper.getV(this, nFieldIndex);
|
|
}
|
|
|
|
public boolean setV(String FCode, String FValue) {
|
|
return SchemaHelper.setV(this, FCode, FValue);
|
|
}
|
|
|
|
public int getFieldCount() {
|
|
return FIELDNUM;
|
|
}
|
|
|
|
public int getFieldIndex(String strFieldName) {
|
|
return SchemaHelper.getFieldIndex(this.getClass(), strFieldName);
|
|
}
|
|
|
|
public String getFieldName(int nFieldIndex) {
|
|
return SchemaHelper.getFieldName(this.getClass(), nFieldIndex);
|
|
}
|
|
|
|
public int getFieldType(String strFieldName) {
|
|
return SchemaHelper.getFieldType(this.getClass(), strFieldName);
|
|
}
|
|
|
|
public int getFieldType(int nFieldIndex) {
|
|
return SchemaHelper.getFieldType(this.getClass(), nFieldIndex);
|
|
}
|
|
}
|
|
|