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

*

Description: DB层 Schema 类文件

*

Company: Sinosoft Co.,LTD

* * @author Makerx2 * @Database 新核心LIS7询价PDM * @CreateDatetime 2024-12-20 17:38:31 724 */ @Table(name = "LSQuotPlanDetailB", desc = "询价方案明细备份表") @EqualsAndHashCode(callSuper = false) @Accessors(chain = true) public class LSQuotPlanDetailBSchema extends Entity implements Schema, Cloneable { // @Field @Getter @Setter @Id @Column(index = 0, name = "SerialNo", desc = "流水号", type = Schema.TYPE_STRING, columnDefinition = "varchar(20)", nullable = false, length = 20) private String serialNo; /** * 询价号 */ @Getter @Setter @Column(index = 1, name = "QuotNo", desc = "询价号", type = Schema.TYPE_STRING, columnDefinition = "varchar(20)", nullable = false, length = 20) private String quotNo; /** * 询价批次号 */ @Getter @Column(index = 2, name = "QuotBatNo", desc = "询价批次号", type = Schema.TYPE_INT, columnDefinition = "int", nullable = false, precision = 0, scale = 0) private int quotBatNo; /** * 系统方案编码 */ @Getter @Setter @Column(index = 3, name = "SysPlanCode", desc = "系统方案编码", type = Schema.TYPE_STRING, columnDefinition = "varchar(10)", nullable = false, length = 10) private String sysPlanCode; /** * 方案编码 */ @Getter @Setter @Column(index = 4, name = "PlanCode", desc = "方案编码", type = Schema.TYPE_STRING, columnDefinition = "varchar(10)", nullable = false, length = 10) private String planCode; /** * 险种编码 */ @Getter @Setter @Column(index = 5, name = "RiskCode", desc = "险种编码", type = Schema.TYPE_STRING, columnDefinition = "varchar(20)", nullable = false, length = 20) private String riskCode; /** * 责任编码 */ @Getter @Setter @Column(index = 6, name = "DutyCode", desc = "责任编码", type = Schema.TYPE_STRING, columnDefinition = "varchar(20)", nullable = false, length = 20) private String dutyCode; /** * 保额类型 */ @Getter @Setter @Column(index = 7, name = "AmntType", desc = "保额类型", type = Schema.TYPE_STRING, columnDefinition = "varchar(2)", length = 2) private String amntType; /** * 固定保额 */ @Getter @Setter @Column(index = 8, name = "FixedAmnt", desc = "固定保额", type = Schema.TYPE_STRING, columnDefinition = "varchar(20)", length = 20) private String fixedAmnt; /** * 月薪倍数 */ @Getter @Setter @Column(index = 9, name = "SalaryMult", desc = "月薪倍数", type = Schema.TYPE_STRING, columnDefinition = "varchar(20)", length = 20) private String salaryMult; /** * 最高保额 */ @Getter @Setter @Column(index = 10, name = "MaxAmnt", desc = "最高保额", type = Schema.TYPE_STRING, columnDefinition = "varchar(20)", length = 20) private String maxAmnt; /** * 最低保额 */ @Getter @Setter @Column(index = 11, name = "MinAmnt", desc = "最低保额", type = Schema.TYPE_STRING, columnDefinition = "varchar(20)", length = 20) private String minAmnt; /** * 期望保费类型 */ @Getter @Setter @Column(index = 12, name = "ExceptPremType", desc = "期望保费类型", type = Schema.TYPE_STRING, columnDefinition = "varchar(2)", length = 2) private String exceptPremType; /** * 期望保费/费率/折扣 */ @Getter @Setter @Column(index = 13, name = "ExceptPrem", desc = "期望保费/费率/折扣", type = Schema.TYPE_STRING, columnDefinition = "varchar(20)", length = 20) private String exceptPrem; /** * 参考保费/费率 */ @Getter @Setter @Column(index = 14, name = "StandValue", desc = "参考保费/费率", type = Schema.TYPE_STRING, columnDefinition = "varchar(20)", length = 20) private String standValue; /** * 初始保费 */ @Getter @Setter @Column(index = 15, name = "InitPrem", desc = "初始保费", type = Schema.TYPE_STRING, columnDefinition = "varchar(20)", length = 20) private String initPrem; /** * 预期收益率 */ @Getter @Setter @Column(index = 16, name = "ExceptYield", desc = "预期收益率", type = Schema.TYPE_STRING, columnDefinition = "varchar(20)", length = 20) private String exceptYield; /** * 核保值(中支) */ @Getter @Setter @Column(index = 17, name = "SubUWValue", desc = "核保值(中支)", type = Schema.TYPE_STRING, columnDefinition = "varchar(20)", length = 20) private String subUWValue; /** * 核保值(分公司) */ @Getter @Setter @Column(index = 18, name = "BranchUWValue", desc = "核保值(分公司)", type = Schema.TYPE_STRING, columnDefinition = "varchar(20)", length = 20) private String branchUWValue; /** * 核保值(总公司) */ @Getter @Setter @Column(index = 19, name = "UWValue", desc = "核保值(总公司)", type = Schema.TYPE_STRING, columnDefinition = "varchar(20)", length = 20) private String uWValue; /** * 最终值 */ @Getter @Setter @Column(index = 20, name = "FinalValue", desc = "最终值", type = Schema.TYPE_STRING, columnDefinition = "varchar(20)", length = 20) private String finalValue; /** * 最终保费 */ @Getter @Setter @Column(index = 21, name = "FinalPrem", desc = "最终保费", type = Schema.TYPE_STRING, columnDefinition = "varchar(20)", length = 20) private String finalPrem; /** * 最终保额 */ @Getter @Setter @Column(index = 22, name = "FinalAmnt", desc = "最终保额", type = Schema.TYPE_STRING, columnDefinition = "varchar(20)", length = 20) private String finalAmnt; /** * 主附共用标识 */ @Getter @Setter @Column(index = 23, name = "RelaShareFlag", desc = "主附共用标识", type = Schema.TYPE_STRING, columnDefinition = "varchar(4)", length = 4) private String relaShareFlag; /** * 最后一次修改时间 */ @Getter @Setter @Column(index = 24, name = "ModifyTime", desc = "最后一次修改时间", type = Schema.TYPE_STRING, columnDefinition = "varchar(8)", length = 8) private String modifyTime; @Getter @Column(index = 25, name = "Discount", desc = "折扣", type = Schema.TYPE_DOUBLE, columnDefinition = "decimal(20,3)", precision = 3, scale = 20) private double discount; @Getter @Setter @Column(index = 26, name = "GetRate", desc = "基本医疗起付线(含)以下", type = Schema.TYPE_STRING, columnDefinition = "varchar(30)", length = 30) private String getRate; @Getter @Setter @Column(index = 27, name = "GetRate1", desc = "基本医疗起付线(不含)以上至封顶线(含)以下", type = Schema.TYPE_STRING, columnDefinition = "varchar(30)", length = 30) private String getRate1; @Getter @Setter @Column(index = 28, name = "GetRate2", desc = "基本医疗封顶线(不含)以上至大额医疗封顶线(含)以下", type = Schema.TYPE_STRING, columnDefinition = "varchar(30)", length = 30) private String getRate2; @Getter @Setter @Column(index = 29, name = "GetRate3", desc = "大额医疗封顶线(不含)以上", type = Schema.TYPE_STRING, columnDefinition = "varchar(30)", length = 30) private String getRate3; @Getter @Setter @Column(index = 30, name = "GetRate4", desc = "额门急诊起付线(含)以下", type = Schema.TYPE_STRING, columnDefinition = "varchar(30)", length = 30) private String getRate4; @Getter @Setter @Column(index = 31, name = "GetRate5", desc = "大额门急诊起付线(不含)以上", type = Schema.TYPE_STRING, columnDefinition = "varchar(30)", length = 30) private String getRate5; @Getter @Setter @Column(index = 32, name = "ManaCom", desc = "管理机构", type = Schema.TYPE_STRING, columnDefinition = "varchar(10)", nullable = false, length = 10) private String manaCom; @Getter @Setter @Column(index = 33, name = "StandbyFlag1", desc = "备用字段1", type = Schema.TYPE_STRING, columnDefinition = "varchar(20)", length = 20) private String standbyFlag1; @Getter @Setter @Column(index = 34, name = "StandbyFlag2", desc = "备用字段2", type = Schema.TYPE_STRING, columnDefinition = "varchar(20)", length = 20) private String standbyFlag2; @Getter @Setter @Column(index = 35, name = "StandbyFlag3", desc = "备用字段3", type = Schema.TYPE_STRING, columnDefinition = "varchar(20)", length = 20) private String standbyFlag3; @Getter @Setter @Column(index = 36, name = "StandbyFlag4", desc = "备用字段4", type = Schema.TYPE_STRING, columnDefinition = "varchar(20)", length = 20) private String standbyFlag4; @Getter @Setter @Column(index = 37, name = "StandbyFlag5", desc = "备用字段5", type = Schema.TYPE_STRING, columnDefinition = "varchar(20)", length = 20) private String standbyFlag5; /** * 备注 */ @Getter @Setter @Column(index = 38, name = "Remark", desc = "备注", type = Schema.TYPE_STRING, columnDefinition = "varchar(3000)", length = 3000) private String remark; /** * 入机操作员 */ @Getter @Setter @Column(index = 39, name = "MakeOperator", desc = "入机操作员", type = Schema.TYPE_STRING, columnDefinition = "varchar(30)", length = 30) private String makeOperator; /** * 入机日期 */ @Column(index = 40, name = "MakeDate", desc = "入机日期", type = Schema.TYPE_DATE, columnDefinition = "date") private Date makeDate; /** * 入机时间 */ @Getter @Setter @Column(index = 41, name = "MakeTime", desc = "入机时间", type = Schema.TYPE_STRING, columnDefinition = "varchar(8)", length = 8) private String makeTime; /** * 最后一次修改操作员 */ @Getter @Setter @Column(index = 42, name = "ModifyOperator", desc = "最后一次修改操作员", type = Schema.TYPE_STRING, columnDefinition = "varchar(30)", length = 30) private String modifyOperator; /** * 最后一次修改日期 */ @Column(index = 43, name = "ModifyDate", desc = "最后一次修改日期", type = Schema.TYPE_DATE, columnDefinition = "date") private Date modifyDate; @Getter @Setter @Column(index = 44, name = "FreeRisk", desc = "赠险", type = Schema.TYPE_STRING, columnDefinition = "varchar(2)", length = 2) private String freeRisk; @Getter @Setter @Column(index = 45, name = "MainRiskCode", desc = "主险代码", type = Schema.TYPE_STRING, columnDefinition = "varchar(20)", length = 20) private String mainRiskCode; @Getter @Column(index = 46, name = "CostRate", desc = "直接成本率", type = Schema.TYPE_DOUBLE, columnDefinition = "decimal(20,3)", precision = 3, scale = 20) private double costRate; @Getter @Setter @Column(index = 47, name = "ActivityID", desc = "工作流节点", type = Schema.TYPE_STRING, columnDefinition = "varchar(20)", length = 20) private String activityID; @Getter @Setter @Column(index = 48, name = "AuditTraceNo", desc = "审核轨迹流水号", type = Schema.TYPE_STRING, columnDefinition = "varchar(20)", length = 20) private String auditTraceNo; public static final int FIELDNUM = 49; // 数据库表的字段个数 private transient FDate fDate = new FDate(); // 处理日期 public transient CErrors mErrors; // 错误信息 // @Constructor public LSQuotPlanDetailBSchema() { mErrors = new CErrors(); } // @Method @Override public Object clone() throws CloneNotSupportedException { LSQuotPlanDetailBSchema cloned = (LSQuotPlanDetailBSchema) 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 LSQuotPlanDetailBSchema setQuotBatNo(int aQuotBatNo) { quotBatNo = aQuotBatNo; return this; } public LSQuotPlanDetailBSchema setQuotBatNo(String aQuotBatNo) { if (aQuotBatNo != null && !aQuotBatNo.equals("") && !aQuotBatNo.equals("null")) { quotBatNo = Integer.parseInt(aQuotBatNo); } return this; } public LSQuotPlanDetailBSchema setDiscount(double aDiscount) { discount = aDiscount; return this; } public LSQuotPlanDetailBSchema setDiscount(String aDiscount) { if (aDiscount != null && !aDiscount.equals("") && !aDiscount.equals("null")) { discount = Double.parseDouble(aDiscount); } return this; } public String getMakeDate() { if (makeDate != null) return fDate.getString(makeDate); else return null; } public LSQuotPlanDetailBSchema setMakeDate(Date aMakeDate) { makeDate = aMakeDate; return this; } public LSQuotPlanDetailBSchema 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 LSQuotPlanDetailBSchema setModifyDate(Date aModifyDate) { modifyDate = aModifyDate; return this; } public LSQuotPlanDetailBSchema setModifyDate(String aModifyDate) { if (aModifyDate != null && !aModifyDate.equals("") && !aModifyDate.equals("null")) { modifyDate = fDate.getDate(aModifyDate); } else { modifyDate = null; } return this; } public LSQuotPlanDetailBSchema setCostRate(double aCostRate) { costRate = aCostRate; return this; } public LSQuotPlanDetailBSchema setCostRate(String aCostRate) { if (aCostRate != null && !aCostRate.equals("") && !aCostRate.equals("null")) { costRate = Double.parseDouble(aCostRate); } return this; } @Override public LSQuotPlanDetailBSchema setSchema(LSQuotPlanDetailBSchema aLSQuotPlanDetailBSchema) { SchemaHelper.setSchema(aLSQuotPlanDetailBSchema, this); return this; } @Override public LSQuotPlanDetailBSchema getSchema() { LSQuotPlanDetailBSchema aLSQuotPlanDetailBSchema = new LSQuotPlanDetailBSchema(); aLSQuotPlanDetailBSchema.setSchema(this); return aLSQuotPlanDetailBSchema; } @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); } }