| | |
| | | |
| | | <select id="selectMaxOrderIdByMonth"> |
| | | select |
| | | ifnull(SUBSTR(order_id from 7),0) |
| | | ifnull(SUBSTR(max(order_id) from 7),0) |
| | | from |
| | | `order` as a |
| | | where |
| | | date(a.create_time) BETWEEN DATE_FORMAT(DATE(NOW()), '%Y-%m-01') AND DATE(NOW()) |
| | | order by id desc limit 1 |
| | | </select> |
| | | |
| | | |
| | |
| | | <if test="order.warehousing != null "> |
| | | and o.warehousing = #{order.warehousing} |
| | | </if> |
| | | <if test="order.processingNote != null and order.processingNote != ''"> |
| | | and o.processing_note REGEXP #{order.processingNote} |
| | | </if> |
| | | group by o.id |
| | | order by o.id desc |
| | | limit #{offset},#{pageSize} |
| | |
| | | <if test="order.warehousing != null "> |
| | | and o.warehousing = #{order.warehousing} |
| | | </if> |
| | | <if test="order.processingNote != null and order.processingNote != ''"> |
| | | and o.processing_note REGEXP #{order.processingNote} |
| | | </if> |
| | | order by o.id desc |
| | | </select> |
| | | |