|
@@ -33,15 +33,7 @@
|
|
|
left join bjfl_config.js_sys_file_upload c on c.biz_key = b.id and c.status = '0'
|
|
|
left join bjfl_config.js_sys_file_entity d on d.file_id = c.file_id
|
|
|
where b.status = '0' and b.lang = #{info.lang}
|
|
|
- <if test="info.marketCategory != null and info.marketCategory !=''">
|
|
|
- and b.market_category = #{info.marketCategory}
|
|
|
- </if>
|
|
|
- <if test="info.marketType != null and info.marketType !=''">
|
|
|
- and b.market_type = #{info.marketType}
|
|
|
- </if>
|
|
|
- <if test="info.keyword != null and info.keyword != ''">
|
|
|
- and b.title like concat('%',#{info.keyword},'%')
|
|
|
- </if>
|
|
|
+ <include refid="where_find"/>
|
|
|
order by b.update_date desc
|
|
|
limit ${info.pageSize * (info.pageNo - 1)},${info.pageSize}
|
|
|
</select>
|
|
@@ -50,6 +42,10 @@
|
|
|
resultType="java.lang.Long">
|
|
|
select count(*) from market_info b
|
|
|
where b.status = '0' and b.lang = #{info.lang}
|
|
|
+ <include refid="where_find"/>
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <sql id="where_find">
|
|
|
<if test="info.marketCategory != null and info.marketCategory !=''">
|
|
|
and b.market_category = #{info.marketCategory}
|
|
|
</if>
|
|
@@ -59,7 +55,13 @@
|
|
|
<if test="info.keyword != null and info.keyword != ''">
|
|
|
and b.title like concat('%',#{info.keyword},'%')
|
|
|
</if>
|
|
|
- </select>
|
|
|
+ <if test="info.marketTypeList != null and info.marketTypeList.size() > 0">
|
|
|
+ AND b.market_type in
|
|
|
+ <foreach item="marketType" collection="info.marketTypeList" open="(" separator="," close=")">
|
|
|
+ #{marketType}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
+ </sql>
|
|
|
|
|
|
<select id="getMarketInfoLast" resultType="com.jeesite.modules.report.entity.MarketInfo">
|
|
|
select id,title from market_info where status = '0' and update_date = (
|