/** * 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: LPInsureAccTraceSchema

*

Description: DB层 Schema 类文件

*

Company: Sinosoft Co.,LTD

* * @author Makerx2 * @Database PhysicalDataModel_2 * @CreateDatetime 2025-04-03 11:31:17 298 */ @Table(name = "LPInsureAccTrace", desc = "LPInsureAccTrace") @EqualsAndHashCode(callSuper = false) @Accessors(chain = true) public class LPInsureAccTraceSchema extends Entity implements Schema, Cloneable { // @Field /** * 批单号 */ @Getter @Setter @Id @Column(index = 0, name = "EdorNo", desc = "批单号", type = Schema.TYPE_STRING, columnDefinition = "varchar(20)", nullable = false, length = 20) private String edorNo; /** * 批改类型 */ @Getter @Setter @Id @Column(index = 1, name = "EdorType", desc = "批改类型", type = Schema.TYPE_STRING, columnDefinition = "varchar(10)", nullable = false, length = 10) private String edorType; /** * 集体合同号码 */ @Getter @Setter @Column(index = 2, name = "GrpContNo", desc = "集体合同号码", type = Schema.TYPE_STRING, columnDefinition = "varchar(20)", length = 20) private String grpContNo; /** * 集体保单险种号码 */ @Getter @Setter @Column(index = 3, name = "GrpPolNo", desc = "集体保单险种号码", type = Schema.TYPE_STRING, columnDefinition = "varchar(20)", length = 20) private String grpPolNo; /** * 合同号码 */ @Getter @Setter @Column(index = 4, name = "ContNo", desc = "合同号码", type = Schema.TYPE_STRING, columnDefinition = "varchar(20)", length = 20) private String contNo; /** * 保单险种号码 */ @Getter @Setter @Column(index = 5, name = "PolNo", desc = "保单险种号码", type = Schema.TYPE_STRING, columnDefinition = "varchar(20)", length = 20) private String polNo; /** * 流水号 */ @Getter @Setter @Id @Column(index = 6, name = "SerialNo", desc = "流水号", type = Schema.TYPE_STRING, columnDefinition = "varchar(20)", nullable = false, length = 20) private String serialNo; /** * 保险帐户号码 */ @Getter @Setter @Column(index = 7, name = "InsuAccNo", desc = "保险帐户号码", type = Schema.TYPE_STRING, columnDefinition = "varchar(20)", length = 20) private String insuAccNo; /** * 险种编码 */ @Getter @Setter @Column(index = 8, name = "RiskCode", desc = "险种编码", type = Schema.TYPE_STRING, columnDefinition = "varchar(10)", length = 10) private String riskCode; /** * 交费计划编码 */ @Getter @Setter @Column(index = 9, name = "PayPlanCode", desc = "交费计划编码", type = Schema.TYPE_STRING, columnDefinition = "varchar(10)", length = 10) private String payPlanCode; /** * 对应其它号码 */ @Getter @Setter @Column(index = 10, name = "OtherNo", desc = "对应其它号码", type = Schema.TYPE_STRING, columnDefinition = "varchar(20)", length = 20) private String otherNo; /** * 对应其它号码类型 */ @Getter @Setter @Column(index = 11, name = "OtherType", desc = "对应其它号码类型", type = Schema.TYPE_STRING, columnDefinition = "varchar(2)", length = 2) private String otherType; /** * 账户归属属性 */ @Getter @Setter @Column(index = 12, name = "AccAscription", desc = "账户归属属性", type = Schema.TYPE_STRING, columnDefinition = "varchar(1)", length = 1) private String accAscription; /** * 金额类型 */ @Getter @Setter @Column(index = 13, name = "MoneyType", desc = "金额类型", type = Schema.TYPE_STRING, columnDefinition = "varchar(6)", length = 6) private String moneyType; /** * 本次金额 */ @Getter @Column(index = 14, name = "Money", desc = "本次金额", type = Schema.TYPE_DOUBLE, columnDefinition = "decimal(12,2)", precision = 2, scale = 12) private double money; /** * 本次单位数 */ @Getter @Column(index = 15, name = "UnitCount", desc = "本次单位数", type = Schema.TYPE_DOUBLE, columnDefinition = "decimal(16,6)", precision = 6, scale = 16) private double unitCount; /** * 交费日期 */ @Column(index = 16, name = "PayDate", desc = "交费日期", type = Schema.TYPE_DATE, columnDefinition = "date") private Date payDate; /** * 状态 */ @Getter @Setter @Column(index = 17, name = "State", desc = "状态", type = Schema.TYPE_STRING, columnDefinition = "varchar(10)", length = 10) private String state; /** * 管理机构 */ @Getter @Setter @Column(index = 18, name = "ManageCom", desc = "管理机构", type = Schema.TYPE_STRING, columnDefinition = "varchar(20)", length = 20) private String manageCom; @Getter @Setter @Column(index = 19, name = "Operator", desc = "Operator", type = Schema.TYPE_STRING, columnDefinition = "varchar(20)", length = 20) private String operator; /** * 入机日期 */ @Column(index = 20, name = "MakeDate", desc = "入机日期", type = Schema.TYPE_DATE, columnDefinition = "date") private Date makeDate; /** * 入机时间 */ @Getter @Setter @Column(index = 21, name = "MakeTime", desc = "入机时间", type = Schema.TYPE_STRING, columnDefinition = "varchar(8)", length = 8) private String makeTime; /** * 最后一次修改日期 */ @Column(index = 22, name = "ModifyDate", desc = "最后一次修改日期", type = Schema.TYPE_DATE, columnDefinition = "date") private Date modifyDate; /** * 最后一次修改时间 */ @Getter @Setter @Column(index = 23, name = "ModifyTime", desc = "最后一次修改时间", type = Schema.TYPE_STRING, columnDefinition = "varchar(8)", length = 8) private String modifyTime; /** * 管理费编码 */ @Getter @Setter @Column(index = 24, name = "FeeCode", desc = "管理费编码", type = Schema.TYPE_STRING, columnDefinition = "varchar(6)", length = 6) private String feeCode; /** * 账户批单号码 */ @Getter @Setter @Column(index = 25, name = "AccAlterNo", desc = "账户批单号码", type = Schema.TYPE_STRING, columnDefinition = "varchar(20)", length = 20) private String accAlterNo; /** * 账户批单号码类型 */ @Getter @Setter @Column(index = 26, name = "AccAlterType", desc = "账户批单号码类型", type = Schema.TYPE_STRING, columnDefinition = "varchar(5)", length = 5) private String accAlterType; /** * 账户业务类型 */ @Getter @Setter @Column(index = 27, name = "BusyType", desc = "账户业务类型", type = Schema.TYPE_STRING, columnDefinition = "varchar(10)", length = 10) private String busyType; /** * 应该计价日期 */ @Column(index = 28, name = "ShouldValueDate", desc = "应该计价日期", type = Schema.TYPE_DATE, columnDefinition = "date") private Date shouldValueDate; /** * 实际计价日期 */ @Column(index = 29, name = "ValueDate", desc = "实际计价日期", type = Schema.TYPE_DATE, columnDefinition = "date") private Date valueDate; /** * 交费收据号 */ @Getter @Setter @Column(index = 30, name = "PayNo", desc = "交费收据号", type = Schema.TYPE_STRING, columnDefinition = "varchar(20)", length = 20) private String payNo; /** * 责任编码 */ @Getter @Setter @Column(index = 31, name = "DutyCode", desc = "责任编码", type = Schema.TYPE_STRING, columnDefinition = "varchar(20)", length = 20) private String dutyCode; /** * 币别 */ @Getter @Setter @Column(index = 32, name = "Currency", desc = "币别", type = Schema.TYPE_STRING, columnDefinition = "varchar(3)", length = 3) private String currency; /** * 投资类型 */ @Getter @Setter @Column(index = 33, name = "InvestType", desc = "投资类型", type = Schema.TYPE_STRING, columnDefinition = "varchar(3)", length = 3) private String investType; /** * 本次使用价格 */ @Getter @Column(index = 34, name = "UnitCountPrice", desc = "本次使用价格", type = Schema.TYPE_DOUBLE, columnDefinition = "decimal(26,10)", precision = 10, scale = 26) private double unitCountPrice; /** * 本次交易参与金额 */ @Getter @Column(index = 35, name = "PreMoney", desc = "本次交易参与金额", type = Schema.TYPE_DOUBLE, columnDefinition = "decimal(26,10)", precision = 10, scale = 26) private double preMoney; /** * 业务生效日期 */ @Column(index = 36, name = "ConfDate", desc = "业务生效日期", type = Schema.TYPE_DATE, columnDefinition = "date") private Date confDate; /** * T日 */ @Column(index = 37, name = "AllocationDate", desc = "T日", type = Schema.TYPE_DATE, columnDefinition = "date") private Date allocationDate; /** * 计价日期 */ @Column(index = 38, name = "PricingDate", desc = "计价日期", type = Schema.TYPE_DATE, columnDefinition = "date") private Date pricingDate; /** * 公司代码 */ @Getter @Setter @Column(index = 39, name = "ComCode", desc = "公司代码", type = Schema.TYPE_STRING, columnDefinition = "varchar(20)", length = 20) private String comCode; /** * 最后一次修改操作员 */ @Getter @Setter @Column(index = 40, name = "ModifyOperator", desc = "最后一次修改操作员", type = Schema.TYPE_STRING, columnDefinition = "varchar(30)", length = 30) private String modifyOperator; /** * 交易号 */ @Getter @Setter @Column(index = 41, name = "TransNo", desc = "交易号", type = Schema.TYPE_STRING, columnDefinition = "varchar(60)", length = 60) private String transNo; public static final int FIELDNUM = 42; // 数据库表的字段个数 private transient FDate fDate = new FDate(); // 处理日期 public transient CErrors mErrors; // 错误信息 // @Constructor public LPInsureAccTraceSchema() { mErrors = new CErrors(); } // @Method @Override public Object clone() throws CloneNotSupportedException { LPInsureAccTraceSchema cloned = (LPInsureAccTraceSchema) 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 LPInsureAccTraceSchema setMoney(double aMoney) { money = aMoney; return this; } public LPInsureAccTraceSchema setMoney(String aMoney) { if (aMoney != null && !aMoney.equals("") && !aMoney.equals("null")) { money = Double.parseDouble(aMoney); } return this; } public LPInsureAccTraceSchema setUnitCount(double aUnitCount) { unitCount = aUnitCount; return this; } public LPInsureAccTraceSchema setUnitCount(String aUnitCount) { if (aUnitCount != null && !aUnitCount.equals("") && !aUnitCount.equals("null")) { unitCount = Double.parseDouble(aUnitCount); } return this; } public String getPayDate() { if (payDate != null) return fDate.getString(payDate); else return null; } public LPInsureAccTraceSchema setPayDate(Date aPayDate) { payDate = aPayDate; return this; } public LPInsureAccTraceSchema setPayDate(String aPayDate) { if (aPayDate != null && !aPayDate.equals("") && !aPayDate.equals("null")) { payDate = fDate.getDate(aPayDate); } else { payDate = null; } return this; } public String getMakeDate() { if (makeDate != null) return fDate.getString(makeDate); else return null; } public LPInsureAccTraceSchema setMakeDate(Date aMakeDate) { makeDate = aMakeDate; return this; } public LPInsureAccTraceSchema 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 LPInsureAccTraceSchema setModifyDate(Date aModifyDate) { modifyDate = aModifyDate; return this; } public LPInsureAccTraceSchema setModifyDate(String aModifyDate) { if (aModifyDate != null && !aModifyDate.equals("") && !aModifyDate.equals("null")) { modifyDate = fDate.getDate(aModifyDate); } else { modifyDate = null; } return this; } public String getShouldValueDate() { if (shouldValueDate != null) return fDate.getString(shouldValueDate); else return null; } public LPInsureAccTraceSchema setShouldValueDate(Date aShouldValueDate) { shouldValueDate = aShouldValueDate; return this; } public LPInsureAccTraceSchema setShouldValueDate(String aShouldValueDate) { if (aShouldValueDate != null && !aShouldValueDate.equals("") && !aShouldValueDate.equals("null")) { shouldValueDate = fDate.getDate(aShouldValueDate); } else { shouldValueDate = null; } return this; } public String getValueDate() { if (valueDate != null) return fDate.getString(valueDate); else return null; } public LPInsureAccTraceSchema setValueDate(Date aValueDate) { valueDate = aValueDate; return this; } public LPInsureAccTraceSchema setValueDate(String aValueDate) { if (aValueDate != null && !aValueDate.equals("") && !aValueDate.equals("null")) { valueDate = fDate.getDate(aValueDate); } else { valueDate = null; } return this; } public LPInsureAccTraceSchema setUnitCountPrice(double aUnitCountPrice) { unitCountPrice = aUnitCountPrice; return this; } public LPInsureAccTraceSchema setUnitCountPrice(String aUnitCountPrice) { if (aUnitCountPrice != null && !aUnitCountPrice.equals("") && !aUnitCountPrice.equals("null")) { unitCountPrice = Double.parseDouble(aUnitCountPrice); } return this; } public LPInsureAccTraceSchema setPreMoney(double aPreMoney) { preMoney = aPreMoney; return this; } public LPInsureAccTraceSchema setPreMoney(String aPreMoney) { if (aPreMoney != null && !aPreMoney.equals("") && !aPreMoney.equals("null")) { preMoney = Double.parseDouble(aPreMoney); } return this; } public String getConfDate() { if (confDate != null) return fDate.getString(confDate); else return null; } public LPInsureAccTraceSchema setConfDate(Date aConfDate) { confDate = aConfDate; return this; } public LPInsureAccTraceSchema setConfDate(String aConfDate) { if (aConfDate != null && !aConfDate.equals("") && !aConfDate.equals("null")) { confDate = fDate.getDate(aConfDate); } else { confDate = null; } return this; } public String getAllocationDate() { if (allocationDate != null) return fDate.getString(allocationDate); else return null; } public LPInsureAccTraceSchema setAllocationDate(Date aAllocationDate) { allocationDate = aAllocationDate; return this; } public LPInsureAccTraceSchema setAllocationDate(String aAllocationDate) { if (aAllocationDate != null && !aAllocationDate.equals("") && !aAllocationDate.equals("null")) { allocationDate = fDate.getDate(aAllocationDate); } else { allocationDate = null; } return this; } public String getPricingDate() { if (pricingDate != null) return fDate.getString(pricingDate); else return null; } public LPInsureAccTraceSchema setPricingDate(Date aPricingDate) { pricingDate = aPricingDate; return this; } public LPInsureAccTraceSchema setPricingDate(String aPricingDate) { if (aPricingDate != null && !aPricingDate.equals("") && !aPricingDate.equals("null")) { pricingDate = fDate.getDate(aPricingDate); } else { pricingDate = null; } return this; } @Override public LPInsureAccTraceSchema setSchema(LPInsureAccTraceSchema aLPInsureAccTraceSchema) { SchemaHelper.setSchema(aLPInsureAccTraceSchema, this); return this; } @Override public LPInsureAccTraceSchema getSchema() { LPInsureAccTraceSchema aLPInsureAccTraceSchema = new LPInsureAccTraceSchema(); aLPInsureAccTraceSchema.setSchema(this); return aLPInsureAccTraceSchema; } @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); } }