GM_ID, MATERIAL_ID, GRID_ID, GM_NUMBER, GM_WEIGHT, INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK, DELETED, STANDARD_DATA_ID, STATUS t.GM_ID, t.MATERIAL_ID, t.GRID_ID, t.GM_NUMBER, t.GM_WEIGHT, t.INSERT_USERNAME, t.INSERT_TIME, t.UPDATE_USERNAME, t.UPDATE_TIME, t.INSERT_UPDATE_REMARK, t.DELETED, t.STANDARD_DATA_ID, t.STATUS SELECT FROM WMSP_GRID_MATERIAL SELECT FROM WMSP_GRID_MATERIAL t and GM_ID = #{gmId} and MATERIAL_ID = #{materialId} and GRID_ID = #{gridId} and GM_NUMBER = #{gmNumber} and GM_WEIGHT = #{gmWeight} 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 STANDARD_DATA_ID = #{standardDataId} and STATUS = #{status} and GM_ID = #{gmId} and MATERIAL_ID = #{materialId} and GRID_ID = #{gridId} and GM_NUMBER = #{gmNumber} and GM_WEIGHT = #{gmWeight} 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 STANDARD_DATA_ID = #{standardDataId} and STATUS = #{status} delete from WMSP_GRID_MATERIAL where GM_ID = #{gmId,jdbcType=DECIMAL} delete from WMSP_GRID_MATERIAL where 1!=1 or MATERIAL_ID = #{materialId} or GRID_ID = #{gridId} or GM_NUMBER = #{gmNumber} or GM_WEIGHT = #{gmWeight} 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 STANDARD_DATA_ID = #{standardDataId} or STATUS = #{status} insert into WMSP_GRID_MATERIAL (GM_ID, MATERIAL_ID, GRID_ID, GM_NUMBER, GM_WEIGHT, INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK, DELETED, STANDARD_DATA_ID, STATUS) values (#{gmId,jdbcType=DECIMAL}, #{materialId,jdbcType=DECIMAL}, #{gridId,jdbcType=DECIMAL}, #{gmNumber,jdbcType=DECIMAL}, #{gmWeight,jdbcType=DECIMAL}, #{insertUsername,jdbcType=VARCHAR}, #{insertTime,jdbcType=TIMESTAMP}, #{updateUsername,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{insertUpdateRemark,jdbcType=VARCHAR}, #{deleted,jdbcType=DECIMAL}, #{standardDataId,jdbcType=DECIMAL}, #{status,jdbcType=DECIMAL}) insert into WMSP_GRID_MATERIAL GM_ID, MATERIAL_ID, GRID_ID, GM_NUMBER, GM_WEIGHT, INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK, DELETED, STANDARD_DATA_ID, STATUS, #{gmId,jdbcType=DECIMAL}, #{materialId,jdbcType=DECIMAL}, #{gridId,jdbcType=DECIMAL}, #{gmNumber,jdbcType=DECIMAL}, #{gmWeight,jdbcType=DECIMAL}, #{insertUsername,jdbcType=VARCHAR}, #{insertTime,jdbcType=TIMESTAMP}, #{updateUsername,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{insertUpdateRemark,jdbcType=VARCHAR}, #{deleted,jdbcType=DECIMAL}, #{standardDataId,jdbcType=DECIMAL}, #{status,jdbcType=DECIMAL}, update WMSP_GRID_MATERIAL set MATERIAL_ID = #{materialId,jdbcType=DECIMAL}, GRID_ID = #{gridId,jdbcType=DECIMAL}, GM_NUMBER = #{gmNumber,jdbcType=DECIMAL}, GM_WEIGHT = #{gmWeight,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}, STANDARD_DATA_ID = #{standardDataId,jdbcType=DECIMAL}, STATUS = #{status,jdbcType=DECIMAL} where GM_ID = #{gmId,jdbcType=DECIMAL} update WMSP_GRID_MATERIAL MATERIAL_ID = #{materialId,jdbcType=DECIMAL}, GRID_ID = #{gridId,jdbcType=DECIMAL}, GM_NUMBER = #{gmNumber,jdbcType=DECIMAL}, GM_WEIGHT = #{gmWeight,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}, STANDARD_DATA_ID = #{standardDataId,jdbcType=DECIMAL}, STATUS = #{status,jdbcType=DECIMAL}, where GM_ID = #{gmId,jdbcType=DECIMAL} insert into WMSP_GRID_MATERIAL (GM_ID, MATERIAL_ID, GRID_ID, GM_NUMBER, GM_WEIGHT, INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK, DELETED, STANDARD_DATA_ID, STATUS) ( select #{item.gmId,jdbcType=DECIMAL}, #{item.materialId,jdbcType=DECIMAL}, #{item.gridId,jdbcType=DECIMAL}, #{item.gmNumber,jdbcType=DECIMAL}, #{item.gmWeight,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}, #{item.standardDataId,jdbcType=DECIMAL}, #{item.status,jdbcType=DECIMAL} from dual ) update WMSP_GRID_MATERIAL set GM_ID= when #{item.gmId,jdbcType=DECIMAL} then #{item.gmId,jdbcType=DECIMAL} ,MATERIAL_ID= when #{item.gmId,jdbcType=DECIMAL} then #{item.materialId,jdbcType=DECIMAL} ,GRID_ID= when #{item.gmId,jdbcType=DECIMAL} then #{item.gridId,jdbcType=DECIMAL} ,GM_NUMBER= when #{item.gmId,jdbcType=DECIMAL} then #{item.gmNumber,jdbcType=DECIMAL} ,GM_WEIGHT= when #{item.gmId,jdbcType=DECIMAL} then #{item.gmWeight,jdbcType=DECIMAL} ,INSERT_USERNAME= when #{item.gmId,jdbcType=DECIMAL} then #{item.insertUsername,jdbcType=VARCHAR} ,INSERT_TIME= when #{item.gmId,jdbcType=DECIMAL} then #{item.insertTime,jdbcType=TIMESTAMP} ,UPDATE_USERNAME= when #{item.gmId,jdbcType=DECIMAL} then #{item.updateUsername,jdbcType=VARCHAR} ,UPDATE_TIME= when #{item.gmId,jdbcType=DECIMAL} then #{item.updateTime,jdbcType=TIMESTAMP} ,INSERT_UPDATE_REMARK= when #{item.gmId,jdbcType=DECIMAL} then #{item.insertUpdateRemark,jdbcType=VARCHAR} ,DELETED= when #{item.gmId,jdbcType=DECIMAL} then #{item.deleted,jdbcType=DECIMAL} ,STANDARD_DATA_ID= when #{item.gmId,jdbcType=DECIMAL} then #{item.standardDataId,jdbcType=DECIMAL} ,STATUS= when #{item.gmId,jdbcType=DECIMAL} then #{item.status,jdbcType=DECIMAL} where GM_ID in #{item.gmId,jdbcType=DECIMAL} delete from WMSP_GRID_MATERIAL where GM_ID in #{id} update RMS_MATERIAL_STEEL set MATERIAL_QUALIFIED = #{materialQualified},DELETED = 0 where MATERIAL_STEEL_ID = #{materialSteelId} update WMSP_INBOUND_CORRECT_RESULT set RESULT_DELETED = 0 where INBOUND_RESULT_ID = #{inboundId} update WMSP_INBOUND_DRIVING_RESULT set RESULT_DELETED = 0 where INBOUND_RESULT_ID = #{inboundId} update WMSP_INBOUND_SCAN_RESULT set RESULT_DELETED = 0 where INBOUND_RESULT_ID = #{inboundId} update WMSP_INBOUND_STACK_RESULT set RESULT_DELETED = 0 where INBOUND_RESULT_ID = #{inboundId} update WMSP_GRID_MATERIAL WGM set WGM.DELETED = 1,UPDATE_TIME = #{updateTime} where WGM.MATERIAL_ID = #{materialSteelId} UPDATE WMSP_GRID_MATERIAL WGM SET WGM.DELETED = 1 WHERE WGM.GRID_ID = ( SELECT RPG.GRID_ID FROM RMS_PWAREHOUSE_GRID RPG WHERE RPG.STACKING_ID = #{ orderId } ) update WMSP_GRID_MATERIAL WGM set WGM.DELETED = 1,UPDATE_TIME = #{now} where WGM.MATERIAL_ID in #{item.materialSteelId}