DETAILS_ID, PURCHASE_ORDER_ID, WEIGHT_TASK_RESULT_ID, DETAILS_NO, DETAILS_TIME, PRICE_ID,
DETAILS_AMOUNT, INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK,
WETHER_TO_STATEMENT, EAS_AMOUNT, ORDER_ID
t.DETAILS_ID, t.PURCHASE_ORDER_ID, t.WEIGHT_TASK_RESULT_ID, t.DETAILS_NO, t.DETAILS_TIME,
t.PRICE_ID, t.DETAILS_AMOUNT, t.INSERT_USERNAME, t.INSERT_TIME, t.UPDATE_USERNAME,
t.UPDATE_TIME, t.INSERT_UPDATE_REMARK, t.WETHER_TO_STATEMENT, t.EAS_AMOUNT, t.ORDER_ID
SELECT FROM BMSTRUCK_DETAILS_ORDER
SELECT FROM BMSTRUCK_DETAILS_ORDER t
and DETAILS_ID = #{detailsId}
and PURCHASE_ORDER_ID = #{purchaseOrderId}
and WEIGHT_TASK_RESULT_ID = #{weightTaskResultId}
and DETAILS_NO = #{detailsNo}
and TO_CHAR(DETAILS_TIME,'yyyy-MM-dd') = #{detailsTime}
and PRICE_ID = #{priceId}
and DETAILS_AMOUNT = #{detailsAmount}
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 WETHER_TO_STATEMENT = #{wetherToStatement}
and EAS_AMOUNT = #{easAmount}
and ORDER_ID = #{orderId}
and DETAILS_ID = #{detailsId}
and PURCHASE_ORDER_ID = #{purchaseOrderId}
and WEIGHT_TASK_RESULT_ID = #{weightTaskResultId}
and DETAILS_NO LIKE '%${detailsNo}%'
and TO_CHAR(DETAILS_TIME,'yyyy-MM-dd') = #{detailsTime}
and PRICE_ID = #{priceId}
and DETAILS_AMOUNT = #{detailsAmount}
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 WETHER_TO_STATEMENT = #{wetherToStatement}
and EAS_AMOUNT = #{easAmount}
and ORDER_ID = #{orderId}
delete from BMSTRUCK_DETAILS_ORDER
where DETAILS_ID = #{detailsId,jdbcType=DECIMAL}
delete from BMSTRUCK_DETAILS_ORDER
where 1!=1
or PURCHASE_ORDER_ID = #{purchaseOrderId}
or WEIGHT_TASK_RESULT_ID = #{weightTaskResultId}
or DETAILS_NO = #{detailsNo}
or TO_CHAR(DETAILS_TIME,'yyyy-MM-dd') = '#{detailsTime}'
or PRICE_ID = #{priceId}
or DETAILS_AMOUNT = #{detailsAmount}
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 WETHER_TO_STATEMENT = #{wetherToStatement}
or EAS_AMOUNT = #{easAmount}
or ORDER_ID = #{orderId}
insert into BMSTRUCK_DETAILS_ORDER (DETAILS_ID, PURCHASE_ORDER_ID, WEIGHT_TASK_RESULT_ID,
DETAILS_NO, DETAILS_TIME, PRICE_ID,
DETAILS_AMOUNT, INSERT_USERNAME, INSERT_TIME,
UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK,
WETHER_TO_STATEMENT, EAS_AMOUNT, ORDER_ID
)
values (#{detailsId,jdbcType=DECIMAL}, #{purchaseOrderId,jdbcType=DECIMAL}, #{weightTaskResultId,jdbcType=DECIMAL},
#{detailsNo,jdbcType=VARCHAR}, #{detailsTime,jdbcType=TIMESTAMP}, #{priceId,jdbcType=DECIMAL},
#{detailsAmount,jdbcType=DECIMAL}, #{insertUsername,jdbcType=VARCHAR}, #{insertTime,jdbcType=TIMESTAMP},
#{updateUsername,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{insertUpdateRemark,jdbcType=VARCHAR},
#{wetherToStatement,jdbcType=DECIMAL}, #{easAmount,jdbcType=DECIMAL}, #{orderId,jdbcType=DECIMAL}
)
insert into BMSTRUCK_DETAILS_ORDER
DETAILS_ID,
PURCHASE_ORDER_ID,
WEIGHT_TASK_RESULT_ID,
DETAILS_NO,
DETAILS_TIME,
PRICE_ID,
DETAILS_AMOUNT,
INSERT_USERNAME,
INSERT_TIME,
UPDATE_USERNAME,
UPDATE_TIME,
INSERT_UPDATE_REMARK,
WETHER_TO_STATEMENT,
EAS_AMOUNT,
ORDER_ID,
#{detailsId,jdbcType=DECIMAL},
#{purchaseOrderId,jdbcType=DECIMAL},
#{weightTaskResultId,jdbcType=DECIMAL},
#{detailsNo,jdbcType=VARCHAR},
#{detailsTime,jdbcType=TIMESTAMP},
#{priceId,jdbcType=DECIMAL},
#{detailsAmount,jdbcType=DECIMAL},
#{insertUsername,jdbcType=VARCHAR},
#{insertTime,jdbcType=TIMESTAMP},
#{updateUsername,jdbcType=VARCHAR},
#{updateTime,jdbcType=TIMESTAMP},
#{insertUpdateRemark,jdbcType=VARCHAR},
#{wetherToStatement,jdbcType=DECIMAL},
#{easAmount,jdbcType=DECIMAL},
#{orderId,jdbcType=DECIMAL},
update BMSTRUCK_DETAILS_ORDER
set PURCHASE_ORDER_ID = #{purchaseOrderId,jdbcType=DECIMAL},
WEIGHT_TASK_RESULT_ID = #{weightTaskResultId,jdbcType=DECIMAL},
DETAILS_NO = #{detailsNo,jdbcType=VARCHAR},
DETAILS_TIME = #{detailsTime,jdbcType=TIMESTAMP},
PRICE_ID = #{priceId,jdbcType=DECIMAL},
DETAILS_AMOUNT = #{detailsAmount,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},
WETHER_TO_STATEMENT = #{wetherToStatement,jdbcType=DECIMAL},
EAS_AMOUNT = #{easAmount,jdbcType=DECIMAL},
ORDER_ID = #{orderId,jdbcType=DECIMAL}
where DETAILS_ID = #{detailsId,jdbcType=DECIMAL}
update BMSTRUCK_DETAILS_ORDER
PURCHASE_ORDER_ID = #{purchaseOrderId,jdbcType=DECIMAL},
WEIGHT_TASK_RESULT_ID = #{weightTaskResultId,jdbcType=DECIMAL},
DETAILS_NO = #{detailsNo,jdbcType=VARCHAR},
DETAILS_TIME = #{detailsTime,jdbcType=TIMESTAMP},
PRICE_ID = #{priceId,jdbcType=DECIMAL},
DETAILS_AMOUNT = #{detailsAmount,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},
WETHER_TO_STATEMENT = #{wetherToStatement,jdbcType=DECIMAL},
EAS_AMOUNT = #{easAmount,jdbcType=DECIMAL},
ORDER_ID = #{orderId,jdbcType=DECIMAL},
where DETAILS_ID = #{detailsId,jdbcType=DECIMAL}
insert into BMSTRUCK_DETAILS_ORDER
(DETAILS_ID,
PURCHASE_ORDER_ID, WEIGHT_TASK_RESULT_ID,
DETAILS_NO, DETAILS_TIME, PRICE_ID,
DETAILS_AMOUNT, INSERT_USERNAME,
INSERT_TIME, UPDATE_USERNAME,
UPDATE_TIME, INSERT_UPDATE_REMARK,
WETHER_TO_STATEMENT, EAS_AMOUNT,
ORDER_ID)
(
select
#{item.detailsId,jdbcType=DECIMAL},
#{item.purchaseOrderId,jdbcType=DECIMAL}, #{item.weightTaskResultId,jdbcType=DECIMAL},
#{item.detailsNo,jdbcType=VARCHAR}, #{item.detailsTime,jdbcType=TIMESTAMP}, #{item.priceId,jdbcType=DECIMAL},
#{item.detailsAmount,jdbcType=DECIMAL}, #{item.insertUsername,jdbcType=VARCHAR},
#{item.insertTime,jdbcType=TIMESTAMP}, #{item.updateUsername,jdbcType=VARCHAR},
#{item.updateTime,jdbcType=TIMESTAMP}, #{item.insertUpdateRemark,jdbcType=VARCHAR},
#{item.wetherToStatement,jdbcType=DECIMAL}, #{item.easAmount,jdbcType=DECIMAL},
#{item.orderId,jdbcType=DECIMAL} from dual
)
update BMSTRUCK_DETAILS_ORDER
set
DETAILS_ID=
when #{item.detailsId,jdbcType=DECIMAL} then #{item.detailsId,jdbcType=DECIMAL}
,PURCHASE_ORDER_ID=
when #{item.detailsId,jdbcType=DECIMAL} then #{item.purchaseOrderId,jdbcType=DECIMAL}
,WEIGHT_TASK_RESULT_ID=
when #{item.detailsId,jdbcType=DECIMAL} then #{item.weightTaskResultId,jdbcType=DECIMAL}
,DETAILS_NO=
when #{item.detailsId,jdbcType=DECIMAL} then #{item.detailsNo,jdbcType=VARCHAR}
,DETAILS_TIME=
when #{item.detailsId,jdbcType=DECIMAL} then #{item.detailsTime,jdbcType=TIMESTAMP}
,PRICE_ID=
when #{item.detailsId,jdbcType=DECIMAL} then #{item.priceId,jdbcType=DECIMAL}
,DETAILS_AMOUNT=
when #{item.detailsId,jdbcType=DECIMAL} then #{item.detailsAmount,jdbcType=DECIMAL}
,INSERT_USERNAME=
when #{item.detailsId,jdbcType=DECIMAL} then #{item.insertUsername,jdbcType=VARCHAR}
,INSERT_TIME=
when #{item.detailsId,jdbcType=DECIMAL} then #{item.insertTime,jdbcType=TIMESTAMP}
,UPDATE_USERNAME=
when #{item.detailsId,jdbcType=DECIMAL} then #{item.updateUsername,jdbcType=VARCHAR}
,UPDATE_TIME=
when #{item.detailsId,jdbcType=DECIMAL} then #{item.updateTime,jdbcType=TIMESTAMP}
,INSERT_UPDATE_REMARK=
when #{item.detailsId,jdbcType=DECIMAL} then #{item.insertUpdateRemark,jdbcType=VARCHAR}
,WETHER_TO_STATEMENT=
when #{item.detailsId,jdbcType=DECIMAL} then #{item.wetherToStatement,jdbcType=DECIMAL}
,EAS_AMOUNT=
when #{item.detailsId,jdbcType=DECIMAL} then #{item.easAmount,jdbcType=DECIMAL}
,ORDER_ID=
when #{item.detailsId,jdbcType=DECIMAL} then #{item.orderId,jdbcType=DECIMAL}
where DETAILS_ID in
#{item.detailsId,jdbcType=DECIMAL}
delete from BMSTRUCK_DETAILS_ORDER
where DETAILS_ID in
#{id}
order by "${orderField}"
${orderType}
order by "insertTime" desc