|
|
|
@ -15,13 +15,13 @@ |
|
|
|
<if test="dto.activityName != null and dto.activityName != '' "> |
|
|
|
AND activity_name LIKE CONCAT('%', TRIM(#{dto.activityName}),'%') |
|
|
|
</if> |
|
|
|
<if test="dto.activeState != null and dto.activeState = 0 "> |
|
|
|
<if test="dto.activeState != null and dto.activeState == 0 "> |
|
|
|
AND start_time > NOW() AND end_time > NOW() |
|
|
|
</if> |
|
|
|
<if test="dto.activeState != null and dto.activeState = 1 "> |
|
|
|
<if test="dto.activeState != null and dto.activeState == 1 "> |
|
|
|
AND start_time <= NOW() AND end_time >= NOW() |
|
|
|
</if> |
|
|
|
<if test="dto.activeState != null and dto.activeState = 2 "> |
|
|
|
<if test="dto.activeState != null and dto.activeState == 2 "> |
|
|
|
AND start_time < NOW() AND end_time < NOW() |
|
|
|
</if> |
|
|
|
</select> |
|
|
|
|