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

*

Description: DB层 Schema 类文件

*

Company: Sinosoft Co.,LTD

* @Database Schema2 * @author Makerx2 * @CreateDatetime 2019-03-16 16:05:49 530 */ @Table(name = "LJAGetOther") @EqualsAndHashCode(callSuper = false) @Accessors(chain = true) public class LJAGetOtherSchema extends Entity implements Schema, Cloneable { // @Field @Getter @Setter @Id @Column(index = 0, name = "ActuGetNo", desc = "实付号码", type = Schema.TYPE_STRING) private String actuGetNo; @Getter @Setter @Id @Column(index = 1, name = "OtherNo", desc = "其它退费收据号码", type = Schema.TYPE_STRING) private String otherNo; @Getter @Setter @Id @Column(index = 2, name = "OtherNoType", desc = "其它退费收据类型", type = Schema.TYPE_STRING) private String otherNoType; @Getter @Setter @Column(index = 3, name = "PayMode", desc = "交费方式", type = Schema.TYPE_STRING) private String payMode; @Getter @Column(index = 4, name = "GetMoney", desc = "退费金额", type = Schema.TYPE_DOUBLE) private double getMoney; @Column(index = 5, name = "GetDate", desc = "退费日期", type = Schema.TYPE_DATE) private Date getDate; @Column(index = 6, name = "EnterAccDate", desc = "到帐日期", type = Schema.TYPE_DATE) private Date enterAccDate; @Column(index = 7, name = "ConfDate", desc = "确认日期", type = Schema.TYPE_DATE) private Date confDate; @Getter @Setter @Column(index = 8, name = "ManageCom", desc = "管理机构", type = Schema.TYPE_STRING) private String manageCom; @Getter @Setter @Column(index = 9, name = "AgentCom", desc = "代理机构", type = Schema.TYPE_STRING) private String agentCom; @Getter @Setter @Column(index = 10, name = "AgentType", desc = "代理机构内部分类", type = Schema.TYPE_STRING) private String agentType; @Getter @Setter @Column(index = 11, name = "APPntName", desc = "投保人名称", type = Schema.TYPE_STRING) private String aPPntName; @Getter @Setter @Column(index = 12, name = "AgentGroup", desc = "代理人组别", type = Schema.TYPE_STRING) private String agentGroup; @Getter @Setter @Column(index = 13, name = "AgentCode", desc = "代理人编码", type = Schema.TYPE_STRING) private String agentCode; @Getter @Setter @Column(index = 14, name = "FeeOperationType", desc = "补/退费业务类型", type = Schema.TYPE_STRING) private String feeOperationType; @Getter @Setter @Column(index = 15, name = "FeeFinaType", desc = "补/退费财务类型", type = Schema.TYPE_STRING) private String feeFinaType; @Getter @Setter @Column(index = 16, name = "SerialNo", desc = "流水号", type = Schema.TYPE_STRING) private String serialNo; @Getter @Setter @Column(index = 17, name = "Operator", desc = "操作员", type = Schema.TYPE_STRING) private String operator; @Getter @Setter @Column(index = 18, name = "MakeTime", desc = "入机时间", type = Schema.TYPE_STRING) private String makeTime; @Column(index = 19, name = "MakeDate", desc = "入机日期", type = Schema.TYPE_DATE) private Date makeDate; @Getter @Setter @Column(index = 20, name = "State", desc = "状态", type = Schema.TYPE_STRING) private String state; @Getter @Setter @Column(index = 21, name = "GetNoticeNo", desc = "给付通知书号码", type = Schema.TYPE_STRING) private String getNoticeNo; @Column(index = 22, name = "ModifyDate", desc = "最后一次修改日期", type = Schema.TYPE_DATE) private Date modifyDate; @Getter @Setter @Column(index = 23, name = "ModifyTime", desc = "最后一次修改时间", type = Schema.TYPE_STRING) private String modifyTime; @Getter @Setter @Column(index = 24, name = "OperState", desc = "业务状态", type = Schema.TYPE_STRING) private String operState; @Getter @Setter @Id @Column(index = 25, name = "Currency", desc = "币别", type = Schema.TYPE_STRING) private String currency; @Getter @Column(index = 26, name = "NetAmount", desc = "净费用", type = Schema.TYPE_DOUBLE) private double netAmount; @Getter @Column(index = 27, name = "TaxAmount", desc = "税额", type = Schema.TYPE_DOUBLE) private double taxAmount; @Getter @Column(index = 28, name = "Tax", desc = "税率", type = Schema.TYPE_DOUBLE) private double tax; public static final int FIELDNUM = 29; // 数据库表的字段个数 private transient FDate fDate = new FDate(); // 处理日期 public transient CErrors mErrors; // 错误信息 // @Constructor public LJAGetOtherSchema() { mErrors = new CErrors(); } // @Method public Object clone() throws CloneNotSupportedException { LJAGetOtherSchema cloned = (LJAGetOtherSchema) 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 LJAGetOtherSchema setGetMoney(double aGetMoney) { getMoney = aGetMoney; return this; } public LJAGetOtherSchema setGetMoney(String aGetMoney) { if (aGetMoney != null && !aGetMoney.equals("") && !aGetMoney.equals("null")) { getMoney = new Double(aGetMoney); } return this; } public String getGetDate() { if (getDate != null) return fDate.getString(getDate); else return null; } public LJAGetOtherSchema setGetDate(Date aGetDate) { getDate = aGetDate; return this; } public LJAGetOtherSchema setGetDate(String aGetDate) { if (aGetDate != null && !aGetDate.equals("") && !aGetDate.equals("null")) { getDate = fDate.getDate(aGetDate); } else { getDate = null; } return this; } public String getEnterAccDate() { if (enterAccDate != null) return fDate.getString(enterAccDate); else return null; } public LJAGetOtherSchema setEnterAccDate(Date aEnterAccDate) { enterAccDate = aEnterAccDate; return this; } public LJAGetOtherSchema setEnterAccDate(String aEnterAccDate) { if (aEnterAccDate != null && !aEnterAccDate.equals("") && !aEnterAccDate.equals("null")) { enterAccDate = fDate.getDate(aEnterAccDate); } else { enterAccDate = null; } return this; } public String getConfDate() { if (confDate != null) return fDate.getString(confDate); else return null; } public LJAGetOtherSchema setConfDate(Date aConfDate) { confDate = aConfDate; return this; } public LJAGetOtherSchema setConfDate(String aConfDate) { if (aConfDate != null && !aConfDate.equals("") && !aConfDate.equals("null")) { confDate = fDate.getDate(aConfDate); } else { confDate = null; } return this; } public String getMakeDate() { if (makeDate != null) return fDate.getString(makeDate); else return null; } public LJAGetOtherSchema setMakeDate(Date aMakeDate) { makeDate = aMakeDate; return this; } public LJAGetOtherSchema 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 LJAGetOtherSchema setModifyDate(Date aModifyDate) { modifyDate = aModifyDate; return this; } public LJAGetOtherSchema setModifyDate(String aModifyDate) { if (aModifyDate != null && !aModifyDate.equals("") && !aModifyDate.equals("null")) { modifyDate = fDate.getDate(aModifyDate); } else { modifyDate = null; } return this; } public LJAGetOtherSchema setNetAmount(double aNetAmount) { netAmount = aNetAmount; return this; } public LJAGetOtherSchema setNetAmount(String aNetAmount) { if (aNetAmount != null && !aNetAmount.equals("") && !aNetAmount.equals("null")) { netAmount = new Double(aNetAmount); } return this; } public LJAGetOtherSchema setTaxAmount(double aTaxAmount) { taxAmount = aTaxAmount; return this; } public LJAGetOtherSchema setTaxAmount(String aTaxAmount) { if (aTaxAmount != null && !aTaxAmount.equals("") && !aTaxAmount.equals("null")) { taxAmount = new Double(aTaxAmount); } return this; } public LJAGetOtherSchema setTax(double aTax) { tax = aTax; return this; } public LJAGetOtherSchema setTax(String aTax) { if (aTax != null && !aTax.equals("") && !aTax.equals("null")) { tax = new Double(aTax); } return this; } public LJAGetOtherSchema setSchema(LJAGetOtherSchema aLJAGetOtherSchema) { SchemaHelper.setSchema(aLJAGetOtherSchema, this); return this; } public LJAGetOtherSchema getSchema() { LJAGetOtherSchema aLJAGetOtherSchema = new LJAGetOtherSchema(); aLJAGetOtherSchema.setSchema(this); return aLJAGetOtherSchema; } 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); } }