ORDER_ID, ORDER_PLAN_ID, ORDER_NUMBER, CAPACITY_ID, ORDER_ISSUE_TIME, ORDER_RECEIVE_STATUS,
ORDER_RECEIVE_REFUSE_TIME, ORDER_COMMUNICATION_DURATION, ORDER_STATUS, INSERT_USERNAME,
INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK, DELETED, ORDER_TYPE,
ORDER_LINE_SEQUENCE, LINE_ID, ORDER_ENTRY_TIME, UNLOAD_POINT_ID, DRIVER_CONFIRMATION,
PRICE_ID, CARRIER_ID
t.ORDER_ID, t.ORDER_PLAN_ID, t.ORDER_NUMBER, t.CAPACITY_ID, t.ORDER_ISSUE_TIME, t.ORDER_RECEIVE_STATUS,
t.ORDER_RECEIVE_REFUSE_TIME, t.ORDER_COMMUNICATION_DURATION, t.ORDER_STATUS, t.INSERT_USERNAME,
t.INSERT_TIME, t.UPDATE_USERNAME, t.UPDATE_TIME, t.INSERT_UPDATE_REMARK, t.DELETED,
t.ORDER_TYPE, t.ORDER_LINE_SEQUENCE, t.LINE_ID, t.ORDER_ENTRY_TIME, t.UNLOAD_POINT_ID,
t.DRIVER_CONFIRMATION, t.PRICE_ID, t.CARRIER_ID
SELECT FROM OMSTRUCK_ORDER
SELECT FROM OMSTRUCK_ORDER t
and ORDER_ID = #{orderId}
and ORDER_PLAN_ID = #{orderPlanId}
and ORDER_NUMBER = #{orderNumber}
and CAPACITY_ID = #{capacityId}
and TO_CHAR(ORDER_ISSUE_TIME,'yyyy-MM-dd') = #{orderIssueTime}
and ORDER_RECEIVE_STATUS = #{orderReceiveStatus}
and TO_CHAR(ORDER_RECEIVE_REFUSE_TIME,'yyyy-MM-dd') = #{orderReceiveRefuseTime}
and ORDER_COMMUNICATION_DURATION = #{orderCommunicationDuration}
and ORDER_STATUS = #{orderStatus}
and INSERT_USERNAME = #{insertUsername}
and TO_CHAR(INSERT_TIME,'yyyy-MM-dd') = #{insertTime}
and UPDATE_USERNAME = #{updateUsername}
and TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = #{updateTime}
and INSERT_UPDATE_REMARK = #{insertUpdateRemark}
and DELETED = #{deleted}
and ORDER_TYPE = #{orderType}
and ORDER_LINE_SEQUENCE = #{orderLineSequence}
and LINE_ID = #{lineId}
and TO_CHAR(ORDER_ENTRY_TIME,'yyyy-MM-dd') = #{orderEntryTime}
and UNLOAD_POINT_ID = #{unloadPointId}
and DRIVER_CONFIRMATION = #{driverConfirmation}
and PRICE_ID = #{priceId}
and CARRIER_ID = #{carrierId}
and ORDER_ID = #{orderId}
and ORDER_PLAN_ID = #{orderPlanId}
and ORDER_NUMBER LIKE '%${orderNumber}%'
and CAPACITY_ID = #{capacityId}
and TO_CHAR(ORDER_ISSUE_TIME,'yyyy-MM-dd') = #{orderIssueTime}
and ORDER_RECEIVE_STATUS = #{orderReceiveStatus}
and TO_CHAR(ORDER_RECEIVE_REFUSE_TIME,'yyyy-MM-dd') = #{orderReceiveRefuseTime}
and ORDER_COMMUNICATION_DURATION = #{orderCommunicationDuration}
and ORDER_STATUS = #{orderStatus}
and INSERT_USERNAME LIKE '%${insertUsername}%'
and TO_CHAR(INSERT_TIME,'yyyy-MM-dd') = #{insertTime}
and UPDATE_USERNAME LIKE '%${updateUsername}%'
and TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = #{updateTime}
and INSERT_UPDATE_REMARK LIKE '%${insertUpdateRemark}%'
and DELETED = #{deleted}
and ORDER_TYPE = #{orderType}
and ORDER_LINE_SEQUENCE = #{orderLineSequence}
and LINE_ID = #{lineId}
and TO_CHAR(ORDER_ENTRY_TIME,'yyyy-MM-dd') = #{orderEntryTime}
and UNLOAD_POINT_ID = #{unloadPointId}
and DRIVER_CONFIRMATION = #{driverConfirmation}
and PRICE_ID = #{priceId}
and CARRIER_ID = #{carrierId}
delete from OMSTRUCK_ORDER
where ORDER_ID = #{orderId,jdbcType=DECIMAL}
delete from OMSTRUCK_ORDER
where 1!=1
or ORDER_PLAN_ID = #{orderPlanId}
or ORDER_NUMBER = #{orderNumber}
or CAPACITY_ID = #{capacityId}
or TO_CHAR(ORDER_ISSUE_TIME,'yyyy-MM-dd') = '#{orderIssueTime}'
or ORDER_RECEIVE_STATUS = #{orderReceiveStatus}
or TO_CHAR(ORDER_RECEIVE_REFUSE_TIME,'yyyy-MM-dd') = '#{orderReceiveRefuseTime}'
or ORDER_COMMUNICATION_DURATION = #{orderCommunicationDuration}
or ORDER_STATUS = #{orderStatus}
or INSERT_USERNAME = #{insertUsername}
or TO_CHAR(INSERT_TIME,'yyyy-MM-dd') = '#{insertTime}'
or UPDATE_USERNAME = #{updateUsername}
or TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = '#{updateTime}'
or INSERT_UPDATE_REMARK = #{insertUpdateRemark}
or DELETED = #{deleted}
or ORDER_TYPE = #{orderType}
or ORDER_LINE_SEQUENCE = #{orderLineSequence}
or LINE_ID = #{lineId}
or TO_CHAR(ORDER_ENTRY_TIME,'yyyy-MM-dd') = '#{orderEntryTime}'
or UNLOAD_POINT_ID = #{unloadPointId}
or DRIVER_CONFIRMATION = #{driverConfirmation}
or PRICE_ID = #{priceId}
or CARRIER_ID = #{carrierId}
insert into OMSTRUCK_ORDER (ORDER_ID, ORDER_PLAN_ID, ORDER_NUMBER,
CAPACITY_ID, ORDER_ISSUE_TIME, ORDER_RECEIVE_STATUS,
ORDER_RECEIVE_REFUSE_TIME, ORDER_COMMUNICATION_DURATION,
ORDER_STATUS, INSERT_USERNAME, INSERT_TIME,
UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK,
DELETED, ORDER_TYPE, ORDER_LINE_SEQUENCE,
LINE_ID, ORDER_ENTRY_TIME, UNLOAD_POINT_ID,
DRIVER_CONFIRMATION, PRICE_ID, CARRIER_ID
)
values (#{orderId,jdbcType=DECIMAL}, #{orderPlanId,jdbcType=DECIMAL}, #{orderNumber,jdbcType=VARCHAR},
#{capacityId,jdbcType=DECIMAL}, #{orderIssueTime,jdbcType=TIMESTAMP}, #{orderReceiveStatus,jdbcType=DECIMAL},
#{orderReceiveRefuseTime,jdbcType=TIMESTAMP}, #{orderCommunicationDuration,jdbcType=DECIMAL},
#{orderStatus,jdbcType=DECIMAL}, #{insertUsername,jdbcType=VARCHAR}, #{insertTime,jdbcType=TIMESTAMP},
#{updateUsername,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{insertUpdateRemark,jdbcType=VARCHAR},
#{deleted,jdbcType=DECIMAL}, #{orderType,jdbcType=DECIMAL}, #{orderLineSequence,jdbcType=DECIMAL},
#{lineId,jdbcType=DECIMAL}, #{orderEntryTime,jdbcType=TIMESTAMP}, #{unloadPointId,jdbcType=DECIMAL},
#{driverConfirmation,jdbcType=DECIMAL}, #{priceId,jdbcType=DECIMAL}, #{carrierId,jdbcType=DECIMAL}
)
insert into OMSTRUCK_ORDER
ORDER_ID,
ORDER_PLAN_ID,
ORDER_NUMBER,
CAPACITY_ID,
ORDER_ISSUE_TIME,
ORDER_RECEIVE_STATUS,
ORDER_RECEIVE_REFUSE_TIME,
ORDER_COMMUNICATION_DURATION,
ORDER_STATUS,
INSERT_USERNAME,
INSERT_TIME,
UPDATE_USERNAME,
UPDATE_TIME,
INSERT_UPDATE_REMARK,
DELETED,
ORDER_TYPE,
ORDER_LINE_SEQUENCE,
LINE_ID,
ORDER_ENTRY_TIME,
UNLOAD_POINT_ID,
DRIVER_CONFIRMATION,
PRICE_ID,
CARRIER_ID,
#{orderId,jdbcType=DECIMAL},
#{orderPlanId,jdbcType=DECIMAL},
#{orderNumber,jdbcType=VARCHAR},
#{capacityId,jdbcType=DECIMAL},
#{orderIssueTime,jdbcType=TIMESTAMP},
#{orderReceiveStatus,jdbcType=DECIMAL},
#{orderReceiveRefuseTime,jdbcType=TIMESTAMP},
#{orderCommunicationDuration,jdbcType=DECIMAL},
#{orderStatus,jdbcType=DECIMAL},
#{insertUsername,jdbcType=VARCHAR},
#{insertTime,jdbcType=TIMESTAMP},
#{updateUsername,jdbcType=VARCHAR},
#{updateTime,jdbcType=TIMESTAMP},
#{insertUpdateRemark,jdbcType=VARCHAR},
#{deleted,jdbcType=DECIMAL},
#{orderType,jdbcType=DECIMAL},
#{orderLineSequence,jdbcType=DECIMAL},
#{lineId,jdbcType=DECIMAL},
#{orderEntryTime,jdbcType=TIMESTAMP},
#{unloadPointId,jdbcType=DECIMAL},
#{driverConfirmation,jdbcType=DECIMAL},
#{priceId,jdbcType=DECIMAL},
#{carrierId,jdbcType=DECIMAL},
update OMSTRUCK_ORDER
set ORDER_PLAN_ID = #{orderPlanId,jdbcType=DECIMAL},
ORDER_NUMBER = #{orderNumber,jdbcType=VARCHAR},
CAPACITY_ID = #{capacityId,jdbcType=DECIMAL},
ORDER_ISSUE_TIME = #{orderIssueTime,jdbcType=TIMESTAMP},
ORDER_RECEIVE_STATUS = #{orderReceiveStatus,jdbcType=DECIMAL},
ORDER_RECEIVE_REFUSE_TIME = #{orderReceiveRefuseTime,jdbcType=TIMESTAMP},
ORDER_COMMUNICATION_DURATION = #{orderCommunicationDuration,jdbcType=DECIMAL},
ORDER_STATUS = #{orderStatus,jdbcType=DECIMAL},
INSERT_USERNAME = #{insertUsername,jdbcType=VARCHAR},
INSERT_TIME = #{insertTime,jdbcType=TIMESTAMP},
UPDATE_USERNAME = #{updateUsername,jdbcType=VARCHAR},
UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
INSERT_UPDATE_REMARK = #{insertUpdateRemark,jdbcType=VARCHAR},
DELETED = #{deleted,jdbcType=DECIMAL},
ORDER_TYPE = #{orderType,jdbcType=DECIMAL},
ORDER_LINE_SEQUENCE = #{orderLineSequence,jdbcType=DECIMAL},
LINE_ID = #{lineId,jdbcType=DECIMAL},
ORDER_ENTRY_TIME = #{orderEntryTime,jdbcType=TIMESTAMP},
UNLOAD_POINT_ID = #{unloadPointId,jdbcType=DECIMAL},
DRIVER_CONFIRMATION = #{driverConfirmation,jdbcType=DECIMAL},
PRICE_ID = #{priceId,jdbcType=DECIMAL},
CARRIER_ID = #{carrierId,jdbcType=DECIMAL}
where ORDER_ID = #{orderId,jdbcType=DECIMAL}
update OMSTRUCK_ORDER
ORDER_PLAN_ID = #{orderPlanId,jdbcType=DECIMAL},
ORDER_NUMBER = #{orderNumber,jdbcType=VARCHAR},
CAPACITY_ID = #{capacityId,jdbcType=DECIMAL},
ORDER_ISSUE_TIME = #{orderIssueTime,jdbcType=TIMESTAMP},
ORDER_RECEIVE_STATUS = #{orderReceiveStatus,jdbcType=DECIMAL},
ORDER_RECEIVE_REFUSE_TIME = #{orderReceiveRefuseTime,jdbcType=TIMESTAMP},
ORDER_COMMUNICATION_DURATION = #{orderCommunicationDuration,jdbcType=DECIMAL},
ORDER_STATUS = #{orderStatus,jdbcType=DECIMAL},
INSERT_USERNAME = #{insertUsername,jdbcType=VARCHAR},
INSERT_TIME = #{insertTime,jdbcType=TIMESTAMP},
UPDATE_USERNAME = #{updateUsername,jdbcType=VARCHAR},
UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
INSERT_UPDATE_REMARK = #{insertUpdateRemark,jdbcType=VARCHAR},
DELETED = #{deleted,jdbcType=DECIMAL},
ORDER_TYPE = #{orderType,jdbcType=DECIMAL},
ORDER_LINE_SEQUENCE = #{orderLineSequence,jdbcType=DECIMAL},
LINE_ID = #{lineId,jdbcType=DECIMAL},
ORDER_ENTRY_TIME = #{orderEntryTime,jdbcType=TIMESTAMP},
UNLOAD_POINT_ID = #{unloadPointId,jdbcType=DECIMAL},
DRIVER_CONFIRMATION = #{driverConfirmation,jdbcType=DECIMAL},
PRICE_ID = #{priceId,jdbcType=DECIMAL},
CARRIER_ID = #{carrierId,jdbcType=DECIMAL},
where ORDER_ID = #{orderId,jdbcType=DECIMAL}
insert into OMSTRUCK_ORDER
(ORDER_ID,
ORDER_PLAN_ID, ORDER_NUMBER, CAPACITY_ID,
ORDER_ISSUE_TIME, ORDER_RECEIVE_STATUS,
ORDER_RECEIVE_REFUSE_TIME, ORDER_COMMUNICATION_DURATION,
ORDER_STATUS, INSERT_USERNAME,
INSERT_TIME, UPDATE_USERNAME,
UPDATE_TIME, INSERT_UPDATE_REMARK,
DELETED, ORDER_TYPE, ORDER_LINE_SEQUENCE,
LINE_ID, ORDER_ENTRY_TIME, UNLOAD_POINT_ID,
DRIVER_CONFIRMATION, PRICE_ID,
CARRIER_ID)
(
select
#{item.orderId,jdbcType=DECIMAL},
#{item.orderPlanId,jdbcType=DECIMAL}, #{item.orderNumber,jdbcType=VARCHAR}, #{item.capacityId,jdbcType=DECIMAL},
#{item.orderIssueTime,jdbcType=TIMESTAMP}, #{item.orderReceiveStatus,jdbcType=DECIMAL},
#{item.orderReceiveRefuseTime,jdbcType=TIMESTAMP}, #{item.orderCommunicationDuration,jdbcType=DECIMAL},
#{item.orderStatus,jdbcType=DECIMAL}, #{item.insertUsername,jdbcType=VARCHAR},
#{item.insertTime,jdbcType=TIMESTAMP}, #{item.updateUsername,jdbcType=VARCHAR},
#{item.updateTime,jdbcType=TIMESTAMP}, #{item.insertUpdateRemark,jdbcType=VARCHAR},
#{item.deleted,jdbcType=DECIMAL}, #{item.orderType,jdbcType=DECIMAL}, #{item.orderLineSequence,jdbcType=DECIMAL},
#{item.lineId,jdbcType=DECIMAL}, #{item.orderEntryTime,jdbcType=TIMESTAMP}, #{item.unloadPointId,jdbcType=DECIMAL},
#{item.driverConfirmation,jdbcType=DECIMAL}, #{item.priceId,jdbcType=DECIMAL},
#{item.carrierId,jdbcType=DECIMAL} from dual
)
update OMSTRUCK_ORDER
set
ORDER_ID=
when #{item.orderId,jdbcType=DECIMAL} then #{item.orderId,jdbcType=DECIMAL}
,ORDER_PLAN_ID=
when #{item.orderId,jdbcType=DECIMAL} then #{item.orderPlanId,jdbcType=DECIMAL}
,ORDER_NUMBER=
when #{item.orderId,jdbcType=DECIMAL} then #{item.orderNumber,jdbcType=VARCHAR}
,CAPACITY_ID=
when #{item.orderId,jdbcType=DECIMAL} then #{item.capacityId,jdbcType=DECIMAL}
,ORDER_ISSUE_TIME=
when #{item.orderId,jdbcType=DECIMAL} then #{item.orderIssueTime,jdbcType=TIMESTAMP}
,ORDER_RECEIVE_STATUS=
when #{item.orderId,jdbcType=DECIMAL} then #{item.orderReceiveStatus,jdbcType=DECIMAL}
,ORDER_RECEIVE_REFUSE_TIME=
when #{item.orderId,jdbcType=DECIMAL} then #{item.orderReceiveRefuseTime,jdbcType=TIMESTAMP}
,ORDER_COMMUNICATION_DURATION=
when #{item.orderId,jdbcType=DECIMAL} then #{item.orderCommunicationDuration,jdbcType=DECIMAL}
,ORDER_STATUS=
when #{item.orderId,jdbcType=DECIMAL} then #{item.orderStatus,jdbcType=DECIMAL}
,INSERT_USERNAME=
when #{item.orderId,jdbcType=DECIMAL} then #{item.insertUsername,jdbcType=VARCHAR}
,INSERT_TIME=
when #{item.orderId,jdbcType=DECIMAL} then #{item.insertTime,jdbcType=TIMESTAMP}
,UPDATE_USERNAME=
when #{item.orderId,jdbcType=DECIMAL} then #{item.updateUsername,jdbcType=VARCHAR}
,UPDATE_TIME=
when #{item.orderId,jdbcType=DECIMAL} then #{item.updateTime,jdbcType=TIMESTAMP}
,INSERT_UPDATE_REMARK=
when #{item.orderId,jdbcType=DECIMAL} then #{item.insertUpdateRemark,jdbcType=VARCHAR}
,DELETED=
when #{item.orderId,jdbcType=DECIMAL} then #{item.deleted,jdbcType=DECIMAL}
,ORDER_TYPE=
when #{item.orderId,jdbcType=DECIMAL} then #{item.orderType,jdbcType=DECIMAL}
,ORDER_LINE_SEQUENCE=
when #{item.orderId,jdbcType=DECIMAL} then #{item.orderLineSequence,jdbcType=DECIMAL}
,LINE_ID=
when #{item.orderId,jdbcType=DECIMAL} then #{item.lineId,jdbcType=DECIMAL}
,ORDER_ENTRY_TIME=
when #{item.orderId,jdbcType=DECIMAL} then #{item.orderEntryTime,jdbcType=TIMESTAMP}
,UNLOAD_POINT_ID=
when #{item.orderId,jdbcType=DECIMAL} then #{item.unloadPointId,jdbcType=DECIMAL}
,DRIVER_CONFIRMATION=
when #{item.orderId,jdbcType=DECIMAL} then #{item.driverConfirmation,jdbcType=DECIMAL}
,PRICE_ID=
when #{item.orderId,jdbcType=DECIMAL} then #{item.priceId,jdbcType=DECIMAL}
,CARRIER_ID=
when #{item.orderId,jdbcType=DECIMAL} then #{item.carrierId,jdbcType=DECIMAL}
where ORDER_ID in
#{item.orderId,jdbcType=DECIMAL}
delete from OMSTRUCK_ORDER
where ORDER_ID in
#{id}