RESULT_ID, RESULT_TOTAL_ID, GATEPOST_ID, RESULT_ENTRY_MODE, RESULT_ENTRY_GATE_TIME,
RESULT_MEMO, INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK,
DELETE_USERNAME, DELETE_TIME, SEGMEN_SQE
t.RESULT_ID, t.RESULT_TOTAL_ID, t.GATEPOST_ID, t.RESULT_ENTRY_MODE, t.RESULT_ENTRY_GATE_TIME,
t.RESULT_MEMO, t.INSERT_USERNAME, t.INSERT_TIME, t.UPDATE_USERNAME, t.UPDATE_TIME,
t.INSERT_UPDATE_REMARK, t.DELETE_USERNAME, t.DELETE_TIME, t.SEGMEN_SQE
SELECT FROM TMSTRUCK_ENFACTORY_RESULT
SELECT FROM TMSTRUCK_ENFACTORY_RESULT t
and RESULT_ID = #{resultId}
and RESULT_TOTAL_ID = #{resultTotalId}
and GATEPOST_ID = #{gatepostId}
and RESULT_ENTRY_MODE = #{resultEntryMode}
and TO_CHAR(RESULT_ENTRY_GATE_TIME,'yyyy-MM-dd') = #{resultEntryGateTime}
and RESULT_MEMO = #{resultMemo}
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 DELETE_USERNAME = #{deleteUsername}
and TO_CHAR(DELETE_TIME,'yyyy-MM-dd') = #{deleteTime}
and SEGMEN_SQE = #{segmenSqe}
and RESULT_ID = #{resultId}
and RESULT_TOTAL_ID = #{resultTotalId}
and GATEPOST_ID = #{gatepostId}
and RESULT_ENTRY_MODE LIKE '%${resultEntryMode}%'
and TO_CHAR(RESULT_ENTRY_GATE_TIME,'yyyy-MM-dd') = #{resultEntryGateTime}
and RESULT_MEMO LIKE '%${resultMemo}%'
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 DELETE_USERNAME LIKE '%${deleteUsername}%'
and TO_CHAR(DELETE_TIME,'yyyy-MM-dd') = #{deleteTime}
and SEGMEN_SQE = #{segmenSqe}
delete from TMSTRUCK_ENFACTORY_RESULT
where RESULT_ID = #{resultId,jdbcType=DECIMAL}
delete from TMSTRUCK_ENFACTORY_RESULT
where 1!=1
or RESULT_TOTAL_ID = #{resultTotalId}
or GATEPOST_ID = #{gatepostId}
or RESULT_ENTRY_MODE = #{resultEntryMode}
or TO_CHAR(RESULT_ENTRY_GATE_TIME,'yyyy-MM-dd') = '#{resultEntryGateTime}'
or RESULT_MEMO = #{resultMemo}
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 DELETE_USERNAME = #{deleteUsername}
or TO_CHAR(DELETE_TIME,'yyyy-MM-dd') = '#{deleteTime}'
or SEGMEN_SQE = #{segmenSqe}
insert into TMSTRUCK_ENFACTORY_RESULT (RESULT_ID, RESULT_TOTAL_ID, GATEPOST_ID,
RESULT_ENTRY_MODE, RESULT_ENTRY_GATE_TIME,
RESULT_MEMO, INSERT_USERNAME, INSERT_TIME,
UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK,
DELETE_USERNAME, DELETE_TIME, SEGMEN_SQE
)
values (#{resultId,jdbcType=DECIMAL}, #{resultTotalId,jdbcType=DECIMAL}, #{gatepostId,jdbcType=DECIMAL},
#{resultEntryMode,jdbcType=VARCHAR}, #{resultEntryGateTime,jdbcType=TIMESTAMP},
#{resultMemo,jdbcType=VARCHAR}, #{insertUsername,jdbcType=VARCHAR}, #{insertTime,jdbcType=TIMESTAMP},
#{updateUsername,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{insertUpdateRemark,jdbcType=VARCHAR},
#{deleteUsername,jdbcType=VARCHAR}, #{deleteTime,jdbcType=TIMESTAMP}, #{segmenSqe,jdbcType=DECIMAL}
)
insert into TMSTRUCK_ENFACTORY_RESULT
RESULT_ID,
RESULT_TOTAL_ID,
GATEPOST_ID,
RESULT_ENTRY_MODE,
RESULT_ENTRY_GATE_TIME,
RESULT_MEMO,
INSERT_USERNAME,
INSERT_TIME,
UPDATE_USERNAME,
UPDATE_TIME,
INSERT_UPDATE_REMARK,
DELETE_USERNAME,
DELETE_TIME,
SEGMEN_SQE,
#{resultId,jdbcType=DECIMAL},
#{resultTotalId,jdbcType=DECIMAL},
#{gatepostId,jdbcType=DECIMAL},
#{resultEntryMode,jdbcType=VARCHAR},
#{resultEntryGateTime,jdbcType=TIMESTAMP},
#{resultMemo,jdbcType=VARCHAR},
#{insertUsername,jdbcType=VARCHAR},
#{insertTime,jdbcType=TIMESTAMP},
#{updateUsername,jdbcType=VARCHAR},
#{updateTime,jdbcType=TIMESTAMP},
#{insertUpdateRemark,jdbcType=VARCHAR},
#{deleteUsername,jdbcType=VARCHAR},
#{deleteTime,jdbcType=TIMESTAMP},
#{segmenSqe,jdbcType=DECIMAL},
update TMSTRUCK_ENFACTORY_RESULT
set RESULT_TOTAL_ID = #{resultTotalId,jdbcType=DECIMAL},
GATEPOST_ID = #{gatepostId,jdbcType=DECIMAL},
RESULT_ENTRY_MODE = #{resultEntryMode,jdbcType=VARCHAR},
RESULT_ENTRY_GATE_TIME = #{resultEntryGateTime,jdbcType=TIMESTAMP},
RESULT_MEMO = #{resultMemo,jdbcType=VARCHAR},
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},
DELETE_USERNAME = #{deleteUsername,jdbcType=VARCHAR},
DELETE_TIME = #{deleteTime,jdbcType=TIMESTAMP},
SEGMEN_SQE = #{segmenSqe,jdbcType=DECIMAL}
where RESULT_ID = #{resultId,jdbcType=DECIMAL}
update TMSTRUCK_ENFACTORY_RESULT
RESULT_TOTAL_ID = #{resultTotalId,jdbcType=DECIMAL},
GATEPOST_ID = #{gatepostId,jdbcType=DECIMAL},
RESULT_ENTRY_MODE = #{resultEntryMode,jdbcType=VARCHAR},
RESULT_ENTRY_GATE_TIME = #{resultEntryGateTime,jdbcType=TIMESTAMP},
RESULT_MEMO = #{resultMemo,jdbcType=VARCHAR},
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},
DELETE_USERNAME = #{deleteUsername,jdbcType=VARCHAR},
DELETE_TIME = #{deleteTime,jdbcType=TIMESTAMP},
SEGMEN_SQE = #{segmenSqe,jdbcType=DECIMAL},
where RESULT_ID = #{resultId,jdbcType=DECIMAL}
insert into TMSTRUCK_ENFACTORY_RESULT
(RESULT_ID,
RESULT_TOTAL_ID, GATEPOST_ID, RESULT_ENTRY_MODE,
RESULT_ENTRY_GATE_TIME, RESULT_MEMO,
INSERT_USERNAME, INSERT_TIME,
UPDATE_USERNAME, UPDATE_TIME,
INSERT_UPDATE_REMARK, DELETE_USERNAME,
DELETE_TIME, SEGMEN_SQE)
(
select
#{item.resultId,jdbcType=DECIMAL},
#{item.resultTotalId,jdbcType=DECIMAL}, #{item.gatepostId,jdbcType=DECIMAL}, #{item.resultEntryMode,jdbcType=VARCHAR},
#{item.resultEntryGateTime,jdbcType=TIMESTAMP}, #{item.resultMemo,jdbcType=VARCHAR},
#{item.insertUsername,jdbcType=VARCHAR}, #{item.insertTime,jdbcType=TIMESTAMP},
#{item.updateUsername,jdbcType=VARCHAR}, #{item.updateTime,jdbcType=TIMESTAMP},
#{item.insertUpdateRemark,jdbcType=VARCHAR}, #{item.deleteUsername,jdbcType=VARCHAR},
#{item.deleteTime,jdbcType=TIMESTAMP}, #{item.segmenSqe,jdbcType=DECIMAL} from dual
)
update TMSTRUCK_ENFACTORY_RESULT
set
RESULT_ID=
when #{item.resultId,jdbcType=DECIMAL} then #{item.resultId,jdbcType=DECIMAL}
,RESULT_TOTAL_ID=
when #{item.resultId,jdbcType=DECIMAL} then #{item.resultTotalId,jdbcType=DECIMAL}
,GATEPOST_ID=
when #{item.resultId,jdbcType=DECIMAL} then #{item.gatepostId,jdbcType=DECIMAL}
,RESULT_ENTRY_MODE=
when #{item.resultId,jdbcType=DECIMAL} then #{item.resultEntryMode,jdbcType=VARCHAR}
,RESULT_ENTRY_GATE_TIME=
when #{item.resultId,jdbcType=DECIMAL} then #{item.resultEntryGateTime,jdbcType=TIMESTAMP}
,RESULT_MEMO=
when #{item.resultId,jdbcType=DECIMAL} then #{item.resultMemo,jdbcType=VARCHAR}
,INSERT_USERNAME=
when #{item.resultId,jdbcType=DECIMAL} then #{item.insertUsername,jdbcType=VARCHAR}
,INSERT_TIME=
when #{item.resultId,jdbcType=DECIMAL} then #{item.insertTime,jdbcType=TIMESTAMP}
,UPDATE_USERNAME=
when #{item.resultId,jdbcType=DECIMAL} then #{item.updateUsername,jdbcType=VARCHAR}
,UPDATE_TIME=
when #{item.resultId,jdbcType=DECIMAL} then #{item.updateTime,jdbcType=TIMESTAMP}
,INSERT_UPDATE_REMARK=
when #{item.resultId,jdbcType=DECIMAL} then #{item.insertUpdateRemark,jdbcType=VARCHAR}
,DELETE_USERNAME=
when #{item.resultId,jdbcType=DECIMAL} then #{item.deleteUsername,jdbcType=VARCHAR}
,DELETE_TIME=
when #{item.resultId,jdbcType=DECIMAL} then #{item.deleteTime,jdbcType=TIMESTAMP}
,SEGMEN_SQE=
when #{item.resultId,jdbcType=DECIMAL} then #{item.segmenSqe,jdbcType=DECIMAL}
where RESULT_ID in
#{item.resultId,jdbcType=DECIMAL}
delete from TMSTRUCK_ENFACTORY_RESULT
where RESULT_ID in
#{id}
order by "${orderField}"
${orderType}
order by "resultEntryGateTime" desc