| | |
| | | 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"> |
| | |
| | | o.order_id = #{orderId} |
| | | |
| | | </update> |
| | | |
| | | <select id="selectDifferentSize"> |
| | | select a.order_number,count(a.order_number),a.order_id from(select order_id,order_number |
| | | from sd.order_glass_detail ogd |
| | | where ogd.order_id = #{orderId} |
| | | group by ogd.order_number,ogd.child_height,child_width) |
| | | as a |
| | | group by a.order_number |
| | | having count(a.order_number) > 1 |
| | | </select> |
| | | |
| | | </mapper> |