SELECT v.f_mobile as '手机号',
o.f_mrvipnumber as '会员号',
concat('\t',o.f_bill) as '订单号',
o.f_originalbill as '原单号',
o.f_createdat as '时间',
o.f_originalprice as '应付',
o.f_price as '实付'
FROM t_order o
left join t_member_vip v
on o.f_mrvipnumber = v.f_number
WHERE
<mobile> v.f_mobile in ?{mobile} </mobile>
<member> and o.f_mrvipnumber in ?{member} </member>
<time1>and o.f_createdat >= ?{time1} </time1>
<time2>and o.f_createdat <= ?{time2} </time2>