|
@@ -80,8 +80,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<select id="selectOrderList" resultType="com.miaxis.film.domain.FilmOrder">
|
|
|
select * from film_order
|
|
|
- where DATE_SUB(CURDATE(), INTERVAL #{days} DAY) <= date(create_time)
|
|
|
- and openid=#{openid}
|
|
|
+ where openid=#{openid}
|
|
|
+ <if test="days != null and days != ''">
|
|
|
+ and DATE_SUB(CURDATE(), INTERVAL #{days} DAY) <= date(create_time)
|
|
|
+ </if>
|
|
|
order by create_time desc
|
|
|
</select>
|
|
|
|