GATEPOST_ID, GATEPOST_NAME, GATEPOST_LONGITUDE, GATEPOST_LATITUDE, GATEPOST_PRIORITY, INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK,DELETED t.GATEPOST_ID, t.GATEPOST_NAME, t.GATEPOST_LONGITUDE, t.GATEPOST_LATITUDE, t.GATEPOST_PRIORITY, t.INSERT_USERNAME, t.INSERT_TIME, t.UPDATE_USERNAME, t.UPDATE_TIME, t.INSERT_UPDATE_REMARK,t.DELETED SELECT FROM RMS_GATEPOST SELECT FROM RMS_GATEPOST t and GATEPOST_ID = #{gatepostId} and GATEPOST_NAME = #{gatepostName} and GATEPOST_LONGITUDE = #{gatepostLongitude} and GATEPOST_LATITUDE = #{gatepostLatitude} and GATEPOST_PRIORITY = #{gatepostPriority} 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 GATEPOST_ID = #{gatepostId} and GATEPOST_NAME LIKE '%${gatepostName}%' and GATEPOST_LONGITUDE LIKE '%${gatepostLongitude}%' and GATEPOST_LATITUDE LIKE '%${gatepostLatitude}%' and GATEPOST_PRIORITY = #{gatepostPriority} 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} delete from RMS_GATEPOST where GATEPOST_ID = #{gatepostId,jdbcType=DECIMAL} delete from RMS_GATEPOST where 1!=1 or GATEPOST_NAME = #{gatepostName} or GATEPOST_LONGITUDE = #{gatepostLongitude} or GATEPOST_LATITUDE = #{gatepostLatitude} or GATEPOST_PRIORITY = #{gatepostPriority} 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} insert into RMS_GATEPOST (GATEPOST_ID, GATEPOST_NAME, GATEPOST_LONGITUDE, GATEPOST_LATITUDE, GATEPOST_PRIORITY, INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK,DELETED) values (#{gatepostId,jdbcType=DECIMAL}, #{gatepostName,jdbcType=VARCHAR}, #{gatepostLongitude,jdbcType=VARCHAR}, #{gatepostLatitude,jdbcType=VARCHAR}, #{gatepostPriority,jdbcType=DECIMAL}, #{insertUsername,jdbcType=VARCHAR}, #{insertTime,jdbcType=TIMESTAMP}, #{updateUsername,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{insertUpdateRemark,jdbcType=VARCHAR}, #{deleted,jdbcType=DECIMAL}) insert into RMS_GATEPOST GATEPOST_ID, GATEPOST_NAME, GATEPOST_LONGITUDE, GATEPOST_LATITUDE, GATEPOST_PRIORITY, INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK, DELETED, #{gatepostId,jdbcType=DECIMAL}, #{gatepostName,jdbcType=VARCHAR}, #{gatepostLongitude,jdbcType=VARCHAR}, #{gatepostLatitude,jdbcType=VARCHAR}, #{gatepostPriority,jdbcType=DECIMAL}, #{insertUsername,jdbcType=VARCHAR}, #{insertTime,jdbcType=TIMESTAMP}, #{updateUsername,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{insertUpdateRemark,jdbcType=VARCHAR}, #{deleted,jdbcType=DECIMAL}, update RMS_GATEPOST set GATEPOST_NAME = #{gatepostName,jdbcType=VARCHAR}, GATEPOST_LONGITUDE = #{gatepostLongitude,jdbcType=VARCHAR}, GATEPOST_LATITUDE = #{gatepostLatitude,jdbcType=VARCHAR}, GATEPOST_PRIORITY = #{gatepostPriority,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}, DELETED = #{deleted,jdbcType=DECIMAL} where GATEPOST_ID = #{gatepostId,jdbcType=DECIMAL} update RMS_GATEPOST GATEPOST_NAME = #{gatepostName,jdbcType=VARCHAR}, GATEPOST_LONGITUDE = #{gatepostLongitude,jdbcType=VARCHAR}, GATEPOST_LATITUDE = #{gatepostLatitude,jdbcType=VARCHAR}, GATEPOST_PRIORITY = #{gatepostPriority,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}, DELETED = #{deleted,jdbcType=DECIMAL}, where GATEPOST_ID = #{gatepostId,jdbcType=DECIMAL} insert into RMS_GATEPOST (GATEPOST_ID, GATEPOST_NAME, GATEPOST_LONGITUDE, GATEPOST_LATITUDE, GATEPOST_PRIORITY, INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK,DELETED,) ( select #{item.gatepostId,jdbcType=DECIMAL}, #{item.gatepostName,jdbcType=VARCHAR}, #{item.gatepostLongitude,jdbcType=VARCHAR}, #{item.gatepostLatitude,jdbcType=VARCHAR}, #{item.gatepostPriority,jdbcType=DECIMAL}, #{item.insertUsername,jdbcType=VARCHAR}, #{item.insertTime,jdbcType=TIMESTAMP}, #{item.updateUsername,jdbcType=VARCHAR}, #{item.updateTime,jdbcType=TIMESTAMP}, #{item.insertUpdateRemark,jdbcType=VARCHAR},, #{item.deleted,jdbcType=DECIMAL} from dual ) update RMS_GATEPOST set GATEPOST_ID= when #{item.gatepostId,jdbcType=DECIMAL} then #{item.gatepostId,jdbcType=DECIMAL} ,GATEPOST_NAME= when #{item.gatepostId,jdbcType=DECIMAL} then #{item.gatepostName,jdbcType=VARCHAR} ,GATEPOST_LONGITUDE= when #{item.gatepostId,jdbcType=DECIMAL} then #{item.gatepostLongitude,jdbcType=VARCHAR} ,GATEPOST_LATITUDE= when #{item.gatepostId,jdbcType=DECIMAL} then #{item.gatepostLatitude,jdbcType=VARCHAR} ,GATEPOST_PRIORITY= when #{item.gatepostId,jdbcType=DECIMAL} then #{item.gatepostPriority,jdbcType=DECIMAL} ,INSERT_USERNAME= when #{item.gatepostId,jdbcType=DECIMAL} then #{item.insertUsername,jdbcType=VARCHAR} ,INSERT_TIME= when #{item.gatepostId,jdbcType=DECIMAL} then #{item.insertTime,jdbcType=TIMESTAMP} ,UPDATE_USERNAME= when #{item.gatepostId,jdbcType=DECIMAL} then #{item.updateUsername,jdbcType=VARCHAR} ,UPDATE_TIME= when #{item.gatepostId,jdbcType=DECIMAL} then #{item.updateTime,jdbcType=TIMESTAMP} ,INSERT_UPDATE_REMARK= when #{item.gatepostId,jdbcType=DECIMAL} then #{item.insertUpdateRemark,jdbcType=VARCHAR} ,DELETED= when #{item.rulesId,jdbcType=DECIMAL} then #{item.deleted,jdbcType=DECIMAL} where GATEPOST_ID in #{item.gatepostId,jdbcType=DECIMAL} delete from RMS_GATEPOST where GATEPOST_ID in #{id}