SELECT
*
FROM dm.v_ag_sal_eorder
WHERE 1=1
${if(len(p_order) == 0,"","and order_code in ('" + p_order + "')")}

-- order_status -- 订单状态
-- ,order_code -- 订单号
-- group by  order_status

