| | |
| | | from |
| | | sd.`order` as o |
| | | where |
| | | o.quantity=#{order.quantity} and o.area=#{order.area} and o.project=#{order.project} and o.customer_id=#{order.customerId} |
| | | o.quantity=#{order.quantity} and o.area=#{order.area} and trim(o.project)=trim(#{order.project}) and o.customer_id=#{order.customerId} |
| | | </select> |
| | | |
| | | <select id="selectMaxOrderId"> |
| | |
| | | select count(*) from sd.`order` where order_id=#{oldOrderId} and SUBSTR(#{oldOrderId},5,2)=000001 |
| | | </select> |
| | | |
| | | |
| | | <select id="selectOrderId"> |
| | | select * from sd.`order` where order_id=#{orderId} |
| | | </select> |
| | | |
| | | <update id="updateOrderId"> |
| | | update sd.`order` set order_id=#{newOrderId} where order_id=#{oldOrderId} |