|
@@ -666,10 +666,10 @@
|
|
|
OO.INSERT_USERNAME "insertUsername",
|
|
|
OO.INSERT_TIME "insertTime",
|
|
|
OO.ORDER_NUMBER "orderNumber",
|
|
|
- RW.WAREHOUSE_NAME "warehouseName", --卸货点
|
|
|
- OO.ORDER_ENTRY_TIME "orderEntryTime", --进厂时间
|
|
|
- RS.SUPPLIER_NAME "supplierName", --发货单位
|
|
|
- RCSE.CONSIGNEE_COMPANY_NAME "consigneeCompanyName" --收货单位
|
|
|
+ RW.WAREHOUSE_NAME "warehouseName",
|
|
|
+ OO.ORDER_ENTRY_TIME "orderEntryTime",
|
|
|
+ RS.SUPPLIER_NAME "supplierName",
|
|
|
+ RCSE.CONSIGNEE_COMPANY_NAME "consigneeCompanyName"
|
|
|
|
|
|
from OMSTRUCK_ORDER OO
|
|
|
left join AMS_PURCHASE_ORDER APO
|
|
@@ -1430,6 +1430,28 @@
|
|
|
WHERE oo.ORDER_ISSUE_TIME IS NOT NULL
|
|
|
AND oo.ORDER_RECEIVE_STATUS = 1
|
|
|
AND oo.ORDER_TYPE = #{orderType}
|
|
|
+ <where>
|
|
|
+ <if test="saleNumber != null">
|
|
|
+ <foreach collection="saleNumber" item="item" open="(" separator="or" close=")">
|
|
|
+ "saleNumber" like '%${item}%'
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
+ <if test="orderNumber != null">
|
|
|
+ <foreach collection="orderNumber" item="item" open="(" separator="or" close=")">
|
|
|
+ "orderNumber" like '%${item}%'
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
+ <if test="insertUsername != null">
|
|
|
+ <foreach collection="insertUsername" item="item" open="(" separator="or" close=")">
|
|
|
+ "insertUsername" like '%${item}%'
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
+ <if test="capacityNumber != null">
|
|
|
+ <foreach collection="capacityNumber" item="item" open="(" separator="or" close=")">
|
|
|
+ "capacityNumber" like '%${item}%'
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
</select>
|
|
|
|
|
|
<!--查询司机排班信息-->
|