You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
371 lines
10 KiB
371 lines
10 KiB
/**
|
|
* 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;
|
|
|
|
/**
|
|
* <p>ClassName: LZCardSchema </p>
|
|
* <p>Description: DB层 Schema 类文件 </p>
|
|
* <p>Company: Sinosoft Co.,LTD </p>
|
|
* @Database Schema2
|
|
* @author Makerx2
|
|
* @CreateDatetime 2019-03-16 16:05:45 723
|
|
*/
|
|
@Table(name = "LZCard")
|
|
@EqualsAndHashCode(callSuper = false)
|
|
@Accessors(chain = true)
|
|
public class LZCardSchema extends Entity implements Schema<LZCardSchema>, Cloneable {
|
|
// @Field
|
|
@Getter
|
|
@Setter
|
|
@Id
|
|
@Column(index = 0, name = "CertifyCode", desc = "单证编码", type = Schema.TYPE_STRING)
|
|
private String certifyCode;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Id
|
|
@Column(index = 1, name = "SubCode", desc = "附标号", type = Schema.TYPE_STRING)
|
|
private String subCode;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Id
|
|
@Column(index = 2, name = "RiskCode", desc = "险种编码", type = Schema.TYPE_STRING)
|
|
private String riskCode;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Id
|
|
@Column(index = 3, name = "RiskVersion", desc = "险种版本", type = Schema.TYPE_STRING)
|
|
private String riskVersion;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Id
|
|
@Column(index = 4, name = "StartNo", desc = "起始号", type = Schema.TYPE_STRING)
|
|
private String startNo;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Id
|
|
@Column(index = 5, name = "EndNo", desc = "终止号", type = Schema.TYPE_STRING)
|
|
private String endNo;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 6, name = "SendOutCom", desc = "发放机构", type = Schema.TYPE_STRING)
|
|
private String sendOutCom;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 7, name = "ReceiveCom", desc = "接受机构", type = Schema.TYPE_STRING)
|
|
private String receiveCom;
|
|
|
|
@Getter
|
|
@Column(index = 8, name = "SumCount", desc = "数量", type = Schema.TYPE_INT)
|
|
private int sumCount;
|
|
|
|
@Getter
|
|
@Column(index = 9, name = "Prem", desc = "总保费", type = Schema.TYPE_DOUBLE)
|
|
private double prem;
|
|
|
|
@Getter
|
|
@Column(index = 10, name = "Amnt", desc = "总保额", type = Schema.TYPE_DOUBLE)
|
|
private double amnt;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 11, name = "Handler", desc = "经办人", type = Schema.TYPE_STRING)
|
|
private String handler;
|
|
|
|
@Column(index = 12, name = "HandleDate", desc = "经办日期", type = Schema.TYPE_DATE)
|
|
private Date handleDate;
|
|
|
|
@Column(index = 13, name = "InvaliDate", desc = "失效日期", type = Schema.TYPE_DATE)
|
|
private Date invaliDate;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 14, name = "TakeBackNo", desc = "回收清算单号", type = Schema.TYPE_STRING)
|
|
private String takeBackNo;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 15, name = "SaleChnl", desc = "销售渠道", type = Schema.TYPE_STRING)
|
|
private String saleChnl;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 16, name = "StateFlag", desc = "状态标志", type = Schema.TYPE_STRING)
|
|
private String stateFlag;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 17, name = "OperateFlag", desc = "操作类型标志", type = Schema.TYPE_STRING)
|
|
private String operateFlag;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 18, name = "PayFlag", desc = "交费标志", type = Schema.TYPE_STRING)
|
|
private String payFlag;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 19, name = "EnterAccFlag", desc = "到帐标志", type = Schema.TYPE_STRING)
|
|
private String enterAccFlag;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 20, name = "Reason", desc = "反发放原因", type = Schema.TYPE_STRING)
|
|
private String reason;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 21, name = "State", desc = "状态", type = Schema.TYPE_STRING)
|
|
private String state;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 22, name = "Operator", desc = "操作员", type = Schema.TYPE_STRING)
|
|
private String operator;
|
|
|
|
@Column(index = 23, name = "MakeDate", desc = "入机日期", type = Schema.TYPE_DATE)
|
|
private Date makeDate;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 24, name = "MakeTime", desc = "入机时间", type = Schema.TYPE_STRING)
|
|
private String makeTime;
|
|
|
|
@Column(index = 25, name = "ModifyDate", desc = "最后一次修改日期", type = Schema.TYPE_DATE)
|
|
private Date modifyDate;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 26, name = "ModifyTime", desc = "最后一次修改时间", type = Schema.TYPE_STRING)
|
|
private String modifyTime;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 27, name = "ApplyNo", desc = "增领申请号码", type = Schema.TYPE_STRING)
|
|
private String applyNo;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 28, name = "AgentCom", desc = "代理机构编码", type = Schema.TYPE_STRING)
|
|
private String agentCom;
|
|
|
|
|
|
public static final int FIELDNUM = 29; // 数据库表的字段个数
|
|
|
|
private transient FDate fDate = new FDate(); // 处理日期
|
|
|
|
public transient CErrors mErrors; // 错误信息
|
|
|
|
// @Constructor
|
|
public LZCardSchema() {
|
|
mErrors = new CErrors();
|
|
}
|
|
|
|
// @Method
|
|
public Object clone() throws CloneNotSupportedException {
|
|
LZCardSchema cloned = (LZCardSchema) 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 LZCardSchema setSumCount(int aSumCount) {
|
|
sumCount = aSumCount;
|
|
return this;
|
|
}
|
|
|
|
public LZCardSchema setSumCount(String aSumCount) {
|
|
if (aSumCount != null && !aSumCount.equals("") && !aSumCount.equals("null")) {
|
|
sumCount = new Integer(aSumCount);
|
|
}
|
|
return this;
|
|
}
|
|
|
|
public LZCardSchema setPrem(double aPrem) {
|
|
prem = aPrem;
|
|
return this;
|
|
}
|
|
|
|
public LZCardSchema setPrem(String aPrem) {
|
|
if (aPrem != null && !aPrem.equals("") && !aPrem.equals("null")) {
|
|
prem = new Double(aPrem);
|
|
}
|
|
return this;
|
|
}
|
|
|
|
public LZCardSchema setAmnt(double aAmnt) {
|
|
amnt = aAmnt;
|
|
return this;
|
|
}
|
|
|
|
public LZCardSchema setAmnt(String aAmnt) {
|
|
if (aAmnt != null && !aAmnt.equals("") && !aAmnt.equals("null")) {
|
|
amnt = new Double(aAmnt);
|
|
}
|
|
return this;
|
|
}
|
|
|
|
public String getHandleDate() {
|
|
if (handleDate != null)
|
|
return fDate.getString(handleDate);
|
|
else
|
|
return null;
|
|
}
|
|
|
|
public LZCardSchema setHandleDate(Date aHandleDate) {
|
|
handleDate = aHandleDate;
|
|
return this;
|
|
}
|
|
|
|
public LZCardSchema setHandleDate(String aHandleDate) {
|
|
if (aHandleDate != null && !aHandleDate.equals("") && !aHandleDate.equals("null")) {
|
|
handleDate = fDate.getDate(aHandleDate);
|
|
} else {
|
|
handleDate = null;
|
|
}
|
|
return this;
|
|
}
|
|
|
|
public String getInvaliDate() {
|
|
if (invaliDate != null)
|
|
return fDate.getString(invaliDate);
|
|
else
|
|
return null;
|
|
}
|
|
|
|
public LZCardSchema setInvaliDate(Date aInvaliDate) {
|
|
invaliDate = aInvaliDate;
|
|
return this;
|
|
}
|
|
|
|
public LZCardSchema setInvaliDate(String aInvaliDate) {
|
|
if (aInvaliDate != null && !aInvaliDate.equals("") && !aInvaliDate.equals("null")) {
|
|
invaliDate = fDate.getDate(aInvaliDate);
|
|
} else {
|
|
invaliDate = null;
|
|
}
|
|
return this;
|
|
}
|
|
|
|
public String getMakeDate() {
|
|
if (makeDate != null)
|
|
return fDate.getString(makeDate);
|
|
else
|
|
return null;
|
|
}
|
|
|
|
public LZCardSchema setMakeDate(Date aMakeDate) {
|
|
makeDate = aMakeDate;
|
|
return this;
|
|
}
|
|
|
|
public LZCardSchema 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 LZCardSchema setModifyDate(Date aModifyDate) {
|
|
modifyDate = aModifyDate;
|
|
return this;
|
|
}
|
|
|
|
public LZCardSchema setModifyDate(String aModifyDate) {
|
|
if (aModifyDate != null && !aModifyDate.equals("") && !aModifyDate.equals("null")) {
|
|
modifyDate = fDate.getDate(aModifyDate);
|
|
} else {
|
|
modifyDate = null;
|
|
}
|
|
return this;
|
|
}
|
|
|
|
public LZCardSchema setSchema(LZCardSchema aLZCardSchema) {
|
|
SchemaHelper.setSchema(aLZCardSchema, this);
|
|
return this;
|
|
}
|
|
|
|
public LZCardSchema getSchema() {
|
|
LZCardSchema aLZCardSchema = new LZCardSchema();
|
|
aLZCardSchema.setSchema(this);
|
|
return aLZCardSchema;
|
|
}
|
|
|
|
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);
|
|
}
|
|
}
|
|
|