123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
- <mapper namespace="com.smppw.analysis.domain.mapper.IndexesProfileDoMapper">
- <resultMap id="BaseResultMap" type="com.smppw.analysis.domain.dataobject.IndexesProfileDo">
- <!--@mbg.generated-->
- <!--@Table indexes_profile-->
- <id column="id" property="id"/>
- <result column="index_id" property="indexId"/>
- <result column="index_type" property="indexType"/>
- <result column="index_type_second" property="indexTypeSecond"/>
- <result column="index_type_third" property="indexTypeThird"/>
- <result column="index_type_id" property="indexTypeId"/>
- <result column="index_code" property="indexCode"/>
- <result column="index_name" property="indexName"/>
- <result column="index_short_name" property="indexShortName"/>
- <result column="index_area_flag" property="indexAreaFlag"/>
- <result column="index_family_id" property="indexFamilyId"/>
- <result column="pricing_frequency" property="pricingFrequency"/>
- <result column="inception_date" property="inceptionDate"/>
- <result column="index_initial_value" property="indexInitialValue"/>
- <result column="base_currency" property="baseCurrency"/>
- <result column="calculation_method" property="calculationMethod"/>
- <result column="weighting_scheme" property="weightingScheme"/>
- <result column="selection_scheme" property="selectionScheme"/>
- <result column="reconstitution_frequency" property="reconstitutionFrequency"/>
- <result column="rebalance_frequency" property="rebalanceFrequency"/>
- <result column="isvisible" property="isvisible"/>
- <result column="creatorid" property="creatorid"/>
- <result column="createtime" property="createtime"/>
- <result column="updaterid" property="updaterid"/>
- <result column="updatetime" property="updatetime"/>
- <result column="isvalid" property="isvalid"/>
- <result column="qc" property="qc"/>
- <result column="qcdate" property="qcdate"/>
- <result column="qcstate" property="qcstate"/>
- <result column="auditor" property="auditor"/>
- <result column="auditdate" property="auditdate"/>
- <result column="auditstate" property="auditstate"/>
- <result column="qcremark" property="qcremark"/>
- <result column="auditremark" property="auditremark"/>
- <result column="remark" property="remark"/>
- </resultMap>
- <sql id="Base_Column_List">
- <!--@mbg.generated-->
- id,
- index_id,
- index_type,
- index_type_second,
- index_type_third,
- index_type_id,
- index_code,
- index_name,
- index_short_name,
- index_area_flag,
- index_family_id,
- pricing_frequency,
- inception_date,
- index_initial_value,
- base_currency,
- calculation_method,
- weighting_scheme,
- selection_scheme,
- reconstitution_frequency,
- rebalance_frequency,
- isvisible,
- creatorid,
- createtime,
- updaterid,
- updatetime,
- isvalid,
- qc,
- qcdate,
- qcstate,
- auditor,
- auditdate,
- auditstate,
- qcremark,
- auditremark,
- remark
- </sql>
- <select id="listThirdIndexes" resultType="java.lang.String">
- select distinct index_id
- from indexes_profile
- where index_type = 1
- AND index_type_second = 111
- </select>
- <select id="listFundIdAndFundShortName" resultMap="BaseResultMap">
- select index_id, index_short_name
- from indexes_profile where isvalid = 1
- AND index_id in
- <foreach collection="indexIdList" item="indexId" index="index" open="(" separator="," close=")">
- #{indexId}
- </foreach>
- </select>
- <select id="listInfoByIndexIdList" resultMap="BaseResultMap">
- select
- <include refid="Base_Column_List"/>
- from rz_hfdb_core.indexes_profile
- where index_id in
- <foreach collection="indexIdList" index="index" item="indexId" open="(" separator="," close=")">
- #{indexId}
- </foreach>
- </select>
- <select id="getIndexNameByIndexId" resultType="java.lang.String">
- select index_name
- from rz_hfdb_core.indexes_profile
- where index_id = #{indexId}
- and isvalid = 1
- </select>
- <select id="getStrategyIndexId" parameterType="int" resultType="string">
- select a.index_id from indexes_profile a where a.index_type_second = 102 and a.remark = #{strategyId} and a.isvalid = 1 limit 1
- </select>
- </mapper>
|