|
@@ -72,6 +72,10 @@
|
|
<select id="findReportCount" parameterType="com.jeesite.modules.report.entity.ResearchReport"
|
|
<select id="findReportCount" parameterType="com.jeesite.modules.report.entity.ResearchReport"
|
|
resultType="java.lang.Long">
|
|
resultType="java.lang.Long">
|
|
select count(1) from research_report b
|
|
select count(1) from research_report b
|
|
|
|
+ left join bjfl_config.js_sys_config s1 on b.lang = 'zh-CN' and b.report_region = '0' and s1.config_key = 'cn.china.full.single.price'
|
|
|
|
+ left join bjfl_config.js_sys_config s2 on b.lang = 'zh-CN' and b.report_region = '1' and s2.config_key = 'cn.global.full.single.price'
|
|
|
|
+ left join bjfl_config.js_sys_config s3 on b.lang = 'en-US' and b.report_region = '0' and s3.config_key = 'en.china.full.single.price'
|
|
|
|
+ left join bjfl_config.js_sys_config s4 on b.lang = 'en-US' and b.report_region = '1' and s4.config_key = 'en.global.full.single.price'
|
|
where b.status = '0'
|
|
where b.status = '0'
|
|
<include refid="whereStr02"/>
|
|
<include refid="whereStr02"/>
|
|
</select>
|
|
</select>
|
|
@@ -117,75 +121,69 @@
|
|
</if>
|
|
</if>
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
- <!--公共条件-->
|
|
|
|
- <sql id="whereStr" >
|
|
|
|
- <if test="report.lang != null and report.lang != ''">
|
|
|
|
- and lang = #{report.lang}
|
|
|
|
- </if>
|
|
|
|
- <if test="report.queryKeyword != null and report.queryKeyword !=''">
|
|
|
|
- and title like concat('%',#{report.queryKeyword},'%')
|
|
|
|
- </if>
|
|
|
|
- <if test="report.marketType != null and report.marketType !=''">
|
|
|
|
- and market_type = #{report.marketType}
|
|
|
|
- </if>
|
|
|
|
- <if test="report.queryPrice != null">
|
|
|
|
- <if test="report.queryPrice >= 15001">and price >= #{report.queryPrice}</if>
|
|
|
|
- <if test="15001 > report.queryPrice">and price <= #{report.queryPrice}</if>
|
|
|
|
- </if>
|
|
|
|
- <if test="report.queryPublishDate != null">
|
|
|
|
- and publish_date >= date_sub(now(),interval #{report.queryPublishDate} month)
|
|
|
|
- </if>
|
|
|
|
-
|
|
|
|
- <!--自定义查询-->
|
|
|
|
- <if test="report.priceStr != null">
|
|
|
|
- and price >= #{report.priceStr}
|
|
|
|
- </if>
|
|
|
|
- <if test="report.priceEnd != null">
|
|
|
|
- and price >= #{report.priceEnd}
|
|
|
|
- </if>
|
|
|
|
- <if test="report.publishDateStr != null">
|
|
|
|
- and publish_date >= #{report.publishDateStr}
|
|
|
|
- </if>
|
|
|
|
- <if test="report.publishDateEnd != null">
|
|
|
|
- and publish_date >= #{report.publishDateEnd}
|
|
|
|
- </if>
|
|
|
|
- </sql>
|
|
|
|
-
|
|
|
|
<select id="findPrices" parameterType="com.jeesite.modules.report.entity.ResearchReport"
|
|
<select id="findPrices" parameterType="com.jeesite.modules.report.entity.ResearchReport"
|
|
resultType="com.jeesite.modules.report.entity.ResearchReport">
|
|
resultType="com.jeesite.modules.report.entity.ResearchReport">
|
|
select count(1) marketCount,if(#{report.lang} = 'zh-CN','¥<8000', 'USD<8000') marketTypeName, 8000 price
|
|
select count(1) marketCount,if(#{report.lang} = 'zh-CN','¥<8000', 'USD<8000') marketTypeName, 8000 price
|
|
- from research_report
|
|
|
|
- where status = '0' <include refid="whereStr"/>
|
|
|
|
|
|
+ from research_report b
|
|
|
|
+ left join bjfl_config.js_sys_config s1 on b.lang = 'zh-CN' and b.report_region = '0' and s1.config_key = 'cn.china.full.single.price'
|
|
|
|
+ left join bjfl_config.js_sys_config s2 on b.lang = 'zh-CN' and b.report_region = '1' and s2.config_key = 'cn.global.full.single.price'
|
|
|
|
+ left join bjfl_config.js_sys_config s3 on b.lang = 'en-US' and b.report_region = '0' and s3.config_key = 'en.china.full.single.price'
|
|
|
|
+ left join bjfl_config.js_sys_config s4 on b.lang = 'en-US' and b.report_region = '1' and s4.config_key = 'en.global.full.single.price'
|
|
|
|
+ where status = '0' <include refid="whereStr02"/>
|
|
union all
|
|
union all
|
|
select count(1) marketCount,if(#{report.lang} = 'zh-CN','¥<12000', 'USD<12000') marketTypeName, 12000 price
|
|
select count(1) marketCount,if(#{report.lang} = 'zh-CN','¥<12000', 'USD<12000') marketTypeName, 12000 price
|
|
- from research_report
|
|
|
|
- where status = '0' <include refid="whereStr"/>
|
|
|
|
|
|
+ from research_report b
|
|
|
|
+ left join bjfl_config.js_sys_config s1 on b.lang = 'zh-CN' and b.report_region = '0' and s1.config_key = 'cn.china.full.single.price'
|
|
|
|
+ left join bjfl_config.js_sys_config s2 on b.lang = 'zh-CN' and b.report_region = '1' and s2.config_key = 'cn.global.full.single.price'
|
|
|
|
+ left join bjfl_config.js_sys_config s3 on b.lang = 'en-US' and b.report_region = '0' and s3.config_key = 'en.china.full.single.price'
|
|
|
|
+ left join bjfl_config.js_sys_config s4 on b.lang = 'en-US' and b.report_region = '1' and s4.config_key = 'en.global.full.single.price'
|
|
|
|
+ where status = '0' <include refid="whereStr02"/>
|
|
union all
|
|
union all
|
|
select count(1) marketCount,if(#{report.lang} = 'zh-CN','¥<15000', 'USD<15000') marketTypeName,15000 price
|
|
select count(1) marketCount,if(#{report.lang} = 'zh-CN','¥<15000', 'USD<15000') marketTypeName,15000 price
|
|
- from research_report
|
|
|
|
- where status = '0' <include refid="whereStr"/>
|
|
|
|
|
|
+ from research_report b
|
|
|
|
+ left join bjfl_config.js_sys_config s1 on b.lang = 'zh-CN' and b.report_region = '0' and s1.config_key = 'cn.china.full.single.price'
|
|
|
|
+ left join bjfl_config.js_sys_config s2 on b.lang = 'zh-CN' and b.report_region = '1' and s2.config_key = 'cn.global.full.single.price'
|
|
|
|
+ left join bjfl_config.js_sys_config s3 on b.lang = 'en-US' and b.report_region = '0' and s3.config_key = 'en.china.full.single.price'
|
|
|
|
+ left join bjfl_config.js_sys_config s4 on b.lang = 'en-US' and b.report_region = '1' and s4.config_key = 'en.global.full.single.price'
|
|
|
|
+ where status = '0' <include refid="whereStr02"/>
|
|
union all
|
|
union all
|
|
select count(1) marketCount,if(#{report.lang} = 'zh-CN','¥>15000', 'USD>15000') marketTypeName,15001 price
|
|
select count(1) marketCount,if(#{report.lang} = 'zh-CN','¥>15000', 'USD>15000') marketTypeName,15001 price
|
|
- from research_report
|
|
|
|
- where status = '0' <include refid="whereStr"/>
|
|
|
|
|
|
+ from research_report b
|
|
|
|
+ left join bjfl_config.js_sys_config s1 on b.lang = 'zh-CN' and b.report_region = '0' and s1.config_key = 'cn.china.full.single.price'
|
|
|
|
+ left join bjfl_config.js_sys_config s2 on b.lang = 'zh-CN' and b.report_region = '1' and s2.config_key = 'cn.global.full.single.price'
|
|
|
|
+ left join bjfl_config.js_sys_config s3 on b.lang = 'en-US' and b.report_region = '0' and s3.config_key = 'en.china.full.single.price'
|
|
|
|
+ left join bjfl_config.js_sys_config s4 on b.lang = 'en-US' and b.report_region = '1' and s4.config_key = 'en.global.full.single.price'
|
|
|
|
+ where status = '0' <include refid="whereStr02"/>
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="findPublishDates" parameterType="com.jeesite.modules.report.entity.ResearchReport"
|
|
<select id="findPublishDates" parameterType="com.jeesite.modules.report.entity.ResearchReport"
|
|
resultType="com.jeesite.modules.report.entity.ResearchReport">
|
|
resultType="com.jeesite.modules.report.entity.ResearchReport">
|
|
select count(1) marketCount, if(#{report.lang} = 'zh-CN','最近3月','Last 3 months') marketTypeName,3 publishDateValue
|
|
select count(1) marketCount, if(#{report.lang} = 'zh-CN','最近3月','Last 3 months') marketTypeName,3 publishDateValue
|
|
- from research_report
|
|
|
|
|
|
+ from research_report b
|
|
|
|
+ left join bjfl_config.js_sys_config s1 on b.lang = 'zh-CN' and b.report_region = '0' and s1.config_key = 'cn.china.full.single.price'
|
|
|
|
+ left join bjfl_config.js_sys_config s2 on b.lang = 'zh-CN' and b.report_region = '1' and s2.config_key = 'cn.global.full.single.price'
|
|
|
|
+ left join bjfl_config.js_sys_config s3 on b.lang = 'en-US' and b.report_region = '0' and s3.config_key = 'en.china.full.single.price'
|
|
|
|
+ left join bjfl_config.js_sys_config s4 on b.lang = 'en-US' and b.report_region = '1' and s4.config_key = 'en.global.full.single.price'
|
|
where status = '0' and publish_date >= date_sub(now(),interval 3 month)
|
|
where status = '0' and publish_date >= date_sub(now(),interval 3 month)
|
|
- <include refid="whereStr"/>
|
|
|
|
|
|
+ <include refid="whereStr02"/>
|
|
union all
|
|
union all
|
|
select count(1) marketCount, if(#{report.lang} = 'zh-CN','最近1年','Last 1 year') marketTypeName,12 publishDateValue
|
|
select count(1) marketCount, if(#{report.lang} = 'zh-CN','最近1年','Last 1 year') marketTypeName,12 publishDateValue
|
|
- from research_report
|
|
|
|
|
|
+ from research_report b
|
|
|
|
+ left join bjfl_config.js_sys_config s1 on b.lang = 'zh-CN' and b.report_region = '0' and s1.config_key = 'cn.china.full.single.price'
|
|
|
|
+ left join bjfl_config.js_sys_config s2 on b.lang = 'zh-CN' and b.report_region = '1' and s2.config_key = 'cn.global.full.single.price'
|
|
|
|
+ left join bjfl_config.js_sys_config s3 on b.lang = 'en-US' and b.report_region = '0' and s3.config_key = 'en.china.full.single.price'
|
|
|
|
+ left join bjfl_config.js_sys_config s4 on b.lang = 'en-US' and b.report_region = '1' and s4.config_key = 'en.global.full.single.price'
|
|
where status = '0' and publish_date >= date_sub(now(),interval 12 month)
|
|
where status = '0' and publish_date >= date_sub(now(),interval 12 month)
|
|
- <include refid="whereStr"/>
|
|
|
|
|
|
+ <include refid="whereStr02"/>
|
|
union all
|
|
union all
|
|
select count(1) marketCount, if(#{report.lang} = 'zh-CN','最近2年','Last 2 year') marketTypeName,24 publishDateValue
|
|
select count(1) marketCount, if(#{report.lang} = 'zh-CN','最近2年','Last 2 year') marketTypeName,24 publishDateValue
|
|
- from research_report
|
|
|
|
|
|
+ from research_report b
|
|
|
|
+ left join bjfl_config.js_sys_config s1 on b.lang = 'zh-CN' and b.report_region = '0' and s1.config_key = 'cn.china.full.single.price'
|
|
|
|
+ left join bjfl_config.js_sys_config s2 on b.lang = 'zh-CN' and b.report_region = '1' and s2.config_key = 'cn.global.full.single.price'
|
|
|
|
+ left join bjfl_config.js_sys_config s3 on b.lang = 'en-US' and b.report_region = '0' and s3.config_key = 'en.china.full.single.price'
|
|
|
|
+ left join bjfl_config.js_sys_config s4 on b.lang = 'en-US' and b.report_region = '1' and s4.config_key = 'en.global.full.single.price'
|
|
where status = '0' and publish_date >= date_sub(now(),interval 24 month)
|
|
where status = '0' and publish_date >= date_sub(now(),interval 24 month)
|
|
- <include refid="whereStr"/>
|
|
|
|
|
|
+ <include refid="whereStr02"/>
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="researchReportForm" resultType="com.jeesite.modules.report.entity.ResearchReport"
|
|
<select id="researchReportForm" resultType="com.jeesite.modules.report.entity.ResearchReport"
|