FundStyleStatsMapper.xml 823 B

123456789101112131415161718
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3. <mapper namespace="com.smppw.analysis.domain.mapper.FundStyleStatsMapper">
  4. <select id="listFundStyleOverview" resultType="com.smppw.analysis.domain.dataobject.FundStyleStatsDO">
  5. SELECT fund_id AS fundId,
  6. end_date as endDate,
  7. upsidecapture_ratio_1y AS upsideCaptureRatio1y,
  8. downsidecapture_ratio_1y AS downsideCaptureRatio1y
  9. FROM rz_hfdb_core.`fund_style_stats` cfi
  10. WHERE fund_id = #{fundId}
  11. AND upsidecapture_ratio_1y IS NOT NULL
  12. AND downsidecapture_ratio_1y IS NOT NULL
  13. AND isvalid = 1
  14. ORDER BY end_date
  15. </select>
  16. </mapper>