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

*

Description: DB层 Schema 类文件

*

Company: Sinosoft Co.,LTD

* * @author Makerx2 * @Database zcn * @CreateDatetime 2025-04-02 15:29:36 673 */ @Table(name = "LPCustomerImpart", desc = "LPCustomerImpart") @EqualsAndHashCode(callSuper = false) @Accessors(chain = true) public class LPCustomerImpartSchema extends Entity implements Schema, Cloneable { // @Field /** * 批单号 */ @Getter @Setter @Id @Column(index = 0, name = "EdorNo", desc = "批单号", type = Schema.TYPE_STRING) private String edorNo; /** * 批改类型 */ @Getter @Setter @Id @Column(index = 1, name = "EdorType", desc = "批改类型", type = Schema.TYPE_STRING) private String edorType; /** * 集体合同号码 */ @Getter @Setter @Column(index = 2, name = "GrpContNo", desc = "集体合同号码", type = Schema.TYPE_STRING) private String grpContNo; /** * 合同号码 */ @Getter @Setter @Id @Column(index = 3, name = "ContNo", desc = "合同号码", type = Schema.TYPE_STRING) private String contNo; /** * 总单投保单号码 */ @Getter @Setter @Id @Column(index = 4, name = "ProposalContNo", desc = "总单投保单号码", type = Schema.TYPE_STRING) private String proposalContNo; /** * 印刷号码 */ @Getter @Setter @Column(index = 5, name = "PrtNo", desc = "印刷号码", type = Schema.TYPE_STRING) private String prtNo; /** * 告知编码 */ @Getter @Setter @Id @Column(index = 6, name = "ImpartCode", desc = "告知编码", type = Schema.TYPE_STRING) private String impartCode; /** * 告知版别 */ @Getter @Setter @Id @Column(index = 7, name = "ImpartVer", desc = "告知版别", type = Schema.TYPE_STRING) private String impartVer; /** * 告知内容 */ @Getter @Setter @Column(index = 8, name = "ImpartContent", desc = "告知内容", type = Schema.TYPE_STRING) private String impartContent; /** * 告知参数展现模版 */ @Getter @Setter @Column(index = 9, name = "ImpartParamModle", desc = "告知参数展现模版", type = Schema.TYPE_STRING) private String impartParamModle; /** * 客户号码 */ @Getter @Setter @Id @Column(index = 10, name = "CustomerNo", desc = "客户号码", type = Schema.TYPE_STRING) private String customerNo; /** * 客户号码类型 */ @Getter @Setter @Id @Column(index = 11, name = "CustomerNoType", desc = "客户号码类型", type = Schema.TYPE_STRING) private String customerNoType; /** * 是否参与核保核赔标志 */ @Getter @Setter @Column(index = 12, name = "UWClaimFlg", desc = "是否参与核保核赔标志", type = Schema.TYPE_STRING) private String uWClaimFlg; /** * 打印标志 */ @Getter @Setter @Column(index = 13, name = "PrtFlag", desc = "打印标志", type = Schema.TYPE_STRING) private String prtFlag; /** * 操作员 */ @Getter @Setter @Column(index = 14, name = "Operator", desc = "操作员", type = Schema.TYPE_STRING) private String operator; /** * 入机日期 */ @Column(index = 15, name = "MakeDate", desc = "入机日期", type = Schema.TYPE_DATE) private Date makeDate; /** * 入机时间 */ @Getter @Setter @Column(index = 16, name = "MakeTime", desc = "入机时间", type = Schema.TYPE_STRING) private String makeTime; /** * 最后一次修改日期 */ @Column(index = 17, name = "ModifyDate", desc = "最后一次修改日期", type = Schema.TYPE_DATE) private Date modifyDate; /** * 最后一次修改时间 */ @Getter @Setter @Column(index = 18, name = "ModifyTime", desc = "最后一次修改时间", type = Schema.TYPE_STRING) private String modifyTime; /** * 批次号 */ @Getter @Id @Column(index = 19, name = "PatchNo", desc = "批次号", type = Schema.TYPE_INT) private int patchNo; /** * 发病日期 */ @Column(index = 20, name = "DisDate", desc = "发病日期", type = Schema.TYPE_DATE) private Date disDate; public static final int FIELDNUM = 21; // 数据库表的字段个数 private transient FDate fDate = new FDate(); // 处理日期 public transient CErrors mErrors; // 错误信息 // @Constructor public LPCustomerImpartSchema() { mErrors = new CErrors(); } // @Method public Object clone() throws CloneNotSupportedException { LPCustomerImpartSchema cloned = (LPCustomerImpartSchema) 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 String getMakeDate() { if (makeDate != null) return fDate.getString(makeDate); else return null; } public LPCustomerImpartSchema setMakeDate(Date aMakeDate) { makeDate = aMakeDate; return this; } public LPCustomerImpartSchema 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 LPCustomerImpartSchema setModifyDate(Date aModifyDate) { modifyDate = aModifyDate; return this; } public LPCustomerImpartSchema setModifyDate(String aModifyDate) { if (aModifyDate != null && !aModifyDate.equals("") && !aModifyDate.equals("null")) { modifyDate = fDate.getDate(aModifyDate); } else { modifyDate = null; } return this; } public LPCustomerImpartSchema setPatchNo(int aPatchNo) { patchNo = aPatchNo; return this; } public LPCustomerImpartSchema setPatchNo(String aPatchNo) { if (aPatchNo != null && !aPatchNo.equals("") && !aPatchNo.equals("null")) { patchNo = Integer.parseInt(aPatchNo); } return this; } public String getDisDate() { if (disDate != null) return fDate.getString(disDate); else return null; } public LPCustomerImpartSchema setDisDate(Date aDisDate) { disDate = aDisDate; return this; } public LPCustomerImpartSchema setDisDate(String aDisDate) { if (aDisDate != null && !aDisDate.equals("") && !aDisDate.equals("null")) { disDate = fDate.getDate(aDisDate); } else { disDate = null; } return this; } public LPCustomerImpartSchema setSchema(LPCustomerImpartSchema aLPCustomerImpartSchema) { SchemaHelper.setSchema(aLPCustomerImpartSchema, this); return this; } public LPCustomerImpartSchema getSchema() { LPCustomerImpartSchema aLPCustomerImpartSchema = new LPCustomerImpartSchema(); aLPCustomerImpartSchema.setSchema(this); return aLPCustomerImpartSchema; } 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); } }