|
@@ -37,13 +37,49 @@
|
|
|
<!--查询套系列表-->
|
|
|
<select id="selectPostSeriesList" parameterType="PostSeries" resultMap="PostSeriesResult">
|
|
|
<include refid="selectPostSeriesVo"/>
|
|
|
- <if test="seriesName != null and seriesName != ''">and series_name like concat('%', #{seriesName}, '%') </if>
|
|
|
- <if test="seriesImage != null and seriesImage != ''"> and series_image = #{seriesImage}</if>
|
|
|
- <if test="collectionCounts != null ">and collection_counts = #{collectionCounts}</if>
|
|
|
- <if test="status != null and status != ''">and status = #{status}</if>
|
|
|
- <if test="exchangeStatus != null and exchangeStatus != ''">and exchange_status = #{exchangeStatus}</if>
|
|
|
- <if test="startTime != null ">and start_time = #{startTime}</if>
|
|
|
- <if test="endTime != null ">and end_time = #{endTime}</if>
|
|
|
+ <if test="seriesName != null and seriesName != ''">and series_name like concat('%', #{seriesName}, '%')</if>
|
|
|
+ <if test="seriesImage != null and seriesImage != ''">and series_image = #{seriesImage}</if>
|
|
|
+ <if test="collectionCounts != null ">and collection_counts = #{collectionCounts}</if>
|
|
|
+ <if test="status != null and status != ''">and status = #{status}</if>
|
|
|
+ <if test="exchangeStatus != null and exchangeStatus != ''">and exchange_status = #{exchangeStatus}</if>
|
|
|
+ <if test="startTime != null ">and start_time = #{startTime}</if>
|
|
|
+ <if test="endTime != null ">and end_time = #{endTime}</if>
|
|
|
+ </select>
|
|
|
+ <!--查询套系列表-->
|
|
|
+ <select id="selectPostSeriesSale" parameterType="PostSeries" resultMap="PostSeriesResult">
|
|
|
+ <include refid="selectPostSeriesVo"/>
|
|
|
+ and status='0'
|
|
|
+ <if test="seriesName != null and seriesName != ''">and series_name like concat('%', #{seriesName}, '%')</if>
|
|
|
+ <if test="seriesImage != null and seriesImage != ''">and series_image = #{seriesImage}</if>
|
|
|
+ <if test="collectionCounts != null ">and collection_counts = #{collectionCounts}</if>
|
|
|
+ <if test="status != null and status != ''">and status = #{status}</if>
|
|
|
+ <if test="exchangeStatus != null and exchangeStatus != ''">and exchange_status = #{exchangeStatus}</if>
|
|
|
+ <if test="startTime != null ">and start_time = #{startTime}</if>
|
|
|
+ <if test="endTime != null ">and end_time = #{endTime}</if>
|
|
|
+ </select>
|
|
|
+ <!--查询套系列表-->
|
|
|
+ <select id="selectPostSeriesPreSale" parameterType="PostSeries" resultMap="PostSeriesResult">
|
|
|
+ <include refid="selectPostSeriesVo"/>
|
|
|
+ and status='1'
|
|
|
+ <if test="seriesName != null and seriesName != ''">and series_name like concat('%', #{seriesName}, '%')</if>
|
|
|
+ <if test="seriesImage != null and seriesImage != ''">and series_image = #{seriesImage}</if>
|
|
|
+ <if test="collectionCounts != null ">and collection_counts = #{collectionCounts}</if>
|
|
|
+ <if test="status != null and status != ''">and status = #{status}</if>
|
|
|
+ <if test="exchangeStatus != null and exchangeStatus != ''">and exchange_status = #{exchangeStatus}</if>
|
|
|
+ <if test="startTime != null ">and start_time = #{startTime}</if>
|
|
|
+ <if test="endTime != null ">and end_time = #{endTime}</if>
|
|
|
+ </select>
|
|
|
+ <!--查询套系列表-->
|
|
|
+ <select id="selectPostSeriesOverdue" parameterType="PostSeries" resultMap="PostSeriesResult">
|
|
|
+ <include refid="selectPostSeriesVo"/>
|
|
|
+ and status='2'
|
|
|
+ <if test="seriesName != null and seriesName != ''">and series_name like concat('%', #{seriesName}, '%')</if>
|
|
|
+ <if test="seriesImage != null and seriesImage != ''">and series_image = #{seriesImage}</if>
|
|
|
+ <if test="collectionCounts != null ">and collection_counts = #{collectionCounts}</if>
|
|
|
+ <if test="status != null and status != ''">and status = #{status}</if>
|
|
|
+ <if test="exchangeStatus != null and exchangeStatus != ''">and exchange_status = #{exchangeStatus}</if>
|
|
|
+ <if test="startTime != null ">and start_time = #{startTime}</if>
|
|
|
+ <if test="endTime != null ">and end_time = #{endTime}</if>
|
|
|
</select>
|
|
|
<!--套系ID查询-->
|
|
|
<select id="selectPostSeriesBySeriesId" parameterType="Long" resultMap="PostSeriesResult">
|