1) ) and ( l.order.updateInfo.operatorName = #{SESSION_USERS_NAME} or #{SESSION_USERS_NAME} = 'admin' or EXISTS ( select 1 from Group group,User user where group in elements(user.groups) and user.name=#{SESSION_USERS_NAME} and group.name in('财务','管理') ) ) /~l.ecNo: and upper(l.ecNo) like upper({l.ecNo})~/ /~orders.consignor.id: and l.consignor.id = {orders.consignor.id}~/ /~l.fromContact.address: and l.fromContact.address like {l.fromContact.address}~/ /~l.toContact.address: and l.toContact.address like {l.toContact.address}~/ /~l.status: and l.status like {l.status}~/ /~orders.superviseType: and l.order.superviseType = {orders.superviseType}~/ /~l.weight1: AND (l.weight >= {l.weight1} OR l.volume >= {l.weight1})~/ /~l.weight2: AND (l.weight <= {l.weight2} OR l.volume <= {l.weight2})~/ /~l.order.orderDate1: AND (l.order.orderDate) >= {l.order.orderDate1} ~/ /~l.order.orderDate2: AND (l.order.orderDate) <= {l.order.orderDate2}~/ /~l.order.planFromTime1: AND (l.order.planFromDate) >= {l.order.planFromTime1} ~/ /~l.order.planFromTime2: AND (l.order.planFromDate) <= {l.order.planFromTime2}~/ /~o.updateInfo.operatorName: AND o.updateInfo.operatorName like {o.updateInfo.operatorName}~/ order by l.id desc ]]>