SHIPMENT_INSTRUCTIONS_ID, BATCH_ID, RECIPIENT_CARRIER_ID, PORT_CARRIER_ID, INSTRUCTIONS_TOTAL_TONNAGE, INSTRUCTION_TIME, DELETE_NAME, DELETE_TIME, INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK, DELETED, INSTRUCTION_ISSUE_STATUS t.SHIPMENT_INSTRUCTIONS_ID, t.BATCH_ID, t.RECIPIENT_CARRIER_ID, t.PORT_CARRIER_ID, t.INSTRUCTIONS_TOTAL_TONNAGE, t.INSTRUCTION_TIME, t.DELETE_NAME, t.DELETE_TIME, t.INSERT_USERNAME, t.INSERT_TIME, t.UPDATE_USERNAME, t.UPDATE_TIME, t.INSERT_UPDATE_REMARK, t.DELETED, t.INSTRUCTION_ISSUE_STATUS SELECT FROM OMSSHIP_SHIPMENT_INSTRUCTIONS SELECT FROM OMSSHIP_SHIPMENT_INSTRUCTIONS t and SHIPMENT_INSTRUCTIONS_ID = #{shipmentInstructionsId} and BATCH_ID = #{batchId} and RECIPIENT_CARRIER_ID = #{recipientCarrierId} and PORT_CARRIER_ID = #{portCarrierId} and INSTRUCTIONS_TOTAL_TONNAGE = #{instructionsTotalTonnage} and TO_CHAR(INSTRUCTION_TIME,'yyyy-MM-dd') = #{instructionTime} and DELETE_NAME = #{deleteName} and DELETE_TIME = #{deleteTime} 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 INSTRUCTION_ISSUE_STATUS = #{instructionIssueStatus} and SHIPMENT_INSTRUCTIONS_ID = #{shipmentInstructionsId} and BATCH_ID = #{batchId} and RECIPIENT_CARRIER_ID = #{recipientCarrierId} and PORT_CARRIER_ID = #{portCarrierId} and INSTRUCTIONS_TOTAL_TONNAGE = #{instructionsTotalTonnage} and TO_CHAR(INSTRUCTION_TIME,'yyyy-MM-dd') = #{instructionTime} and DELETE_NAME LIKE '%${deleteName}%' and DELETE_TIME LIKE '%${deleteTime}%' 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 INSTRUCTION_ISSUE_STATUS LIKE '%${instructionIssueStatus}%' delete from OMSSHIP_SHIPMENT_INSTRUCTIONS where SHIPMENT_INSTRUCTIONS_ID = #{shipmentInstructionsId,jdbcType=DECIMAL} delete from OMSSHIP_SHIPMENT_INSTRUCTIONS where 1!=1 or BATCH_ID = #{batchId} or RECIPIENT_CARRIER_ID = #{recipientCarrierId} or PORT_CARRIER_ID = #{portCarrierId} or INSTRUCTIONS_TOTAL_TONNAGE = #{instructionsTotalTonnage} or TO_CHAR(INSTRUCTION_TIME,'yyyy-MM-dd') = '#{instructionTime}' or DELETE_NAME = #{deleteName} or DELETE_TIME = #{deleteTime} 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 INSTRUCTION_ISSUE_STATUS = #{instructionIssueStatus} insert into OMSSHIP_SHIPMENT_INSTRUCTIONS (SHIPMENT_INSTRUCTIONS_ID, BATCH_ID, RECIPIENT_CARRIER_ID, PORT_CARRIER_ID, INSTRUCTIONS_TOTAL_TONNAGE, INSTRUCTION_TIME, DELETE_NAME, DELETE_TIME, INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK, DELETED, INSTRUCTION_ISSUE_STATUS) values (#{shipmentInstructionsId,jdbcType=DECIMAL}, #{batchId,jdbcType=DECIMAL}, #{recipientCarrierId,jdbcType=DECIMAL}, #{portCarrierId,jdbcType=DECIMAL}, #{instructionsTotalTonnage,jdbcType=DECIMAL}, #{instructionTime,jdbcType=TIMESTAMP}, #{deleteName,jdbcType=VARCHAR}, #{deleteTime,jdbcType=VARCHAR}, #{insertUsername,jdbcType=VARCHAR}, #{insertTime,jdbcType=TIMESTAMP}, #{updateUsername,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{insertUpdateRemark,jdbcType=VARCHAR}, #{deleted,jdbcType=DECIMAL}, #{instructionIssueStatus,jdbcType=VARCHAR}) insert into OMSSHIP_SHIPMENT_INSTRUCTIONS SHIPMENT_INSTRUCTIONS_ID, BATCH_ID, RECIPIENT_CARRIER_ID, PORT_CARRIER_ID, INSTRUCTIONS_TOTAL_TONNAGE, INSTRUCTION_TIME, DELETE_NAME, DELETE_TIME, INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK, DELETED, INSTRUCTION_ISSUE_STATUS, #{shipmentInstructionsId,jdbcType=DECIMAL}, #{batchId,jdbcType=DECIMAL}, #{recipientCarrierId,jdbcType=DECIMAL}, #{portCarrierId,jdbcType=DECIMAL}, #{instructionsTotalTonnage,jdbcType=DECIMAL}, #{instructionTime,jdbcType=TIMESTAMP}, #{deleteName,jdbcType=VARCHAR}, #{deleteTime,jdbcType=VARCHAR}, #{insertUsername,jdbcType=VARCHAR}, #{insertTime,jdbcType=TIMESTAMP}, #{updateUsername,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{insertUpdateRemark,jdbcType=VARCHAR}, #{deleted,jdbcType=DECIMAL}, #{instructionIssueStatus,jdbcType=VARCHAR}, update OMSSHIP_SHIPMENT_INSTRUCTIONS set BATCH_ID = #{batchId,jdbcType=DECIMAL}, RECIPIENT_CARRIER_ID = #{recipientCarrierId,jdbcType=DECIMAL}, PORT_CARRIER_ID = #{portCarrierId,jdbcType=DECIMAL}, INSTRUCTIONS_TOTAL_TONNAGE = #{instructionsTotalTonnage,jdbcType=DECIMAL}, INSTRUCTION_TIME = #{instructionTime,jdbcType=TIMESTAMP}, DELETE_NAME = #{deleteName,jdbcType=VARCHAR}, DELETE_TIME = #{deleteTime,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}, DELETED = #{deleted,jdbcType=DECIMAL}, INSTRUCTION_ISSUE_STATUS = #{instructionIssueStatus,jdbcType=VARCHAR} where SHIPMENT_INSTRUCTIONS_ID = #{shipmentInstructionsId,jdbcType=DECIMAL} update OMSSHIP_SHIPMENT_INSTRUCTIONS BATCH_ID = #{batchId,jdbcType=DECIMAL}, RECIPIENT_CARRIER_ID = #{recipientCarrierId,jdbcType=DECIMAL}, PORT_CARRIER_ID = #{portCarrierId,jdbcType=DECIMAL}, INSTRUCTIONS_TOTAL_TONNAGE = #{instructionsTotalTonnage,jdbcType=DECIMAL}, INSTRUCTION_TIME = #{instructionTime,jdbcType=TIMESTAMP}, DELETE_NAME = #{deleteName,jdbcType=VARCHAR}, DELETE_TIME = #{deleteTime,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}, DELETED = #{deleted,jdbcType=DECIMAL}, INSTRUCTION_ISSUE_STATUS = #{instructionIssueStatus,jdbcType=VARCHAR}, where SHIPMENT_INSTRUCTIONS_ID = #{shipmentInstructionsId,jdbcType=DECIMAL} insert into OMSSHIP_SHIPMENT_INSTRUCTIONS (SHIPMENT_INSTRUCTIONS_ID, BATCH_ID, RECIPIENT_CARRIER_ID, PORT_CARRIER_ID, INSTRUCTIONS_TOTAL_TONNAGE, INSTRUCTION_TIME, DELETE_NAME, DELETE_TIME, INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK, DELETED, INSTRUCTION_ISSUE_STATUS) ( select #{item.shipmentInstructionsId,jdbcType=DECIMAL}, #{item.batchId,jdbcType=DECIMAL}, #{item.recipientCarrierId,jdbcType=DECIMAL}, #{item.portCarrierId,jdbcType=DECIMAL}, #{item.instructionsTotalTonnage,jdbcType=DECIMAL}, #{item.instructionTime,jdbcType=TIMESTAMP}, #{item.deleteName,jdbcType=VARCHAR}, #{item.deleteTime,jdbcType=VARCHAR}, #{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.instructionIssueStatus,jdbcType=VARCHAR} from dual ) update OMSSHIP_SHIPMENT_INSTRUCTIONS set SHIPMENT_INSTRUCTIONS_ID= when #{item.shipmentInstructionsId,jdbcType=DECIMAL} then #{item.shipmentInstructionsId,jdbcType=DECIMAL} ,BATCH_ID= when #{item.shipmentInstructionsId,jdbcType=DECIMAL} then #{item.batchId,jdbcType=DECIMAL} ,RECIPIENT_CARRIER_ID= when #{item.shipmentInstructionsId,jdbcType=DECIMAL} then #{item.recipientCarrierId,jdbcType=DECIMAL} ,PORT_CARRIER_ID= when #{item.shipmentInstructionsId,jdbcType=DECIMAL} then #{item.portCarrierId,jdbcType=DECIMAL} ,INSTRUCTIONS_TOTAL_TONNAGE= when #{item.shipmentInstructionsId,jdbcType=DECIMAL} then #{item.instructionsTotalTonnage,jdbcType=DECIMAL} ,INSTRUCTION_TIME= when #{item.shipmentInstructionsId,jdbcType=DECIMAL} then #{item.instructionTime,jdbcType=TIMESTAMP} ,DELETE_NAME= when #{item.shipmentInstructionsId,jdbcType=DECIMAL} then #{item.deleteName,jdbcType=VARCHAR} ,DELETE_TIME= when #{item.shipmentInstructionsId,jdbcType=DECIMAL} then #{item.deleteTime,jdbcType=VARCHAR} ,INSERT_USERNAME= when #{item.shipmentInstructionsId,jdbcType=DECIMAL} then #{item.insertUsername,jdbcType=VARCHAR} ,INSERT_TIME= when #{item.shipmentInstructionsId,jdbcType=DECIMAL} then #{item.insertTime,jdbcType=TIMESTAMP} ,UPDATE_USERNAME= when #{item.shipmentInstructionsId,jdbcType=DECIMAL} then #{item.updateUsername,jdbcType=VARCHAR} ,UPDATE_TIME= when #{item.shipmentInstructionsId,jdbcType=DECIMAL} then #{item.updateTime,jdbcType=TIMESTAMP} ,INSERT_UPDATE_REMARK= when #{item.shipmentInstructionsId,jdbcType=DECIMAL} then #{item.insertUpdateRemark,jdbcType=VARCHAR} ,DELETED= when #{item.shipmentInstructionsId,jdbcType=DECIMAL} then #{item.deleted,jdbcType=DECIMAL} ,INSTRUCTION_ISSUE_STATUS= when #{item.shipmentInstructionsId,jdbcType=DECIMAL} then #{item.instructionIssueStatus,jdbcType=VARCHAR} where SHIPMENT_INSTRUCTIONS_ID in #{item.shipmentInstructionsId,jdbcType=DECIMAL} delete from OMSSHIP_SHIPMENT_INSTRUCTIONS where SHIPMENT_INSTRUCTIONS_ID in #{id} order by "${orderField}" ${orderType} order by "insertTime" desc