| | |
| | | <if test="flowCard.order.project != null and flowCard.order.project!= ''"> |
| | | and b.project regexp #{flowCard.order.project} |
| | | </if> |
| | | |
| | | <if test="flowCard.layoutStatus != null and flowCard.layoutStatus != '' and flowCard.layoutStatus == '不可排版'"> |
| | | and a.layout_status regexp 0 |
| | | </if> |
| | | <if test="flowCard.layoutStatus != null and flowCard.layoutStatus != '' and flowCard.layoutStatus == '可排版'"> |
| | | and a.layout_status regexp 1 |
| | | </if> |
| | | <if test="flowCard.layoutStatus != null and flowCard.layoutStatus != '' and flowCard.layoutStatus == '已排版'"> |
| | | and a.layout_status regexp 2 |
| | | </if> |
| | | |
| | | group by a.process_Id |
| | | ORDER BY a.id desc |
| | |
| | | <if test="flowCard.orderId != null and flowCard.orderId != ''"> |
| | | and a.order_id regexp #{flowCard.orderId} |
| | | </if> |
| | | <if test="flowCard.productionId != null and flowCard.productionId != ''"> |
| | | and a.process_Id regexp #{flowCard.productionId} |
| | | <if test="flowCard.processId != null and flowCard.processId != ''"> |
| | | and a.process_Id regexp #{flowCard.processId} |
| | | </if> |
| | | <if test="flowCard.orderDetail.productId != null and flowCard.orderDetail.productId != ''"> |
| | | and c.product_id regexp #{flowCard.orderDetail.productId} |
| | |
| | | |
| | | <if test="flowCard.order.project != null and flowCard.order.project!= ''"> |
| | | and b.project regexp #{flowCard.order.project} |
| | | </if> |
| | | <if test="flowCard.layoutStatus != null and flowCard.layoutStatus != '' and flowCard.layoutStatus == '不可排版'"> |
| | | and a.layout_status regexp 0 |
| | | </if> |
| | | <if test="flowCard.layoutStatus != null and flowCard.layoutStatus != '' and flowCard.layoutStatus == '可排版'"> |
| | | and a.layout_status regexp 1 |
| | | </if> |
| | | <if test="flowCard.layoutStatus != null and flowCard.layoutStatus != '' and flowCard.layoutStatus == '已排版'"> |
| | | and a.layout_status regexp 2 |
| | | </if> |
| | | |
| | | ORDER BY a.id desc |
| | |
| | | o.processing_note, |
| | | fc.process_id, |
| | | SUM( od.quantity) as quantity, |
| | | SUM(od.gross_area) as gross_area, |
| | | #{technologyNumber} as technologyNumber |
| | | SUM(ogd.total_area) as gross_area, |
| | | SUM(od.weight) as weight, |
| | | #{technologyNumber} as technologyNumber, |
| | | concat(fc.process_id,'/',#{technologyNumber}) as processIdNumber |
| | | from flow_card as fc |
| | | left join sd.order_glass_detail as ogd |
| | | on fc.order_id = ogd.order_id and fc.order_number = ogd.order_number and |
| | |
| | | select fc.order_number, |
| | | concat(ogd.child_width, "*", ogd.child_height) as child_width, |
| | | od.quantity, |
| | | ogd.total_area, |
| | | round(ogd.total_area,2) as total_area, |
| | | od.perimeter, |
| | | od.bend_radius, |
| | | od.remarks |
| | |
| | | and fc.technology_number = #{technologyNumber} |
| | | group by fc.process_id, fc.order_number |
| | | order by fc.order_number |
| | | limit 10 |
| | | </select> |
| | | |
| | | <select id="getProcessList"> |
| | |
| | | and technology_number = #{technologyNumber} |
| | | group by process |
| | | </select> |
| | | |
| | | <update id="updateInventory"> |
| | | update flow_card set inventory_quantity=#{completedQuantity} |
| | | where process_id = #{processId} and order_number = #{orderNumber} and technology_number = #{technologyNumber} |
| | | </update> |
| | | |
| | | <!-- 复选框修改排版状态--> |
| | | <update id="updateComposing"> |
| | | update flow_card as fc |
| | | set fc.layout_status=1 |
| | | where fc.process_id = #{processId} |
| | | </update> |
| | | </mapper> |