| | |
| | | #{payMaxEndTime} |
| | | </if> |
| | | , |
| | | <if test="payMaxStarTime == ''"> |
| | | #{payMaxStarTime} |
| | | <if test="payMaxStartTime == ''"> |
| | | NULL |
| | | </if> |
| | | <if test="payMaxStarTime != ''"> |
| | | #{endTime} |
| | | <if test="payMaxStartTime != ''"> |
| | | #{payMaxStartTime} |
| | | </if> |
| | | ) |
| | | </insert> |
| | |
| | | and t.community_id= #{communityId} |
| | | </if> |
| | | <if test="currentTime !=null "> |
| | | and t.start_time < #{currentTime} |
| | | and (t.start_time < #{currentTime} or t.start_time is NULL) |
| | | </if> |
| | | <if test="currentTime !=null "> |
| | | and t.end_time > #{currentTime} |
| | | and (t.end_time > #{currentTime} or t.end_time is NULL) |
| | | </if> |
| | | order by t.create_time desc |
| | | <if test="page != -1 and page != null "> |
| | |
| | | <if test="payMaxStarTime !=null and payMaxStarTime != ''"> |
| | | , t.pay_max_star_time= #{payMaxStarTime} |
| | | </if> |
| | | <if test="payMaxEndTime !=null and payMaxEndTime != ''"> |
| | | , t.paymax_end_time= #{payMaxEndTime} |
| | | </if> |
| | | where 1=1 |
| | | <if test="configDiscountId !=null and configDiscountId != ''"> |
| | | and t.config_discount_id= #{configDiscountId} |