| | |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | <if test="param."> |
| | | and order_from = #{param.} |
| | | </if> |
| | | <if test="param.startDate!=null and param.startDate!=''"> |
| | | AND Date(create_time) >= #{param.startDate} |
| | | </if> |
| | |
| | | AND (toc.order_no LIKE CONCAT('%',#{param.keyword},'%') OR toc.activity_name LIKE CONCAT('%',#{param.keyword},'%') OR FIND_IN_SET(toc.user_id, #{param.userIds}) > 0) |
| | | </if> |
| | | <if test="param.createTimeBegin != null and param.createTimeBegin != ''"> |
| | | AND Date(toc.create_time) >= #{param.createTimeBegin} |
| | | AND toc.create_time >= #{param.createTimeBegin} |
| | | </if> |
| | | <if test="param.createTimeEnd != null and param.createTimeEnd != ''"> |
| | | AND Date(toc.create_time) <= #{param.createTimeEnd} |
| | | AND toc.create_time <= #{param.createTimeEnd} |
| | | </if> |
| | | <if test="param.useTimeBegin != null and param.useTimeBegin != ''"> |
| | | AND Date(toc.use_time) >= #{param.useTimeBegin} |
| | | AND toc.use_time >= #{param.useTimeBegin} |
| | | </if> |
| | | <if test="param.useTimeEnd != null and param.useTimeEnd != ''"> |
| | | AND Date(toc.use_time) <= #{param.useTimeEnd} |
| | | AND toc.use_time <= #{param.useTimeEnd} |
| | | </if> |
| | | ORDER BY toc.create_time DESC |
| | | </select> |