/** * 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; /** *

ClassName: LPCPersonSchema

*

Description: DB层 Schema 类文件

*

Company: Sinosoft Co.,LTD

* @Database Lpcperson_20201204_develop_prate * @author Makerx2 * @CreateDatetime 2020-12-04 16:29:13 504 */ @Table(name = "LPCPerson", desc = "保全个单个人客户表") @EqualsAndHashCode(callSuper = false) @Accessors(chain = true) public class LPCPersonSchema extends Entity implements Schema, Cloneable { // @Field @Getter @Setter @Id @Column(index = 0, name = "EdorNo", desc = "批单号", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(20)", nullable = false, length = 20) private String edorNo; @Getter @Setter @Id @Column(index = 1, name = "EdorType", desc = "批改类型", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(10)", nullable = false, length = 10) private String edorType; @Getter @Setter @Id @Column(index = 2, name = "PerCusNo", desc = "个单客户号", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(20)", nullable = false, length = 20) private String perCusNo; /** * 冗余,标准在个人保单表,方便查询统计 */ @Getter @Setter @Column(index = 3, name = "GrpContNo", desc = "集体合同号码", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(20)", nullable = false, length = 20) private String grpContNo; @Getter @Setter @Id @Column(index = 4, name = "ContNo", desc = "合同号码", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(20)", nullable = false, length = 20) private String contNo; /** * 冗余,标准在个人保单表 */ @Getter @Setter @Column(index = 5, name = "PrtNo", desc = "印刷号码", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(20)", nullable = false, length = 20) private String prtNo; @Getter @Setter @Column(index = 6, name = "CustomerNo", desc = "客户号", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(24)", length = 24) private String customerNo; @Getter @Setter @Column(index = 7, name = "Name", desc = "客户名称", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(200)", length = 200) private String name; @Column(index = 8, name = "IDExpDate", desc = "证件有效期", type = Schema.TYPE_DATE, columnDefinition = "DATE") private Date iDExpDate; @Getter @Setter @Column(index = 9, name = "LastName", desc = "姓", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(100)", length = 100) private String lastName; @Getter @Setter @Column(index = 10, name = "FirstName", desc = "名", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(100)", length = 100) private String firstName; @Getter @Setter @Column(index = 11, name = "LastNameEn", desc = "英文姓", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(100)", length = 100) private String lastNameEn; @Getter @Setter @Column(index = 12, name = "FirstNameEn", desc = "英文名", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(100)", length = 100) private String firstNameEn; @Getter @Setter @Column(index = 13, name = "NameEn", desc = "英文姓名", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(120)", length = 120) private String nameEn; @Getter @Setter @Column(index = 14, name = "LastNamePY", desc = "拼音姓", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(100)", length = 100) private String lastNamePY; @Getter @Setter @Column(index = 15, name = "FirstNamePY", desc = "拼音名", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(100)", length = 100) private String firstNamePY; @Getter @Setter @Column(index = 16, name = "Sex", desc = "客户性别", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(1)", length = 1) private String sex; @Column(index = 17, name = "Birthday", desc = "客户出生日期", type = Schema.TYPE_DATE, columnDefinition = "DATE") private Date birthday; @Getter @Setter @Column(index = 18, name = "IDType", desc = "证件类型", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(1)", length = 1) private String iDType; @Getter @Setter @Column(index = 19, name = "IDNo", desc = "证件号码", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(20)", length = 20) private String iDNo; @Getter @Setter @Column(index = 20, name = "NativePlace", desc = "国籍", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(3)", length = 3) private String nativePlace; @Getter @Setter @Column(index = 21, name = "Nationality", desc = "民族", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(3)", length = 3) private String nationality; @Getter @Setter @Column(index = 22, name = "RgtAddress", desc = "户口所在地", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(300)", length = 300) private String rgtAddress; @Getter @Setter @Column(index = 23, name = "Marriage", desc = "婚姻状况", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(2)", length = 2) private String marriage; @Column(index = 24, name = "MarriageDate", desc = "结婚日期", type = Schema.TYPE_DATE, columnDefinition = "DATE") private Date marriageDate; @Getter @Setter @Column(index = 25, name = "Health", desc = "健康状况", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(6)", length = 6) private String health; @Getter @Column(index = 26, name = "Stature", desc = "身高", type = Schema.TYPE_DOUBLE, columnDefinition = "NUMBER(5,2)", precision = 2, scale = 5) private double stature; @Getter @Column(index = 27, name = "Avoirdupois", desc = "体重", type = Schema.TYPE_DOUBLE, columnDefinition = "NUMBER(5,2)", precision = 2, scale = 5) private double avoirdupois; @Getter @Column(index = 28, name = "BMI", desc = "身体指标", type = Schema.TYPE_DOUBLE, columnDefinition = "NUMBER(10,2)", precision = 2, scale = 10) private double bMI; @Getter @Setter @Column(index = 29, name = "License", desc = "驾照", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(1)", length = 1) private String license; @Getter @Setter @Column(index = 30, name = "LicenseType", desc = "驾照类型", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(4)", length = 4) private String licenseType; @Getter @Setter @Column(index = 31, name = "Degree", desc = "学历", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(6)", length = 6) private String degree; @Getter @Setter @Column(index = 32, name = "Language", desc = "语言", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(10)", length = 10) private String language; @Getter @Setter @Column(index = 33, name = "SocialInsuFlag", desc = "是否有社保标志", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(1)", length = 1) private String socialInsuFlag; @Getter @Setter @Column(index = 34, name = "CreditGrade", desc = "信用等级", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(2)", length = 2) private String creditGrade; @Getter @Setter @Column(index = 35, name = "BankCode", desc = "银行编码", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(10)", length = 10) private String bankCode; @Getter @Setter @Column(index = 36, name = "BankAccNo", desc = "银行账号", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(40)", length = 40) private String bankAccNo; @Getter @Setter @Column(index = 37, name = "AccName", desc = "银行帐户名", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(60)", length = 60) private String accName; @Column(index = 38, name = "JoinCompanyDate", desc = "入司日期", type = Schema.TYPE_DATE, columnDefinition = "DATE") private Date joinCompanyDate; @Column(index = 39, name = "StartWorkDate", desc = "参加工作日期", type = Schema.TYPE_DATE, columnDefinition = "DATE") private Date startWorkDate; @Getter @Setter @Column(index = 40, name = "Position", desc = "职位", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(6)", length = 6) private String position; @Getter @Column(index = 41, name = "Salary", desc = "工资", type = Schema.TYPE_DOUBLE, columnDefinition = "NUMBER(12,2)", precision = 2, scale = 12) private double salary; @Getter @Setter @Column(index = 42, name = "OccupationType", desc = "职业类别", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(10)", length = 10) private String occupationType; @Getter @Setter @Column(index = 43, name = "OccupationCode", desc = "职业代码", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(10)", length = 10) private String occupationCode; @Getter @Setter @Column(index = 44, name = "WorkType", desc = "职业(工种)", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(300)", length = 300) private String workType; @Getter @Setter @Column(index = 45, name = "PluralityType", desc = "兼职(工种)", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(40)", length = 40) private String pluralityType; @Getter @Setter @Column(index = 46, name = "SmokeFlag", desc = "是否吸烟标志", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(1)", length = 1) private String smokeFlag; @Getter @Setter @Column(index = 47, name = "AddressNo", desc = "客户地址号码", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(20)", length = 20) private String addressNo; @Getter @Setter @Column(index = 48, name = "TaxrType", desc = "税收居民类型", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(10)", length = 10) private String taxrType; /** * 1-有效

* 4-终止 */ @Getter @Setter @Column(index = 49, name = "PerState", desc = "有效标志", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(1)", length = 1) private String perState; @Getter @Setter @Column(index = 50, name = "Operator", desc = "操作员", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(10)", nullable = false, length = 10) private String operator; @Getter @Setter @Column(index = 51, name = "ManageCom", desc = "管理机构", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(10)", nullable = false, length = 10) private String manageCom; @Column(index = 52, name = "MakeDate", desc = "入机日期", type = Schema.TYPE_DATE, columnDefinition = "DATE", nullable = false) private Date makeDate; @Getter @Setter @Column(index = 53, name = "MakeTime", desc = "入机时间", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(10)", nullable = false, length = 10) private String makeTime; @Column(index = 54, name = "ModifyDate", desc = "最后一次修改日期", type = Schema.TYPE_DATE, columnDefinition = "DATE", nullable = false) private Date modifyDate; @Getter @Setter @Column(index = 55, name = "ModifyTime", desc = "最后一次修改时间", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(10)", nullable = false, length = 10) private String modifyTime; @Getter @Setter @Column(index = 56, name = "IdentityID", desc = "身份ID", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(20)", length = 20) private String identityID; @Getter @Setter @Column(index = 57, name = "PayCusAccID", desc = "收费客户账户ID", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(20)", length = 20) private String payCusAccID; @Getter @Setter @Column(index = 58, name = "GetCusAccID", desc = "付费客户账户ID", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(20)", length = 20) private String getCusAccID; @Getter @Setter @Column(index = 59, name = "AddressID", desc = "地址ID", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(20)", length = 20) private String addressID; @Getter @Setter @Column(index = 60, name = "WechatNo", desc = "微信号", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(20)", length = 20) private String wechatNo; @Getter @Setter @Column(index = 61, name = "WeiboNo", desc = "微博号", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(20)", length = 20) private String weiboNo; @Getter @Setter @Column(index = 62, name = "AlipayNo", desc = "支付宝号", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(20)", length = 20) private String alipayNo; @Getter @Setter @Column(index = 63, name = "FacebookNo", desc = "脸书号", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(20)", length = 20) private String facebookNo; @Getter @Setter @Column(index = 64, name = "BirthAddress", desc = "出生地", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(100)", length = 100) private String birthAddress; /** * Y-人证相符;N-人证不符 */ @Getter @Setter @Column(index = 65, name = "PerCertConsist", desc = "人证相符标记", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(1)", length = 1) private String perCertConsist; /** * Y-实名查验通过,N-实名查验未通过 */ @Getter @Setter @Column(index = 66, name = "RealNameCheck", desc = "实名查验标记", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(1)", length = 1) private String realNameCheck; /** * 0/null-有名单,1-无名单,2-无名单实名化 */ @Getter @Setter @Column(index = 67, name = "poltype", desc = "无名单标识", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(1)", length = 1) private String poltype; public static final int FIELDNUM = 68; // 数据库表的字段个数 private transient FDate fDate = new FDate(); // 处理日期 public transient CErrors mErrors; // 错误信息 // @Constructor public LPCPersonSchema() { mErrors = new CErrors(); } // @Method @Override public Object clone() throws CloneNotSupportedException { LPCPersonSchema cloned = (LPCPersonSchema) super.clone(); cloned.fDate = (FDate) fDate.clone(); cloned.mErrors = (CErrors) mErrors.clone(); SchemaHelper.cloneDate(cloned, this, this.getClass()); return cloned; } @Override public String[] getPK() { return SchemaHelper.getPK(this.getClass()); } public String getIDExpDate() { if (iDExpDate != null) return fDate.getString(iDExpDate); else return null; } public LPCPersonSchema setIDExpDate(Date aIDExpDate) { iDExpDate = aIDExpDate; return this; } public LPCPersonSchema setIDExpDate(String aIDExpDate) { if (aIDExpDate != null && !aIDExpDate.equals("") && !aIDExpDate.equals("null")) { iDExpDate = fDate.getDate(aIDExpDate); } else { iDExpDate = null; } return this; } public String getBirthday() { if (birthday != null) return fDate.getString(birthday); else return null; } public LPCPersonSchema setBirthday(Date aBirthday) { birthday = aBirthday; return this; } public LPCPersonSchema setBirthday(String aBirthday) { if (aBirthday != null && !aBirthday.equals("") && !aBirthday.equals("null")) { birthday = fDate.getDate(aBirthday); } else { birthday = null; } return this; } public String getMarriageDate() { if (marriageDate != null) return fDate.getString(marriageDate); else return null; } public LPCPersonSchema setMarriageDate(Date aMarriageDate) { marriageDate = aMarriageDate; return this; } public LPCPersonSchema setMarriageDate(String aMarriageDate) { if (aMarriageDate != null && !aMarriageDate.equals("") && !aMarriageDate.equals("null")) { marriageDate = fDate.getDate(aMarriageDate); } else { marriageDate = null; } return this; } public LPCPersonSchema setStature(double aStature) { stature = aStature; return this; } public LPCPersonSchema setStature(String aStature) { if (aStature != null && !aStature.equals("") && !aStature.equals("null")) { stature = Double.parseDouble(aStature); } return this; } public LPCPersonSchema setAvoirdupois(double aAvoirdupois) { avoirdupois = aAvoirdupois; return this; } public LPCPersonSchema setAvoirdupois(String aAvoirdupois) { if (aAvoirdupois != null && !aAvoirdupois.equals("") && !aAvoirdupois.equals("null")) { avoirdupois = Double.parseDouble(aAvoirdupois); } return this; } public LPCPersonSchema setBMI(double aBMI) { bMI = aBMI; return this; } public LPCPersonSchema setBMI(String aBMI) { if (aBMI != null && !aBMI.equals("") && !aBMI.equals("null")) { bMI = Double.parseDouble(aBMI); } return this; } public String getJoinCompanyDate() { if (joinCompanyDate != null) return fDate.getString(joinCompanyDate); else return null; } public LPCPersonSchema setJoinCompanyDate(Date aJoinCompanyDate) { joinCompanyDate = aJoinCompanyDate; return this; } public LPCPersonSchema setJoinCompanyDate(String aJoinCompanyDate) { if (aJoinCompanyDate != null && !aJoinCompanyDate.equals("") && !aJoinCompanyDate.equals("null")) { joinCompanyDate = fDate.getDate(aJoinCompanyDate); } else { joinCompanyDate = null; } return this; } public String getStartWorkDate() { if (startWorkDate != null) return fDate.getString(startWorkDate); else return null; } public LPCPersonSchema setStartWorkDate(Date aStartWorkDate) { startWorkDate = aStartWorkDate; return this; } public LPCPersonSchema setStartWorkDate(String aStartWorkDate) { if (aStartWorkDate != null && !aStartWorkDate.equals("") && !aStartWorkDate.equals("null")) { startWorkDate = fDate.getDate(aStartWorkDate); } else { startWorkDate = null; } return this; } public LPCPersonSchema setSalary(double aSalary) { salary = aSalary; return this; } public LPCPersonSchema setSalary(String aSalary) { if (aSalary != null && !aSalary.equals("") && !aSalary.equals("null")) { salary = Double.parseDouble(aSalary); } return this; } public String getMakeDate() { if (makeDate != null) return fDate.getString(makeDate); else return null; } public LPCPersonSchema setMakeDate(Date aMakeDate) { makeDate = aMakeDate; return this; } public LPCPersonSchema 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 LPCPersonSchema setModifyDate(Date aModifyDate) { modifyDate = aModifyDate; return this; } public LPCPersonSchema setModifyDate(String aModifyDate) { if (aModifyDate != null && !aModifyDate.equals("") && !aModifyDate.equals("null")) { modifyDate = fDate.getDate(aModifyDate); } else { modifyDate = null; } return this; } @Override public LPCPersonSchema setSchema(LPCPersonSchema aLPCPersonSchema) { SchemaHelper.setSchema(aLPCPersonSchema, this); return this; } @Override public LPCPersonSchema getSchema() { LPCPersonSchema aLPCPersonSchema = new LPCPersonSchema(); aLPCPersonSchema.setSchema(this); return aLPCPersonSchema; } @Override public String encode() { return SchemaHelper.encode(this); } @Override public boolean decode(String strMessage) { return SchemaHelper.decode(this, strMessage); } @Override public String getV(String FCode) { return SchemaHelper.getV(this, FCode); } @Override public String getV(int nFieldIndex) { return SchemaHelper.getV(this, nFieldIndex); } @Override public boolean setV(String FCode, String FValue) { return SchemaHelper.setV(this, FCode, FValue); } @Override public int getFieldCount() { return FIELDNUM; } @Override public int getFieldIndex(String strFieldName) { return SchemaHelper.getFieldIndex(this.getClass(), strFieldName); } @Override public String getFieldName(int nFieldIndex) { return SchemaHelper.getFieldName(this.getClass(), nFieldIndex); } @Override public int getFieldType(String strFieldName) { return SchemaHelper.getFieldType(this.getClass(), strFieldName); } @Override public int getFieldType(int nFieldIndex) { return SchemaHelper.getFieldType(this.getClass(), nFieldIndex); } }