GRID_ID, WAREHOUSE_ID, PLATFORM_ID, STACKING_ID, GRID_GRADATION_NUMBER, INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK, GRID_SEQUENCE_NUMBER t.GRID_ID, t.WAREHOUSE_ID, t.PLATFORM_ID, t.STACKING_ID, t.GRID_GRADATION_NUMBER, t.INSERT_USERNAME, t.INSERT_TIME, t.UPDATE_USERNAME, t.UPDATE_TIME, t.INSERT_UPDATE_REMARK, t.GRID_SEQUENCE_NUMBER SELECT FROM RMS_PWAREHOUSE_GRID SELECT FROM RMS_PWAREHOUSE_GRID t and GRID_ID = #{gridId} and WAREHOUSE_ID = #{warehouseId} and PLATFORM_ID = #{platformId} and STACKING_ID = #{stackingId} and GRID_GRADATION_NUMBER = #{gridGradationNumber} 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 GRID_SEQUENCE_NUMBER = #{gridSequenceNumber} and GRID_ID = #{gridId} and WAREHOUSE_ID = #{warehouseId} and PLATFORM_ID = #{platformId} and STACKING_ID = #{stackingId} and GRID_GRADATION_NUMBER = #{gridGradationNumber} 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 GRID_SEQUENCE_NUMBER = #{gridSequenceNumber} delete from RMS_PWAREHOUSE_GRID where GRID_ID = #{gridId,jdbcType=DECIMAL} delete from RMS_PWAREHOUSE_GRID where 1!=1 or PLATFORM_ID = #{platformId} or STACKING_ID = #{stackingId} or GRID_GRADATION_NUMBER = #{gridGradationNumber} 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 GRID_SEQUENCE_NUMBER = #{gridSequenceNumber} insert into RMS_PWAREHOUSE_GRID (GRID_ID, WAREHOUSE_ID, PLATFORM_ID, STACKING_ID, GRID_GRADATION_NUMBER, INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK, GRID_SEQUENCE_NUMBER) values (#{gridId,jdbcType=DECIMAL}, #{warehouseId,jdbcType=DECIMAL}, #{platformId,jdbcType=DECIMAL}, #{stackingId,jdbcType=DECIMAL}, #{gridGradationNumber,jdbcType=DECIMAL}, #{insertUsername,jdbcType=VARCHAR}, #{insertTime,jdbcType=TIMESTAMP}, #{updateUsername,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{insertUpdateRemark,jdbcType=VARCHAR}, #{gridSequenceNumber,jdbcType=DECIMAL}) insert into RMS_PWAREHOUSE_GRID GRID_ID, WAREHOUSE_ID, PLATFORM_ID, STACKING_ID, GRID_GRADATION_NUMBER, INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK, GRID_SEQUENCE_NUMBER, #{gridId,jdbcType=DECIMAL}, #{warehouseId,jdbcType=DECIMAL}, #{platformId,jdbcType=DECIMAL}, #{stackingId,jdbcType=DECIMAL}, #{gridGradationNumber,jdbcType=DECIMAL}, #{insertUsername,jdbcType=VARCHAR}, #{insertTime,jdbcType=TIMESTAMP}, #{updateUsername,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{insertUpdateRemark,jdbcType=VARCHAR}, #{gridSequenceNumber,jdbcType=DECIMAL}, update RMS_PWAREHOUSE_GRID set WAREHOUSE_ID = #{warehouseId,jdbcType=DECIMAL}, PLATFORM_ID = #{platformId,jdbcType=DECIMAL}, STACKING_ID = #{stackingId,jdbcType=DECIMAL}, GRID_GRADATION_NUMBER = #{gridGradationNumber,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}, GRID_SEQUENCE_NUMBER = #{gridSequenceNumber,jdbcType=DECIMAL} where GRID_ID = #{gridId,jdbcType=DECIMAL} update RMS_PWAREHOUSE_GRID WAREHOUSE_ID = #{warehouseId,jdbcType=DECIMAL}, PLATFORM_ID = #{platformId,jdbcType=DECIMAL}, STACKING_ID = #{stackingId,jdbcType=DECIMAL}, GRID_GRADATION_NUMBER = #{gridGradationNumber,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}, GRID_SEQUENCE_NUMBER = #{gridSequenceNumber,jdbcType=DECIMAL}, where GRID_ID = #{gridId,jdbcType=DECIMAL} insert into RMS_PWAREHOUSE_GRID (GRID_ID, WAREHOUSE_ID, PLATFORM_ID, STACKING_ID, GRID_GRADATION_NUMBER, INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK, GRID_SEQUENCE_NUMBER) ( select #{item.gridId,jdbcType=DECIMAL}, #{item.warehouseId,jdbcType=DECIMAL}, #{item.platformId,jdbcType=DECIMAL}, #{item.stackingId,jdbcType=DECIMAL}, #{item.gridGradationNumber,jdbcType=DECIMAL}, #{item.insertUsername,jdbcType=VARCHAR}, #{item.insertTime,jdbcType=TIMESTAMP}, #{item.updateUsername,jdbcType=VARCHAR}, #{item.updateTime,jdbcType=TIMESTAMP}, #{item.insertUpdateRemark,jdbcType=VARCHAR}, #{item.gridSequenceNumber,jdbcType=DECIMAL} from dual ) update RMS_PWAREHOUSE_GRID set GRID_ID= when #{item.gridId,jdbcType=DECIMAL} then #{item.gridId,jdbcType=DECIMAL} ,WAREHOUSE_ID= when #{item.gridId,jdbcType=DECIMAL} then #{item.warehouseId,jdbcType=DECIMAL} ,PLATFORM_ID= when #{item.gridId,jdbcType=DECIMAL} then #{item.platformId,jdbcType=DECIMAL} ,STACKING_ID= when #{item.gridId,jdbcType=DECIMAL} then #{item.stackingId,jdbcType=DECIMAL} ,GRID_GRADATION_NUMBER= when #{item.gridId,jdbcType=DECIMAL} then #{item.gridGradationNumber,jdbcType=DECIMAL} ,INSERT_USERNAME= when #{item.gridId,jdbcType=DECIMAL} then #{item.insertUsername,jdbcType=VARCHAR} ,INSERT_TIME= when #{item.gridId,jdbcType=DECIMAL} then #{item.insertTime,jdbcType=TIMESTAMP} ,UPDATE_USERNAME= when #{item.gridId,jdbcType=DECIMAL} then #{item.updateUsername,jdbcType=VARCHAR} ,UPDATE_TIME= when #{item.gridId,jdbcType=DECIMAL} then #{item.updateTime,jdbcType=TIMESTAMP} ,INSERT_UPDATE_REMARK= when #{item.gridId,jdbcType=DECIMAL} then #{item.insertUpdateRemark,jdbcType=VARCHAR} ,GRID_SEQUENCE_NUMBER= when #{item.gridId,jdbcType=DECIMAL} then #{item.gridSequenceNumber,jdbcType=DECIMAL} where GRID_ID in #{item.gridId,jdbcType=DECIMAL} delete from RMS_PWAREHOUSE_GRID where GRID_ID in #{id}