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.
290 lines
8.4 KiB
290 lines
8.4 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: LSQuotImpPremLogSchema </p>
|
|
* <p>Description: DB层 Schema 类文件 </p>
|
|
* <p>Company: Sinosoft Co.,LTD </p>
|
|
* @Database Schema2
|
|
* @author Makerx2
|
|
* @CreateDatetime 2019-03-16 16:05:16 016
|
|
*/
|
|
@Table(name = "LSQuotImpPremLog")
|
|
@EqualsAndHashCode(callSuper = false)
|
|
@Accessors(chain = true)
|
|
public class LSQuotImpPremLogSchema extends Entity implements Schema<LSQuotImpPremLogSchema>, Cloneable {
|
|
// @Field
|
|
@Getter
|
|
@Setter
|
|
@Id
|
|
@Column(index = 0, name = "BatchNo", desc = "导入批次号", type = Schema.TYPE_STRING)
|
|
private String batchNo;
|
|
|
|
@Getter
|
|
@Id
|
|
@Column(index = 1, name = "SerialNo", desc = "序号", type = Schema.TYPE_INT)
|
|
private int serialNo;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Id
|
|
@Column(index = 2, name = "QuotNo", desc = "询价号", type = Schema.TYPE_STRING)
|
|
private String quotNo;
|
|
|
|
@Getter
|
|
@Id
|
|
@Column(index = 3, name = "QuotBatNo", desc = "询价批次号", type = Schema.TYPE_INT)
|
|
private int quotBatNo;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 4, name = "PlanCode", desc = "方案编码", type = Schema.TYPE_STRING)
|
|
private String planCode;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 5, name = "PlanDesc", desc = "方案描述", type = Schema.TYPE_STRING)
|
|
private String planDesc;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 6, name = "RiskCode", desc = "险种编码", type = Schema.TYPE_STRING)
|
|
private String riskCode;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 7, name = "RiskName", desc = "险种名称", type = Schema.TYPE_STRING)
|
|
private String riskName;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 8, name = "DutyCode", desc = "责任编码", type = Schema.TYPE_STRING)
|
|
private String dutyCode;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 9, name = "DutyName", desc = "责任名称", type = Schema.TYPE_STRING)
|
|
private String dutyName;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 10, name = "ExceptPremType", desc = "期望保费类型", type = Schema.TYPE_STRING)
|
|
private String exceptPremType;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 11, name = "StandValue", desc = "参考保费/费率", type = Schema.TYPE_STRING)
|
|
private String standValue;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 12, name = "SubUWValue", desc = "核保值(中支)", type = Schema.TYPE_STRING)
|
|
private String subUWValue;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 13, name = "BranchUWValue", desc = "核保值(分公司)", type = Schema.TYPE_STRING)
|
|
private String branchUWValue;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 14, name = "UWValue", desc = "核保值(总公司)", type = Schema.TYPE_STRING)
|
|
private String uWValue;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 15, name = "ImpState", desc = "导入状态", type = Schema.TYPE_STRING)
|
|
private String impState;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 16, name = "ImpRemark", desc = "导入说明", type = Schema.TYPE_STRING)
|
|
private String impRemark;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 17, name = "MakeOperator", desc = "入机操作员", type = Schema.TYPE_STRING)
|
|
private String makeOperator;
|
|
|
|
@Column(index = 18, name = "MakeDate", desc = "入机日期", type = Schema.TYPE_DATE)
|
|
private Date makeDate;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 19, name = "MakeTime", desc = "入机时间", type = Schema.TYPE_STRING)
|
|
private String makeTime;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 20, name = "ModifyOperator", desc = "最后一次修改操作员", type = Schema.TYPE_STRING)
|
|
private String modifyOperator;
|
|
|
|
@Column(index = 21, name = "ModifyDate", desc = "最后一次修改日期", type = Schema.TYPE_DATE)
|
|
private Date modifyDate;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 22, name = "ModifyTime", desc = "最后一次修改时间", type = Schema.TYPE_STRING)
|
|
private String modifyTime;
|
|
|
|
|
|
public static final int FIELDNUM = 23; // 数据库表的字段个数
|
|
|
|
private transient FDate fDate = new FDate(); // 处理日期
|
|
|
|
public transient CErrors mErrors; // 错误信息
|
|
|
|
// @Constructor
|
|
public LSQuotImpPremLogSchema() {
|
|
mErrors = new CErrors();
|
|
}
|
|
|
|
// @Method
|
|
public Object clone() throws CloneNotSupportedException {
|
|
LSQuotImpPremLogSchema cloned = (LSQuotImpPremLogSchema) 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 LSQuotImpPremLogSchema setSerialNo(int aSerialNo) {
|
|
serialNo = aSerialNo;
|
|
return this;
|
|
}
|
|
|
|
public LSQuotImpPremLogSchema setSerialNo(String aSerialNo) {
|
|
if (aSerialNo != null && !aSerialNo.equals("") && !aSerialNo.equals("null")) {
|
|
serialNo = new Integer(aSerialNo);
|
|
}
|
|
return this;
|
|
}
|
|
|
|
public LSQuotImpPremLogSchema setQuotBatNo(int aQuotBatNo) {
|
|
quotBatNo = aQuotBatNo;
|
|
return this;
|
|
}
|
|
|
|
public LSQuotImpPremLogSchema setQuotBatNo(String aQuotBatNo) {
|
|
if (aQuotBatNo != null && !aQuotBatNo.equals("") && !aQuotBatNo.equals("null")) {
|
|
quotBatNo = new Integer(aQuotBatNo);
|
|
}
|
|
return this;
|
|
}
|
|
|
|
public String getMakeDate() {
|
|
if (makeDate != null)
|
|
return fDate.getString(makeDate);
|
|
else
|
|
return null;
|
|
}
|
|
|
|
public LSQuotImpPremLogSchema setMakeDate(Date aMakeDate) {
|
|
makeDate = aMakeDate;
|
|
return this;
|
|
}
|
|
|
|
public LSQuotImpPremLogSchema 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 LSQuotImpPremLogSchema setModifyDate(Date aModifyDate) {
|
|
modifyDate = aModifyDate;
|
|
return this;
|
|
}
|
|
|
|
public LSQuotImpPremLogSchema setModifyDate(String aModifyDate) {
|
|
if (aModifyDate != null && !aModifyDate.equals("") && !aModifyDate.equals("null")) {
|
|
modifyDate = fDate.getDate(aModifyDate);
|
|
} else {
|
|
modifyDate = null;
|
|
}
|
|
return this;
|
|
}
|
|
|
|
public LSQuotImpPremLogSchema setSchema(LSQuotImpPremLogSchema aLSQuotImpPremLogSchema) {
|
|
SchemaHelper.setSchema(aLSQuotImpPremLogSchema, this);
|
|
return this;
|
|
}
|
|
|
|
public LSQuotImpPremLogSchema getSchema() {
|
|
LSQuotImpPremLogSchema aLSQuotImpPremLogSchema = new LSQuotImpPremLogSchema();
|
|
aLSQuotImpPremLogSchema.setSchema(this);
|
|
return aLSQuotImpPremLogSchema;
|
|
}
|
|
|
|
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);
|
|
}
|
|
}
|
|
|