a.id AS "id",
a.create_by AS "createBy.id",
a.create_date AS "createDate",
a.update_by AS "updateBy.id",
a.update_date AS "updateDate",
a.remarks AS "remarks",
a.del_flag AS "delFlag",
a.delivery_date AS "deliveryDate",
a.receiving_address AS "receivingAddress",
a.order_type AS "orderType",
a.total_price AS "totalPrice",
a.state AS "state",
a.customer_name AS "customerName",
a.contract_number AS "contractNumber",
a.zvbeln as "zvbeln",
a.kunnr as "kunnr",
a.kna1 as "kna1",
a.auart as "auart",
a.bezei as "bezei",
a.vkorg as "vkorg",
a.vkorgt as "vkorgt",
a.vtweg as "vtweg",
a.vtwegt as "vtwegt",
a.spart as "spart",
a.spartt as "spartt",
a.vdatu as "vdatu",
a.prsdt as "prsdt",
a.bstkd as "bstkd",
a.bstdk as "bstdk",
a.kunnr1 as "kunnr1",
a.kunnrgwds as "kunnrgwds",
a.zsdshdz as "zsdshdz",
a.zsdjdbz as "zsdjdbz",
a.zsdycjz as "zsdycjz",
a.kh_order_0 as "khOrder",
a.xm_name_0 as "xmName",
a.xm_id_0 as "xmId",
a.zsdsfdz as "zsdsfdz",
a.pzh as "pzh",
a.zsdywlxmb as "zsdywlxmb",
tuser2.name as "tjrname",
totalPrice2 as "totalPrice2",
totalPrice3 as "totalPrice3",
totalPrice4 as "totalPrice4",
a.ywydd as "ywydd",
a.ywytjsj as "ywytjsj",
a.orderid as "orderid",
a.randomOrderid as "randomOrderid",
a.sfdz as "sfdz",
s.sapname as "sapname",
sb.sapname as "sapnamegwds",
shr as "shr",
shrscb as "shrscb",
shrgdz as "shrgdz",
shrdcz as "shrdcz",
shrbjyx as "shrbjyx",
a.isprint as "isprint",
a.isypkdd as "isypkdd",
a.erpId as "erpId",
a.returnreason as "returnreason",
a.hasHt as "hasHt",
a.istp as "istp",
a.isMobileCreate as "isMobileCreate",
a.isCreateByHt as "isCreateByHt",
s.pianqu as "pianqu" ,
a.xsdq AS "xsdq",
a.province AS "province",
a.city AS "city",
a.village AS "village",
a.lxr AS "lxr",
a.lxrdh AS "lxrdh",
a.sfdcj AS "sfdcj",
a.sfxsywy AS "sfxsywy"
LEFT JOIN sapuser s on s.sapid=a.kunnr1
LEFT JOIN sapuser sb on sb.sapid=a.kunnrgwds
LEFT JOIN sys_user tuser2 ON tuser2.user_name =a.create_by
LEFT JOIN sapusertp s on s.sapid=a.kunnr1
LEFT JOIN sapusertp sb on sb.sapid=a.kunnrgwds
LEFT JOIN sys_user tuser2 ON tuser2.id =a.create_by