package com.simuwang.base.pojo.dos; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import com.simuwang.base.common.util.DateUtils; import com.simuwang.base.pojo.vo.FundInfoVO; import com.simuwang.base.pojo.vo.FundInformationVO; import lombok.Data; import java.util.Date; /** * FileName: FundInformation * Author: chenjianhua * Date: 2024/9/6 11:34 * Description: ${DESCRIPTION} */ @Data @TableName("pvn_fund_info") public class FundInfoDO { /** * 主键Id */ @TableId(value = "id") private Integer id; /** * 父级产品ID */ @TableField(value = "p_fund_id") private String pFundId; /** * 基金ID */ @TableField(value = "fund_id") private String fundId; /** * 基金全称 */ @TableField(value = "fund_name") private String fundName; /** * 基金简称 */ @TableField(value = "fund_short_name") private String fundShortName; /** * 基金类型:1-信托计划,2-有限合伙(已废弃),3-券商资管,4-公募专户,5-单账户,6-证券投资基金,7-海外基金,8-期货资管,9-保险资管、10-创业投资基金、11-股权投资基金、12-银行理财、13-类固收信托(已废弃) 、 14-私募资产配置基金 15公募基金 -1其他投资基金 */ @TableField(value = "fund_type") private Integer fundType; /** * 管理类型:1-顾问管理,2-受托管理,3-自我管理 */ @TableField(value = "manager_type") private Integer managerType; /** * 基础货币,1-人民币,2-港币,3-美元,4-份,-1-其他 */ @TableField(value = "base_currency") private Integer baseCurrency; /** * 成立日期 */ @TableField(value = "inception_date") private String inceptionDate; /** * 投资顾问Id */ @TableField(value = "advisor_id") private String advisorId; /** * 发行人id */ @TableField(value = "issuer_id") private String issuerId; /** * 托管机构Id */ @TableField(value = "custodian_id") private String custodianId; /** * 基金管理公司Id */ @TableField(value = "trust_id") private String trustId; /** * 备案编码 */ @TableField(value = "register_number") private String registerNumber; /** * 当前是否备案展示:1-是 0-否 -1-不详 */ @TableField(value = "is_amac_show") private Integer isAmacShow; /** * 基金运行状态:1-募集中、2-开放运行、3-封闭运行(已废弃)、4-提前清算、5-到期清算、6-发行失败、7-投顾协议已终止、 8-延期清算 -1-其他 9-非正常清算 10-已终止 11-已作废 */ @TableField(value = "fund_status") private Integer fundStatus; /** * 中基协基金类型:1-私募基金(自主备案),2-期货资管,3-券商资管,4-公募专户 5-证券公司直投基金 6-证券公司私募投资基金 7-基金公司私募投资基金 8-资产支持专项计划 -1-不详 */ @TableField(value = "amac_source_type") private Integer amacSourceType; /** * 监管公示投资类型:1-混合类,2-固定收益类,3-商品及金融衍生品类,4-权益类,5-其他类产品,6-非标类产品,-1-监管未公示 */ @TableField(value = "investment_type") private Integer investmentType; /** * 备案日期 */ @TableField(value = "register_date") private String registerDate; /** * 清算日期 */ @TableField(value = "liquidate_date") private String liquidateDate; /** * 开始运作日期 */ @TableField(value = "performance_start_date") private String performanceStartDate; /** * 是否份额基金:1-是 0-否 */ @TableField(value = "is_shareclass") private Integer isShareclass; /** * 记录的有效性;1-有效;0-无效; */ @TableField(value = "isvalid") private Integer isvalid; /** * 创建时间,默认第一次创建的getdate()时间 */ @TableField(value = "createtime") private Date createTime; /** * 修改时间;第一次创建时与CreatTime值相同,修改时与修改时间相同 */ @TableField(value = "updatetime") private Date updateTime; /** * 投资顾问名称 */ private String advisorCompanyName; /** * 管理人名称 */ private String trustCompanyName; /** * 发行人公司 * @return */ private String issuerCompanyName; public FundInfoVO toVO() { FundInfoVO vo = new FundInfoVO(); vo.setId(this.id); vo.setFundId(this.fundId); vo.setFundShortName(this.fundShortName); vo.setInceptionDate(this.inceptionDate); vo.setAdvisorId(this.advisorId); vo.setIssuerId(this.issuerId); vo.setIssuerCompanyName(this.issuerCompanyName); vo.setTrustCompanyName(this.trustCompanyName); vo.setBaseCurrency(this.baseCurrency); vo.setFundName(this.fundName); vo.setAdvisorCompanyName(this.advisorCompanyName); vo.setFundStatus(this.fundStatus); vo.setFundType(this.fundType); vo.setRegisterNumber(this.registerNumber); vo.setCreateTime(DateUtils.format(this.createTime,DateUtils.YYYY_MM_DD_HH_MM_SS)); vo.setCustodianId(this.custodianId); vo.setAmacSourceType(this.amacSourceType); vo.setPFundId(this.pFundId); vo.setInvestmentType(this.investmentType); vo.setIsAmacShow(this.isAmacShow); vo.setPerformanceStartDate(this.performanceStartDate); vo.setLiquidateDate(this.liquidateDate); vo.setManagerType(this.managerType); vo.setRegisterDate(this.registerDate); vo.setIsShareclass(this.isShareclass); vo.setTrustId(this.trustId); return vo; } }