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.
 
 
 

563 lines
19 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: LSQuotBasicSchema </p>
* <p>Description: DB层 Schema 类文件 </p>
* <p>Company: Sinosoft Co.,LTD </p>
*
* @author Makerx2
* @Database 新核心LIS7询价PDM
* @CreateDatetime 2025-01-23 09:57:25 380
*/
@Table(name = "LSQuotBasic", desc = "询价基本信息表")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class LSQuotBasicSchema extends Entity implements Schema<LSQuotBasicSchema>, Cloneable {
// @Field
@Getter
@Setter
@Id
@Column(index = 0, name = "QuotNo", desc = "询价号", type = Schema.TYPE_STRING, columnDefinition = "varchar(20)", nullable = false, length = 20)
private String quotNo;
/**
* 询价批次号
*/
@Getter
@Id
@Column(index = 1, name = "QuotBatNo", desc = "询价批次号", type = Schema.TYPE_INT, columnDefinition = "int", nullable = false, precision = 0, scale = 0)
private int quotBatNo;
@Getter
@Setter
@Column(index = 2, name = "GrpName", desc = "投保单位名称", type = Schema.TYPE_STRING, columnDefinition = "varchar(120)", length = 120)
private String grpName;
@Getter
@Setter
@Column(index = 3, name = "IDType", desc = "证件类型", type = Schema.TYPE_STRING, columnDefinition = "varchar(2)", length = 2)
private String iDType;
@Getter
@Setter
@Column(index = 4, name = "IDNo", desc = "证件号码", type = Schema.TYPE_STRING, columnDefinition = "varchar(30)", length = 30)
private String iDNo;
@Getter
@Setter
@Column(index = 5, name = "GrpNature", desc = "单位性质", type = Schema.TYPE_STRING, columnDefinition = "varchar(3)", length = 3)
private String grpNature;
@Getter
@Setter
@Column(index = 6, name = "BusiCategory", desc = "行业分类", type = Schema.TYPE_STRING, columnDefinition = "varchar(3)", length = 3)
private String busiCategory;
@Getter
@Setter
@Column(index = 7, name = "Address", desc = "地址", type = Schema.TYPE_STRING, columnDefinition = "varchar(500)", length = 500)
private String address;
@Getter
@Setter
@Column(index = 8, name = "CustomerIntro", desc = "公司简介", type = Schema.TYPE_STRING, columnDefinition = "varchar(1000)", length = 1000)
private String customerIntro;
@Getter
@Setter
@Column(index = 9, name = "ProdType", desc = "产品类型", type = Schema.TYPE_STRING, columnDefinition = "varchar(2)", length = 2)
private String prodType;
@Getter
@Setter
@Column(index = 10, name = "PayIntv", desc = "缴费方式", type = Schema.TYPE_STRING, columnDefinition = "varchar(2)", length = 2)
private String payIntv;
@Getter
@Setter
@Column(index = 11, name = "SaleChannel", desc = "渠道类型", type = Schema.TYPE_STRING, columnDefinition = "varchar(2)", length = 2)
private String saleChannel;
@Getter
@Setter
@Column(index = 12, name = "PremMode", desc = "保费分摊方式", type = Schema.TYPE_STRING, columnDefinition = "varchar(2)", length = 2)
private String premMode;
/**
* 预计保费规模
*/
@Getter
@Column(index = 13, name = "PrePrem", desc = "预计保费规模", type = Schema.TYPE_DOUBLE, columnDefinition = "decimal(16,2)", precision = 2, scale = 16)
private double prePrem;
@Getter
@Setter
@Column(index = 14, name = "RenewFlag", desc = "是否为续保业务", type = Schema.TYPE_STRING, columnDefinition = "varchar(1)", length = 1)
private String renewFlag;
@Getter
@Setter
@Column(index = 15, name = "BlanketFlag", desc = "是否为统括单", type = Schema.TYPE_STRING, columnDefinition = "varchar(1)", length = 1)
private String blanketFlag;
@Getter
@Setter
@Column(index = 16, name = "ElasticFlag", desc = "是否为弹性询价", type = Schema.TYPE_STRING, columnDefinition = "varchar(2)", length = 2)
private String elasticFlag;
@Getter
@Setter
@Column(index = 17, name = "ValDateType", desc = "契约生效日类型", type = Schema.TYPE_STRING, columnDefinition = "varchar(1)", length = 1)
private String valDateType;
/**
* 约定生效日期
*/
@Column(index = 18, name = "AppointValDate", desc = "约定生效日期", type = Schema.TYPE_DATE, columnDefinition = "date")
private Date appointValDate;
@Getter
@Setter
@Column(index = 19, name = "Coinsurance", desc = "是否共保", type = Schema.TYPE_STRING, columnDefinition = "varchar(2)", length = 2)
private String coinsurance;
@Getter
@Setter
@Column(index = 20, name = "Segment1", desc = "备用字段1", type = Schema.TYPE_STRING, columnDefinition = "varchar(20)", length = 20)
private String segment1;
@Getter
@Setter
@Column(index = 21, name = "Segment2", desc = "备用字段2", type = Schema.TYPE_STRING, columnDefinition = "varchar(20)", length = 20)
private String segment2;
@Getter
@Setter
@Column(index = 22, name = "Segment3", desc = "备用字段3", type = Schema.TYPE_STRING, columnDefinition = "varchar(200)", length = 200)
private String segment3;
@Getter
@Setter
@Column(index = 23, name = "QuotState", desc = "询价状态", type = Schema.TYPE_STRING, columnDefinition = "varchar(2)", length = 2)
private String quotState;
@Getter
@Setter
@Column(index = 24, name = "FileReason", desc = "归档原因", type = Schema.TYPE_STRING, columnDefinition = "varchar(2)", length = 2)
private String fileReason;
@Getter
@Setter
@Column(index = 25, name = "FileDesc", desc = "归档描述", type = Schema.TYPE_STRING, columnDefinition = "varchar(3000)", length = 3000)
private String fileDesc;
@Getter
@Setter
@Column(index = 26, name = "ManageCom", desc = "管理机构", type = Schema.TYPE_STRING, columnDefinition = "varchar(20)", length = 20)
private String manageCom;
@Getter
@Setter
@Column(index = 27, name = "ComCode", desc = "公司代码", type = Schema.TYPE_STRING, columnDefinition = "varchar(20)", length = 20)
private String comCode;
@Getter
@Setter
@Column(index = 28, name = "MakeOperator", desc = "入机操作员", type = Schema.TYPE_STRING, columnDefinition = "varchar(30)", length = 30)
private String makeOperator;
/**
* 入机日期
*/
@Column(index = 29, name = "MakeDate", desc = "入机日期", type = Schema.TYPE_DATE, columnDefinition = "date")
private Date makeDate;
@Getter
@Setter
@Column(index = 30, name = "MakeTime", desc = "入机时间", type = Schema.TYPE_STRING, columnDefinition = "varchar(8)", length = 8)
private String makeTime;
@Getter
@Setter
@Column(index = 31, name = "ModifyOperator", desc = "最后一次修改操作员", type = Schema.TYPE_STRING, columnDefinition = "varchar(30)", length = 30)
private String modifyOperator;
/**
* 最后一次修改日期
*/
@Column(index = 32, name = "ModifyDate", desc = "最后一次修改日期", type = Schema.TYPE_DATE, columnDefinition = "date")
private Date modifyDate;
@Getter
@Setter
@Column(index = 33, name = "ModifyTime", desc = "最后一次修改时间", type = Schema.TYPE_STRING, columnDefinition = "varchar(8)", length = 8)
private String modifyTime;
@Getter
@Setter
@Column(index = 34, name = "IsHealthy", desc = "是否为健康险", type = Schema.TYPE_STRING, columnDefinition = "varchar(2)", length = 2)
private String isHealthy;
@Getter
@Setter
@Column(index = 35, name = "MainQuotNo", desc = "母询价号", type = Schema.TYPE_STRING, columnDefinition = "varchar(20)", length = 20)
private String mainQuotNo;
@Getter
@Setter
@Column(index = 36, name = "GrpContNo", desc = "连续投保保单号", type = Schema.TYPE_STRING, columnDefinition = "varchar(20)", length = 20)
private String grpContNo;
@Getter
@Setter
@Column(index = 37, name = "OperSource", desc = "客户来源", type = Schema.TYPE_STRING, columnDefinition = "varchar(2)", length = 2)
private String operSource;
@Getter
@Setter
@Column(index = 38, name = "AgentCode", desc = "业务员工号", type = Schema.TYPE_STRING, columnDefinition = "varchar(10)", length = 10)
private String agentCode;
@Getter
@Setter
@Column(index = 39, name = "AgentCom", desc = "中介机构代码", type = Schema.TYPE_STRING, columnDefinition = "varchar(20)", length = 20)
private String agentCom;
@Getter
@Setter
@Column(index = 40, name = "IsFreeRisk", desc = "是否为赠险", type = Schema.TYPE_STRING, columnDefinition = "varchar(2)", length = 2)
private String isFreeRisk;
@Getter
@Setter
@Column(index = 41, name = "ForceChkProfessRate", desc = "强制检验职业占比", type = Schema.TYPE_STRING, columnDefinition = "varchar(2)", length = 2)
private String forceChkProfessRate;
@Getter
@Setter
@Column(index = 42, name = "ForceChkNum", desc = "强制校验人数", type = Schema.TYPE_STRING, columnDefinition = "varchar(2)", length = 2)
private String forceChkNum;
@Getter
@Setter
@Column(index = 43, name = "IsContinueInsure", desc = "是否为连续投保", type = Schema.TYPE_STRING, columnDefinition = "varchar(2)", length = 2)
private String isContinueInsure;
@Getter
@Setter
@Column(index = 44, name = "IsSubQuot", desc = "是否是子询价", type = Schema.TYPE_STRING, columnDefinition = "varchar(2)", length = 2)
private String isSubQuot;
@Getter
@Setter
@Column(index = 45, name = "BusinessReq", desc = "业务需求", type = Schema.TYPE_STRING, columnDefinition = "varchar(2000)", length = 2000)
private String businessReq;
@Getter
@Setter
@Column(index = 46, name = "TmpQuotValidate", desc = "临时询价有效期", type = Schema.TYPE_STRING, columnDefinition = "varchar(10)", length = 10)
private String tmpQuotValidate;
@Column(index = 47, name = "QuotConfirmDate", desc = "询价确认日期", type = Schema.TYPE_DATE, columnDefinition = "date")
private Date quotConfirmDate;
@Getter
@Setter
@Column(index = 48, name = "IsSpeAgrTemplate", desc = "使用特别约定模版", type = Schema.TYPE_STRING, columnDefinition = "varchar(2)", length = 2)
private String isSpeAgrTemplate;
@Getter
@Setter
@Column(index = 49, name = "SpecailAgreement", desc = "特别约定", type = Schema.TYPE_STRING, columnDefinition = "varchar(6000)", length = 6000)
private String specailAgreement;
@Getter
@Column(index = 50, name = "InPatientAmnt", desc = "补充住院医疗公共保险金额", type = Schema.TYPE_DOUBLE, columnDefinition = "decimal(20,2)", precision = 2, scale = 20)
private double inPatientAmnt;
@Getter
@Column(index = 51, name = "OutPatientAmnt", desc = "补充门急诊医疗公共保险金额", type = Schema.TYPE_DOUBLE, columnDefinition = "decimal(20,2)", precision = 2, scale = 20)
private double outPatientAmnt;
@Getter
@Setter
@Column(index = 52, name = "IsAllowSubQuot", desc = "是否允许子询价", type = Schema.TYPE_STRING, columnDefinition = "varchar(2)", length = 2)
private String isAllowSubQuot;
@Column(index = 53, name = "QuotEndDate", desc = "询价有效期止期", type = Schema.TYPE_DATE, columnDefinition = "date")
private Date quotEndDate;
@Getter
@Setter
@Column(index = 54, name = "ApproveSpecailAgreement", desc = "批复特别约定", type = Schema.TYPE_STRING, columnDefinition = "varchar(6000)", length = 6000)
private String approveSpecailAgreement;
@Getter
@Setter
@Column(index = 55, name = "IsWait", desc = "有无等待期", type = Schema.TYPE_STRING, columnDefinition = "varchar(2)", length = 2)
private String IsWait;
public static final int FIELDNUM = 56; // 数据库表的字段个数
private transient FDate fDate = new FDate(); // 处理日期
public transient CErrors mErrors; // 错误信息
// @Constructor
public LSQuotBasicSchema() {
mErrors = new CErrors();
}
// @Method
@Override
public Object clone() throws CloneNotSupportedException {
LSQuotBasicSchema cloned = (LSQuotBasicSchema) 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 LSQuotBasicSchema setQuotBatNo(int aQuotBatNo) {
quotBatNo = aQuotBatNo;
return this;
}
public LSQuotBasicSchema setQuotBatNo(String aQuotBatNo) {
if (aQuotBatNo != null && !aQuotBatNo.equals("") && !aQuotBatNo.equals("null")) {
quotBatNo = Integer.parseInt(aQuotBatNo);
}
return this;
}
public LSQuotBasicSchema setPrePrem(double aPrePrem) {
prePrem = aPrePrem;
return this;
}
public LSQuotBasicSchema setPrePrem(String aPrePrem) {
if (aPrePrem != null && !aPrePrem.equals("") && !aPrePrem.equals("null")) {
prePrem = Double.parseDouble(aPrePrem);
}
return this;
}
public String getAppointValDate() {
if (appointValDate != null)
return fDate.getString(appointValDate);
else
return null;
}
public LSQuotBasicSchema setAppointValDate(Date aAppointValDate) {
appointValDate = aAppointValDate;
return this;
}
public LSQuotBasicSchema setAppointValDate(String aAppointValDate) {
if (aAppointValDate != null && !aAppointValDate.equals("") && !aAppointValDate.equals("null")) {
appointValDate = fDate.getDate(aAppointValDate);
} else {
appointValDate = null;
}
return this;
}
public String getMakeDate() {
if (makeDate != null)
return fDate.getString(makeDate);
else
return null;
}
public LSQuotBasicSchema setMakeDate(Date aMakeDate) {
makeDate = aMakeDate;
return this;
}
public LSQuotBasicSchema 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 LSQuotBasicSchema setModifyDate(Date aModifyDate) {
modifyDate = aModifyDate;
return this;
}
public LSQuotBasicSchema setModifyDate(String aModifyDate) {
if (aModifyDate != null && !aModifyDate.equals("") && !aModifyDate.equals("null")) {
modifyDate = fDate.getDate(aModifyDate);
} else {
modifyDate = null;
}
return this;
}
public String getQuotConfirmDate() {
if (quotConfirmDate != null)
return fDate.getString(quotConfirmDate);
else
return null;
}
public LSQuotBasicSchema setQuotConfirmDate(Date aQuotConfirmDate) {
quotConfirmDate = aQuotConfirmDate;
return this;
}
public LSQuotBasicSchema setQuotConfirmDate(String aQuotConfirmDate) {
if (aQuotConfirmDate != null && !aQuotConfirmDate.equals("") && !aQuotConfirmDate.equals("null")) {
quotConfirmDate = fDate.getDate(aQuotConfirmDate);
} else {
quotConfirmDate = null;
}
return this;
}
public LSQuotBasicSchema setInPatientAmnt(double aInPatientAmnt) {
inPatientAmnt = aInPatientAmnt;
return this;
}
public LSQuotBasicSchema setInPatientAmnt(String aInPatientAmnt) {
if (aInPatientAmnt != null && !aInPatientAmnt.equals("") && !aInPatientAmnt.equals("null")) {
inPatientAmnt = Double.parseDouble(aInPatientAmnt);
}
return this;
}
public LSQuotBasicSchema setOutPatientAmnt(double aOutPatientAmnt) {
outPatientAmnt = aOutPatientAmnt;
return this;
}
public LSQuotBasicSchema setOutPatientAmnt(String aOutPatientAmnt) {
if (aOutPatientAmnt != null && !aOutPatientAmnt.equals("") && !aOutPatientAmnt.equals("null")) {
outPatientAmnt = Double.parseDouble(aOutPatientAmnt);
}
return this;
}
public String getQuotEndDate() {
if (quotEndDate != null)
return fDate.getString(quotEndDate);
else
return null;
}
public LSQuotBasicSchema setQuotEndDate(Date aQuotEndDate) {
quotEndDate = aQuotEndDate;
return this;
}
public LSQuotBasicSchema setQuotEndDate(String aQuotEndDate) {
if (aQuotEndDate != null && !aQuotEndDate.equals("") && !aQuotEndDate.equals("null")) {
quotEndDate = fDate.getDate(aQuotEndDate);
} else {
quotEndDate = null;
}
return this;
}
@Override
public LSQuotBasicSchema setSchema(LSQuotBasicSchema aLSQuotBasicSchema) {
SchemaHelper.setSchema(aLSQuotBasicSchema, this);
return this;
}
@Override
public LSQuotBasicSchema getSchema() {
LSQuotBasicSchema aLSQuotBasicSchema = new LSQuotBasicSchema();
aLSQuotBasicSchema.setSchema(this);
return aLSQuotBasicSchema;
}
@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);
}
}