| | |
| | | <association property="orderDetail" javaType="com.example.erp.entity.sd.OrderDetail"> |
| | | |
| | | <result column="building_number" property="buildingNumber"/> |
| | | <result column="product_id" property="productId"/> |
| | | <result column="product_name" property="productName"/> |
| | | <result column="width" property="width"/> |
| | | <result column="height" property="height"/> |
| | |
| | | a.order_id, |
| | | a.order_number, |
| | | b.building_number, |
| | | b.product_id, |
| | | b.product_name, |
| | | a.glass_address, |
| | | a.technology_number, |
| | |
| | | </foreach> |
| | | |
| | | </update> |
| | | |
| | | <select id="getDifferentSizeNumber"> |
| | | select if(count(id)>1,1,0) from (select |
| | | id |
| | | from order_glass_detail as a |
| | | where a.order_id = #{orderId} |
| | | and a.order_number = #{orderNumber} |
| | | group by child_width,child_height) as c |
| | | </select> |
| | | |
| | | </mapper> |