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

*

Description: DB层 Schema 类文件

*

Company: Sinosoft Co.,LTD

* * @author Makerx2 * @Database Physical Data Model 1 * @CreateDatetime 2025-04-11 09:22:29 427 */ @Table(name = "LPContPlanTrace", desc = "保全保障层级变更轨迹表") @EqualsAndHashCode(callSuper = false) @Accessors(chain = true) public class LPContPlanTraceSchema 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; /** * RE 保单复效 CM 客户重要资料变更

* AM 追加保费 IC 保单层客户重要资料变更

* RF 保单贷款清偿 FM 交费方式及期限变更

* NS 新增附加险 HI 增补���知

* AA 附加险加保 RL 保单贷款续贷

* XD 新增可选责任 RG 生存保险金追回

* JD 可选责任加保 RB 保全回退

* LR 保单补发 IO 被保险人职业类别变更

* RA 保单复缴

* TR 保费自垫清偿 */ @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 @Id @Column(index = 2, name = "GrpContNo", desc = "团体保单号", type = Schema.TYPE_STRING, columnDefinition = "varchar(20)", nullable = false, length = 20) private String grpContNo; @Getter @Setter @Id @Column(index = 3, name = "ContNo", desc = "保单号", type = Schema.TYPE_STRING, columnDefinition = "varchar(20)", nullable = false, length = 20) private String contNo; @Getter @Setter @Id @Column(index = 4, name = "InsuredNo", desc = "被保险人客户号", type = Schema.TYPE_STRING, columnDefinition = "varchar(24)", nullable = false, length = 24) private String insuredNo; @Getter @Setter @Id @Column(index = 5, name = "PlanCode", desc = "方案编码", type = Schema.TYPE_STRING, columnDefinition = "varchar(10)", nullable = false, length = 10) private String planCode; @Id @Column(index = 6, name = "StartDate", desc = "方案生效时间", type = Schema.TYPE_DATE, columnDefinition = "DATE", nullable = false) private Date startDate; @Column(index = 7, name = "EndDate", desc = "方案结束时间", type = Schema.TYPE_DATE, columnDefinition = "DATE") private Date endDate; @Getter @Setter @Column(index = 8, name = "Remark", desc = "备注", type = Schema.TYPE_STRING, columnDefinition = "varchar(255)", length = 255) private String remark; @Getter @Setter @Column(index = 9, name = "Operator", desc = "操作员", type = Schema.TYPE_STRING, columnDefinition = "varchar(20)", nullable = false, length = 20) private String operator; @Column(index = 10, name = "MakeDate", desc = "入机日期", type = Schema.TYPE_DATE, columnDefinition = "DATE", nullable = false) private Date makeDate; @Getter @Setter @Column(index = 11, name = "MakeTime", desc = "入机时间", type = Schema.TYPE_STRING, columnDefinition = "varchar(8)", nullable = false, length = 8) private String makeTime; @Column(index = 12, name = "ModifyDate", desc = "最后一次修改日期", type = Schema.TYPE_DATE, columnDefinition = "DATE", nullable = false) private Date modifyDate; @Getter @Setter @Column(index = 13, name = "ModifyTime", desc = "最后一次修改时间", type = Schema.TYPE_STRING, columnDefinition = "varchar(8)", nullable = false, length = 8) private String modifyTime; @Getter @Setter @Column(index = 14, name = "ModifyOperator", desc = "最后一次修改操作员", type = Schema.TYPE_STRING, columnDefinition = "varchar(30)", nullable = false, length = 30) private String modifyOperator; @Getter @Setter @Column(index = 15, name = "StandByFlag1", desc = "备用字段1", type = Schema.TYPE_STRING, columnDefinition = "varchar(100)", length = 100) private String standByFlag1; @Getter @Setter @Column(index = 16, name = "StandByFlag2", desc = "备用字段2", type = Schema.TYPE_STRING, columnDefinition = "varchar(100)", length = 100) private String standByFlag2; public static final int FIELDNUM = 17; // 数据库表的字段个数 private transient FDate fDate = new FDate(); // 处理日期 public transient CErrors mErrors; // 错误信息 // @Constructor public LPContPlanTraceSchema() { mErrors = new CErrors(); } // @Method @Override public Object clone() throws CloneNotSupportedException { LPContPlanTraceSchema cloned = (LPContPlanTraceSchema) 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 getStartDate() { if (startDate != null) return fDate.getString(startDate); else return null; } public LPContPlanTraceSchema setStartDate(Date aStartDate) { startDate = aStartDate; return this; } public LPContPlanTraceSchema setStartDate(String aStartDate) { if (aStartDate != null && !aStartDate.equals("") && !aStartDate.equals("null")) { startDate = fDate.getDate(aStartDate); } else { startDate = null; } return this; } public String getEndDate() { if (endDate != null) return fDate.getString(endDate); else return null; } public LPContPlanTraceSchema setEndDate(Date aEndDate) { endDate = aEndDate; return this; } public LPContPlanTraceSchema setEndDate(String aEndDate) { if (aEndDate != null && !aEndDate.equals("") && !aEndDate.equals("null")) { endDate = fDate.getDate(aEndDate); } else { endDate = null; } return this; } public String getMakeDate() { if (makeDate != null) return fDate.getString(makeDate); else return null; } public LPContPlanTraceSchema setMakeDate(Date aMakeDate) { makeDate = aMakeDate; return this; } public LPContPlanTraceSchema 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 LPContPlanTraceSchema setModifyDate(Date aModifyDate) { modifyDate = aModifyDate; return this; } public LPContPlanTraceSchema setModifyDate(String aModifyDate) { if (aModifyDate != null && !aModifyDate.equals("") && !aModifyDate.equals("null")) { modifyDate = fDate.getDate(aModifyDate); } else { modifyDate = null; } return this; } @Override public LPContPlanTraceSchema setSchema(LPContPlanTraceSchema aLPContPlanTraceSchema) { SchemaHelper.setSchema(aLPContPlanTraceSchema, this); return this; } @Override public LPContPlanTraceSchema getSchema() { LPContPlanTraceSchema aLPContPlanTraceSchema = new LPContPlanTraceSchema(); aLPContPlanTraceSchema.setSchema(this); return aLPContPlanTraceSchema; } @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); } }