RESULT_ID, RESULT_TOTAL_ID, GATEPOST_ID, RESULT_OUT_MODE, RESULT_OUT_GATE_TIME, INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK, DELETE_USERNAME, DELETE_TIME, SEGMENT_SQE, RESULT_TRUCK_SNAPSHOT_PICTURE t.RESULT_ID, t.RESULT_TOTAL_ID, t.GATEPOST_ID, t.RESULT_OUT_MODE, t.RESULT_OUT_GATE_TIME, t.INSERT_USERNAME, t.INSERT_TIME, t.UPDATE_USERNAME, t.UPDATE_TIME, t.INSERT_UPDATE_REMARK, t.DELETE_USERNAME, t.DELETE_TIME, t.SEGMENT_SQE, t.RESULT_TRUCK_SNAPSHOT_PICTURE SELECT FROM TMSTRUCK_LEAVE_FACTORY_RESULT SELECT FROM TMSTRUCK_LEAVE_FACTORY_RESULT t and RESULT_ID = #{resultId} and RESULT_TOTAL_ID = #{resultTotalId} and GATEPOST_ID = #{gatepostId} and RESULT_OUT_MODE = #{resultOutMode} and TO_CHAR(RESULT_OUT_GATE_TIME,'yyyy-MM-dd') = #{resultOutGateTime} 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 SEGMENT_SQE = #{segmentSqe} and RESULT_TRUCK_SNAPSHOT_PICTURE = #{resultTruckSnapshotPicture} and RESULT_ID = #{resultId} and RESULT_TOTAL_ID = #{resultTotalId} and GATEPOST_ID = #{gatepostId} and RESULT_OUT_MODE LIKE '%${resultOutMode}%' and TO_CHAR(RESULT_OUT_GATE_TIME,'yyyy-MM-dd') = #{resultOutGateTime} 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 SEGMENT_SQE = #{segmentSqe} and RESULT_TRUCK_SNAPSHOT_PICTURE = #{resultTruckSnapshotPicture} delete from TMSTRUCK_LEAVE_FACTORY_RESULT where RESULT_ID = #{resultId,jdbcType=DECIMAL} delete from TMSTRUCK_LEAVE_FACTORY_RESULT where 1!=1 or RESULT_TOTAL_ID = #{resultTotalId} or GATEPOST_ID = #{gatepostId} or RESULT_OUT_MODE = #{resultOutMode} or TO_CHAR(RESULT_OUT_GATE_TIME,'yyyy-MM-dd') = '#{resultOutGateTime}' 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 SEGMENT_SQE = #{segmentSqe} or RESULT_TRUCK_SNAPSHOT_PICTURE = #{resultTruckSnapshotPicture} insert into TMSTRUCK_LEAVE_FACTORY_RESULT (RESULT_ID, RESULT_TOTAL_ID, GATEPOST_ID, RESULT_OUT_MODE, RESULT_OUT_GATE_TIME, INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK, DELETE_USERNAME, DELETE_TIME, SEGMENT_SQE, RESULT_TRUCK_SNAPSHOT_PICTURE) values (#{resultId,jdbcType=DECIMAL}, #{resultTotalId,jdbcType=DECIMAL}, #{gatepostId,jdbcType=DECIMAL}, #{resultOutMode,jdbcType=VARCHAR}, #{resultOutGateTime,jdbcType=TIMESTAMP}, #{insertUsername,jdbcType=VARCHAR}, #{insertTime,jdbcType=TIMESTAMP}, #{updateUsername,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{insertUpdateRemark,jdbcType=VARCHAR}, #{deleteUsername,jdbcType=VARCHAR}, #{deleteTime,jdbcType=TIMESTAMP}, #{segmentSqe,jdbcType=DECIMAL}, #{resultTruckSnapshotPicture,jdbcType=BLOB}) insert into TMSTRUCK_LEAVE_FACTORY_RESULT RESULT_ID, RESULT_TOTAL_ID, GATEPOST_ID, RESULT_OUT_MODE, RESULT_OUT_GATE_TIME, INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK, DELETE_USERNAME, DELETE_TIME, SEGMENT_SQE, RESULT_TRUCK_SNAPSHOT_PICTURE, #{resultId,jdbcType=DECIMAL}, #{resultTotalId,jdbcType=DECIMAL}, #{gatepostId,jdbcType=DECIMAL}, #{resultOutMode,jdbcType=VARCHAR}, #{resultOutGateTime,jdbcType=TIMESTAMP}, #{insertUsername,jdbcType=VARCHAR}, #{insertTime,jdbcType=TIMESTAMP}, #{updateUsername,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{insertUpdateRemark,jdbcType=VARCHAR}, #{deleteUsername,jdbcType=VARCHAR}, #{deleteTime,jdbcType=TIMESTAMP}, #{segmentSqe,jdbcType=DECIMAL}, #{resultTruckSnapshotPicture,jdbcType=BLOB}, update TMSTRUCK_LEAVE_FACTORY_RESULT set RESULT_TOTAL_ID = #{resultTotalId,jdbcType=DECIMAL}, GATEPOST_ID = #{gatepostId,jdbcType=DECIMAL}, RESULT_OUT_MODE = #{resultOutMode,jdbcType=VARCHAR}, RESULT_OUT_GATE_TIME = #{resultOutGateTime,jdbcType=TIMESTAMP}, 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}, SEGMENT_SQE = #{segmentSqe,jdbcType=DECIMAL}, RESULT_TRUCK_SNAPSHOT_PICTURE = #{resultTruckSnapshotPicture,jdbcType=BLOB} where RESULT_ID = #{resultId,jdbcType=DECIMAL} update TMSTRUCK_LEAVE_FACTORY_RESULT RESULT_TOTAL_ID = #{resultTotalId,jdbcType=DECIMAL}, GATEPOST_ID = #{gatepostId,jdbcType=DECIMAL}, RESULT_OUT_MODE = #{resultOutMode,jdbcType=VARCHAR}, RESULT_OUT_GATE_TIME = #{resultOutGateTime,jdbcType=TIMESTAMP}, 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}, SEGMENT_SQE = #{segmentSqe,jdbcType=DECIMAL}, RESULT_TRUCK_SNAPSHOT_PICTURE = #{resultTruckSnapshotPicture,jdbcType=BLOB}, where RESULT_ID = #{resultId,jdbcType=DECIMAL} insert into TMSTRUCK_LEAVE_FACTORY_RESULT (RESULT_ID, RESULT_TOTAL_ID, GATEPOST_ID, RESULT_OUT_MODE, RESULT_OUT_GATE_TIME, INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK, DELETE_USERNAME, DELETE_TIME, SEGMENT_SQE, RESULT_TRUCK_SNAPSHOT_PICTURE ) ( select #{item.resultId,jdbcType=DECIMAL}, #{item.resultTotalId,jdbcType=DECIMAL}, #{item.gatepostId,jdbcType=DECIMAL}, #{item.resultOutMode,jdbcType=VARCHAR}, #{item.resultOutGateTime,jdbcType=TIMESTAMP}, #{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.segmentSqe,jdbcType=DECIMAL}, #{item.resultTruckSnapshotPicture,jdbcType=BLOB} from dual ) update TMSTRUCK_LEAVE_FACTORY_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_OUT_MODE= when #{item.resultId,jdbcType=DECIMAL} then #{item.resultOutMode,jdbcType=VARCHAR} ,RESULT_OUT_GATE_TIME= when #{item.resultId,jdbcType=DECIMAL} then #{item.resultOutGateTime,jdbcType=TIMESTAMP} ,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} ,SEGMENT_SQE= when #{item.resultId,jdbcType=DECIMAL} then #{item.segmentSqe,jdbcType=DECIMAL} ,RESULT_TRUCK_SNAPSHOT_PICTURE= when #{item.resultId,jdbcType=DECIMAL} then #{item.resultTruckSnapshotPicture,jdbcType=BLOB} where RESULT_ID in #{item.resultId,jdbcType=DECIMAL} delete from TMSTRUCK_LEAVE_FACTORY_RESULT where RESULT_ID in #{id} order by "${orderField}" ${orderType} order by "resultOutGateTime" desc update OMSTRUCK_ORDER oo set oo.PRINTNUMBER=1 where oo.ORDER_NUMBER=#{orderNumber}