| | |
| | | left join sd.order_glass_detail as ogd |
| | | on od.order_id = ogd.order_id and od.order_number = ogd.order_number |
| | | where od.order_id = #{orderId} |
| | | <if test="orderDetail.orderId != null and orderDetail.orderId != ''"> |
| | | and od.order_id regexp #{orderDetail.orderId} |
| | | </if> |
| | | <if test="flowCard.orderGlassDetail.productionId != null and flowCard.orderGlassDetail.productionId != ''"> |
| | | and ogd.production_id regexp #{flowCard.orderGlassDetail.productionId} |
| | | </if> |
| | | <if test="orderDetail.productId != null and orderDetail.productId != ''"> |
| | | and od.product_id regexp #{orderDetail.productId} |
| | | </if> |
| | | <if test="orderDetail.productName != null and orderDetail.productName != ''"> |
| | | and od.product_name regexp #{orderDetail.productName} |
| | | </if> |
| | | <!-- <if test="orderDetail.orderId != null and orderDetail.orderId != ''">--> |
| | | <!-- and od.order_id regexp #{orderDetail.orderId}--> |
| | | <!-- </if>--> |
| | | <!-- <if test="flowCard.orderGlassDetail.productionId != null and flowCard.orderGlassDetail.productionId != ''">--> |
| | | <!-- and ogd.production_id regexp #{flowCard.orderGlassDetail.productionId}--> |
| | | <!-- </if>--> |
| | | <!-- <if test="orderDetail.productId != null and orderDetail.productId != ''">--> |
| | | <!-- and od.product_id regexp #{orderDetail.productId}--> |
| | | <!-- </if>--> |
| | | <!-- <if test="orderDetail.productName != null and orderDetail.productName != ''">--> |
| | | <!-- and od.product_name regexp #{orderDetail.productName}--> |
| | | <!-- </if>--> |
| | | group by od.order_id, ogd.production_id |
| | | </select> |
| | | |