ATTORNEY_ID, BATCH_ID, PORT_ID, DOWN_SWIM_PORT_ID, ATTORNEY_PICKUP_CONTACT_PERSON, ATTORENY_PICKUP_IDCARD, ATTORNEY_CONTACT_TELEPHONE, ATTORNEY_TIME, ATTORNEY_PDFFILE, DELETE_NAME, DELETE_TIME, INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK, DELETED, ATTORNEY_DISTRIBUTION_STATUS t.ATTORNEY_ID, t.BATCH_ID, t.PORT_ID, t.DOWN_SWIM_PORT_ID, t.ATTORNEY_PICKUP_CONTACT_PERSON, t.ATTORENY_PICKUP_IDCARD, t.ATTORNEY_CONTACT_TELEPHONE, t.ATTORNEY_TIME, t.ATTORNEY_PDFFILE, 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.ATTORNEY_DISTRIBUTION_STATUS SELECT FROM AMSSHIP_DELIVERY_ATTORNEY SELECT FROM AMSSHIP_DELIVERY_ATTORNEY t and ATTORNEY_ID = #{attorneyId} and BATCH_ID = #{batchId} and PORT_ID = #{portId} and DOWN_SWIM_PORT_ID = #{downSwimPortId} and ATTORNEY_PICKUP_CONTACT_PERSON = #{attorneyPickupContactPerson} and ATTORENY_PICKUP_IDCARD = #{attorenyPickupIdcard} and ATTORNEY_CONTACT_TELEPHONE = #{attorneyContactTelephone} and TO_CHAR(ATTORNEY_TIME,'yyyy-MM-dd') = #{attorneyTime} and ATTORNEY_PDFFILE = #{attorneyPdffile} 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 ATTORNEY_DISTRIBUTION_STATUS = #{attorneyDistributionStatus} and ATTORNEY_ID = #{attorneyId} and BATCH_ID = #{batchId} and PORT_ID = #{portId} and DOWN_SWIM_PORT_ID = #{downSwimPortId} and ATTORNEY_PICKUP_CONTACT_PERSON LIKE '%${attorneyPickupContactPerson}%' and ATTORENY_PICKUP_IDCARD LIKE '%${attorenyPickupIdcard}%' and ATTORNEY_CONTACT_TELEPHONE LIKE '%${attorneyContactTelephone}%' and TO_CHAR(ATTORNEY_TIME,'yyyy-MM-dd') = #{attorneyTime} and ATTORNEY_PDFFILE LIKE '%${attorneyPdffile}%' 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 ATTORNEY_DISTRIBUTION_STATUS = #{attorneyDistributionStatus} delete from AMSSHIP_DELIVERY_ATTORNEY where ATTORNEY_ID = #{attorneyId,jdbcType=DECIMAL} delete from AMSSHIP_DELIVERY_ATTORNEY where 1!=1 or BATCH_ID = #{batchId} or PORT_ID = #{portId} or DOWN_SWIM_PORT_ID = #{downSwimPortId} or ATTORNEY_PICKUP_CONTACT_PERSON = #{attorneyPickupContactPerson} or ATTORENY_PICKUP_IDCARD = #{attorenyPickupIdcard} or ATTORNEY_CONTACT_TELEPHONE = #{attorneyContactTelephone} or TO_CHAR(ATTORNEY_TIME,'yyyy-MM-dd') = '#{attorneyTime}' or ATTORNEY_PDFFILE = #{attorneyPdffile} 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 ATTORNEY_DISTRIBUTION_STATUS = #{attorneyDistributionStatus} insert into AMSSHIP_DELIVERY_ATTORNEY (ATTORNEY_ID, BATCH_ID, PORT_ID, DOWN_SWIM_PORT_ID, ATTORNEY_PICKUP_CONTACT_PERSON, ATTORENY_PICKUP_IDCARD, ATTORNEY_CONTACT_TELEPHONE, ATTORNEY_TIME, ATTORNEY_PDFFILE, DELETE_NAME, DELETE_TIME, INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK, DELETED, ATTORNEY_DISTRIBUTION_STATUS) values (#{attorneyId,jdbcType=DECIMAL}, #{batchId,jdbcType=DECIMAL}, #{portId,jdbcType=DECIMAL}, #{downSwimPortId,jdbcType=DECIMAL}, #{attorneyPickupContactPerson,jdbcType=VARCHAR}, #{attorenyPickupIdcard,jdbcType=VARCHAR}, #{attorneyContactTelephone,jdbcType=VARCHAR}, #{attorneyTime,jdbcType=TIMESTAMP}, #{attorneyPdffile,jdbcType=VARCHAR}, #{deleteName,jdbcType=VARCHAR}, #{deleteTime,jdbcType=VARCHAR}, #{insertUsername,jdbcType=VARCHAR}, #{insertTime,jdbcType=TIMESTAMP}, #{updateUsername,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{insertUpdateRemark,jdbcType=VARCHAR}, #{deleted,jdbcType=DECIMAL}, #{attorneyDistributionStatus,jdbcType=DECIMAL}) insert into AMSSHIP_DELIVERY_ATTORNEY ATTORNEY_ID, BATCH_ID, PORT_ID, DOWN_SWIM_PORT_ID, ATTORNEY_PICKUP_CONTACT_PERSON, ATTORENY_PICKUP_IDCARD, ATTORNEY_CONTACT_TELEPHONE, ATTORNEY_TIME, ATTORNEY_PDFFILE, DELETE_NAME, DELETE_TIME, INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK, DELETED, ATTORNEY_DISTRIBUTION_STATUS, #{attorneyId,jdbcType=DECIMAL}, #{batchId,jdbcType=DECIMAL}, #{portId,jdbcType=DECIMAL}, #{downSwimPortId,jdbcType=DECIMAL}, #{attorneyPickupContactPerson,jdbcType=VARCHAR}, #{attorenyPickupIdcard,jdbcType=VARCHAR}, #{attorneyContactTelephone,jdbcType=VARCHAR}, #{attorneyTime,jdbcType=TIMESTAMP}, #{attorneyPdffile,jdbcType=VARCHAR}, #{deleteName,jdbcType=VARCHAR}, #{deleteTime,jdbcType=VARCHAR}, #{insertUsername,jdbcType=VARCHAR}, #{insertTime,jdbcType=TIMESTAMP}, #{updateUsername,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{insertUpdateRemark,jdbcType=VARCHAR}, #{deleted,jdbcType=DECIMAL}, #{attorneyDistributionStatus,jdbcType=DECIMAL}, update AMSSHIP_DELIVERY_ATTORNEY set BATCH_ID = #{batchId,jdbcType=DECIMAL}, PORT_ID = #{portId,jdbcType=DECIMAL}, DOWN_SWIM_PORT_ID = #{downSwimPortId,jdbcType=DECIMAL}, ATTORNEY_PICKUP_CONTACT_PERSON = #{attorneyPickupContactPerson,jdbcType=VARCHAR}, ATTORENY_PICKUP_IDCARD = #{attorenyPickupIdcard,jdbcType=VARCHAR}, ATTORNEY_CONTACT_TELEPHONE = #{attorneyContactTelephone,jdbcType=VARCHAR}, ATTORNEY_TIME = #{attorneyTime,jdbcType=TIMESTAMP}, ATTORNEY_PDFFILE = #{attorneyPdffile,jdbcType=VARCHAR}, 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}, ATTORNEY_DISTRIBUTION_STATUS = #{attorneyDistributionStatus,jdbcType=DECIMAL} where ATTORNEY_ID = #{attorneyId,jdbcType=DECIMAL} update AMSSHIP_DELIVERY_ATTORNEY BATCH_ID = #{batchId,jdbcType=DECIMAL}, PORT_ID = #{portId,jdbcType=DECIMAL}, DOWN_SWIM_PORT_ID = #{downSwimPortId,jdbcType=DECIMAL}, ATTORNEY_PICKUP_CONTACT_PERSON = #{attorneyPickupContactPerson,jdbcType=VARCHAR}, ATTORENY_PICKUP_IDCARD = #{attorenyPickupIdcard,jdbcType=VARCHAR}, ATTORNEY_CONTACT_TELEPHONE = #{attorneyContactTelephone,jdbcType=VARCHAR}, ATTORNEY_TIME = #{attorneyTime,jdbcType=TIMESTAMP}, ATTORNEY_PDFFILE = #{attorneyPdffile,jdbcType=VARCHAR}, 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}, ATTORNEY_DISTRIBUTION_STATUS = #{attorneyDistributionStatus,jdbcType=DECIMAL}, where ATTORNEY_ID = #{attorneyId,jdbcType=DECIMAL} insert into AMSSHIP_DELIVERY_ATTORNEY (ATTORNEY_ID, BATCH_ID, PORT_ID, DOWN_SWIM_PORT_ID, ATTORNEY_PICKUP_CONTACT_PERSON, ATTORENY_PICKUP_IDCARD, ATTORNEY_CONTACT_TELEPHONE, ATTORNEY_TIME, ATTORNEY_PDFFILE, DELETE_NAME, DELETE_TIME, INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK, DELETED, ATTORNEY_DISTRIBUTION_STATUS) ( select #{item.attorneyId,jdbcType=DECIMAL}, #{item.batchId,jdbcType=DECIMAL}, #{item.portId,jdbcType=DECIMAL}, #{item.downSwimPortId,jdbcType=DECIMAL}, #{item.attorneyPickupContactPerson,jdbcType=VARCHAR}, #{item.attorenyPickupIdcard,jdbcType=VARCHAR}, #{item.attorneyContactTelephone,jdbcType=VARCHAR}, #{item.attorneyTime,jdbcType=TIMESTAMP}, #{item.attorneyPdffile,jdbcType=VARCHAR}, #{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.attorneyDistributionStatus,jdbcType=DECIMAL} from dual ) update AMSSHIP_DELIVERY_ATTORNEY set ATTORNEY_ID= when #{item.attorneyId,jdbcType=DECIMAL} then #{item.attorneyId,jdbcType=DECIMAL} ,BATCH_ID= when #{item.attorneyId,jdbcType=DECIMAL} then #{item.batchId,jdbcType=DECIMAL} ,PORT_ID= when #{item.attorneyId,jdbcType=DECIMAL} then #{item.portId,jdbcType=DECIMAL} ,DOWN_SWIM_PORT_ID= when #{item.attorneyId,jdbcType=DECIMAL} then #{item.downSwimPortId,jdbcType=DECIMAL} ,ATTORNEY_PICKUP_CONTACT_PERSON= when #{item.attorneyId,jdbcType=DECIMAL} then #{item.attorneyPickupContactPerson,jdbcType=VARCHAR} ,ATTORENY_PICKUP_IDCARD= when #{item.attorneyId,jdbcType=DECIMAL} then #{item.attorenyPickupIdcard,jdbcType=VARCHAR} ,ATTORNEY_CONTACT_TELEPHONE= when #{item.attorneyId,jdbcType=DECIMAL} then #{item.attorneyContactTelephone,jdbcType=VARCHAR} ,ATTORNEY_TIME= when #{item.attorneyId,jdbcType=DECIMAL} then #{item.attorneyTime,jdbcType=TIMESTAMP} ,ATTORNEY_PDFFILE= when #{item.attorneyId,jdbcType=DECIMAL} then #{item.attorneyPdffile,jdbcType=VARCHAR} ,DELETE_NAME= when #{item.attorneyId,jdbcType=DECIMAL} then #{item.deleteName,jdbcType=VARCHAR} ,DELETE_TIME= when #{item.attorneyId,jdbcType=DECIMAL} then #{item.deleteTime,jdbcType=VARCHAR} ,INSERT_USERNAME= when #{item.attorneyId,jdbcType=DECIMAL} then #{item.insertUsername,jdbcType=VARCHAR} ,INSERT_TIME= when #{item.attorneyId,jdbcType=DECIMAL} then #{item.insertTime,jdbcType=TIMESTAMP} ,UPDATE_USERNAME= when #{item.attorneyId,jdbcType=DECIMAL} then #{item.updateUsername,jdbcType=VARCHAR} ,UPDATE_TIME= when #{item.attorneyId,jdbcType=DECIMAL} then #{item.updateTime,jdbcType=TIMESTAMP} ,INSERT_UPDATE_REMARK= when #{item.attorneyId,jdbcType=DECIMAL} then #{item.insertUpdateRemark,jdbcType=VARCHAR} ,DELETED= when #{item.attorneyId,jdbcType=DECIMAL} then #{item.deleted,jdbcType=DECIMAL} ,ATTORNEY_DISTRIBUTION_STATUS= when #{item.attorneyId,jdbcType=DECIMAL} then #{item.attorneyDistributionStatus,jdbcType=DECIMAL} where ATTORNEY_ID in #{item.attorneyId,jdbcType=DECIMAL} delete from AMSSHIP_DELIVERY_ATTORNEY where ATTORNEY_ID in #{id} order by "${orderField}" ${orderType} order by "insertTime" desc