| | |
| | | <result column="site_name" property="siteName"/> |
| | | <result column="serve_id" property="serveId"/> |
| | | <result column="serve_name" property="serveName"/> |
| | | <result column="serve_price" property="servePrice"/> |
| | | <result column="reservation_name" property="reservationName"/> |
| | | <result column="reservation_phone" property="reservationPhone"/> |
| | | <result column="reservation_address" property="reservationAddress"/> |
| | |
| | | and DATE(o.time) <![CDATA[ <= ]]> #{data.endTime} |
| | | </if> |
| | | </where> |
| | | order by o.createTime desc |
| | | </select> |
| | | |
| | | <select id="orderPageCount" resultMap="BaseResultMap"> |
| | | select o.* |
| | | from t_order o |
| | | where o.is_delete = 0 |
| | | <where> |
| | | o.is_delete = 0 |
| | | <if test="data.orderNumber != null and data.orderNumber != ''"> |
| | | and o.order_number like concat('%', #{data.orderNumber}, '%') |
| | | </if> |
| | | <if test="data.cityName != null and data.cityName != ''"> |
| | | and o.city like concat('%', #{data.cityName}, '%') |
| | | </if> |
| | | <if test="data.reservationName != null and data.reservationName != ''"> |
| | | and o.reservation_name like concat('%', #{data.reservationName}, '%') |
| | | </if> |
| | | <if test="data.reservationPhone != null and data.reservationPhone != ''"> |
| | | and o.reservation_phone like concat('%', #{data.reservationPhone}, '%') |
| | | </if> |
| | | <if test="data.state != null"> |
| | | and o.state = #{data.state} |
| | | </if> |
| | | <if test="data.workerName != null and data.workerName != ''"> |
| | | and o.server_name like concat('%', #{data.workerName}, '%') |
| | | </if> |
| | | <if test="data.workerPhone != null and data.workerPhone != ''"> |
| | | and o.server_phone like concat('%', #{data.workerPhone}, '%') |
| | | </if> |
| | | <if test="data.serveName != null and data.serveName != ''"> |
| | | and o.serve_name like concat('%', #{data.serveName}, '%') |
| | | </if> |
| | | <if test="data.orderTimeStart != null and data.orderTimeStart != ''"> |
| | | and DATE(o.createTime) <![CDATA[ >= ]]> #{data.orderTimeStart} |
| | | </if> |
| | | <if test="data.orderTimeEnd != null and data.orderTimeEnd != ''"> |
| | | and DATE(o.createTime) <![CDATA[ <= ]]> #{data.orderTimeEnd} |
| | | </if> |
| | | <if test="data.startTime != null and data.startTime != ''"> |
| | | and DATE(o.time) <![CDATA[ >= ]]> #{data.startTime} |
| | | </if> |
| | | <if test="data.endTime != null and data.endTime != ''"> |
| | | and DATE(o.time) <![CDATA[ <= ]]> #{data.endTime} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="exportByIdList" resultMap="BaseResultMap"> |