ORDER_MATERIAL_ID, ORDER_ID, MATERIAL_ID, ORDER_MATERIAL_NUMBER, ORDER_MATERIAL_WEIGHT, INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK, MATERIAL_DIRECTION, MATERIAL_PRIORITY, MATERIAL_MEASSION, MATERIAL_LUNO t.ORDER_MATERIAL_ID, t.ORDER_ID, t.MATERIAL_ID, t.ORDER_MATERIAL_NUMBER, t.ORDER_MATERIAL_WEIGHT, t.INSERT_USERNAME, t.INSERT_TIME, t.UPDATE_USERNAME, t.UPDATE_TIME, t.INSERT_UPDATE_REMARK, t.MATERIAL_DIRECTION, t.MATERIAL_PRIORITY, t.MATERIAL_MEASSION, t.MATERIAL_LUNO SELECT FROM OMSTRUCK_ORDER_MATERIAL SELECT FROM OMSTRUCK_ORDER_MATERIAL t and ORDER_MATERIAL_ID = #{orderMaterialId} and ORDER_ID = #{orderId} and MATERIAL_ID = #{materialId} and ORDER_MATERIAL_NUMBER = #{orderMaterialNumber} and ORDER_MATERIAL_WEIGHT = #{orderMaterialWeight} 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 MATERIAL_DIRECTION = #{materialDirection} and MATERIAL_PRIORITY = #{materialPriority} and MATERIAL_MEASSION = #{materialMeassion} and MATERIAL_LUNO = #{materialLuno} and ORDER_MATERIAL_ID = #{orderMaterialId} and ORDER_ID = #{orderId} and MATERIAL_ID = #{materialId} and ORDER_MATERIAL_NUMBER = #{orderMaterialNumber} and ORDER_MATERIAL_WEIGHT = #{orderMaterialWeight} 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 MATERIAL_DIRECTION = #{materialDirection} and MATERIAL_PRIORITY = #{materialPriority} and MATERIAL_MEASSION = #{materialMeassion} and MATERIAL_LUNO LIKE '%${materialLuno}%' delete from OMSTRUCK_ORDER_MATERIAL where ORDER_MATERIAL_ID = #{orderMaterialId,jdbcType=DECIMAL} delete from OMSTRUCK_ORDER_MATERIAL where 1!=1 or ORDER_ID = #{orderId} or MATERIAL_ID = #{materialId} or ORDER_MATERIAL_NUMBER = #{orderMaterialNumber} or ORDER_MATERIAL_WEIGHT = #{orderMaterialWeight} 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 MATERIAL_DIRECTION = #{materialDirection} or MATERIAL_PRIORITY = #{materialPriority} or MATERIAL_MEASSION = #{materialMeassion} or MATERIAL_LUNO = #{materialLuno} insert into OMSTRUCK_ORDER_MATERIAL (ORDER_MATERIAL_ID, ORDER_ID, MATERIAL_ID, ORDER_MATERIAL_NUMBER, ORDER_MATERIAL_WEIGHT, INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK, MATERIAL_DIRECTION, MATERIAL_PRIORITY, MATERIAL_MEASSION, MATERIAL_LUNO ) values (#{orderMaterialId,jdbcType=DECIMAL}, #{orderId,jdbcType=DECIMAL}, #{materialId,jdbcType=DECIMAL}, #{orderMaterialNumber,jdbcType=DECIMAL}, #{orderMaterialWeight,jdbcType=DECIMAL}, #{insertUsername,jdbcType=VARCHAR}, #{insertTime,jdbcType=TIMESTAMP}, #{updateUsername,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{insertUpdateRemark,jdbcType=VARCHAR}, #{materialDirection,jdbcType=DECIMAL}, #{materialPriority,jdbcType=DECIMAL}, #{materialMeassion,jdbcType=DECIMAL}, #{materialLuno,jdbcType=VARCHAR} ) insert into OMSTRUCK_ORDER_MATERIAL ORDER_MATERIAL_ID, ORDER_ID, MATERIAL_ID, ORDER_MATERIAL_NUMBER, ORDER_MATERIAL_WEIGHT, INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK, MATERIAL_DIRECTION, MATERIAL_PRIORITY, MATERIAL_MEASSION, MATERIAL_LUNO, #{orderMaterialId,jdbcType=DECIMAL}, #{orderId,jdbcType=DECIMAL}, #{materialId,jdbcType=DECIMAL}, #{orderMaterialNumber,jdbcType=DECIMAL}, #{orderMaterialWeight,jdbcType=DECIMAL}, #{insertUsername,jdbcType=VARCHAR}, #{insertTime,jdbcType=TIMESTAMP}, #{updateUsername,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{insertUpdateRemark,jdbcType=VARCHAR}, #{materialDirection,jdbcType=DECIMAL}, #{materialPriority,jdbcType=DECIMAL}, #{materialMeassion,jdbcType=DECIMAL}, #{materialLuno,jdbcType=VARCHAR}, update OMSTRUCK_ORDER_MATERIAL set ORDER_ID = #{orderId,jdbcType=DECIMAL}, MATERIAL_ID = #{materialId,jdbcType=DECIMAL}, ORDER_MATERIAL_NUMBER = #{orderMaterialNumber,jdbcType=DECIMAL}, ORDER_MATERIAL_WEIGHT = #{orderMaterialWeight,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}, MATERIAL_DIRECTION = #{materialDirection,jdbcType=DECIMAL}, MATERIAL_PRIORITY = #{materialPriority,jdbcType=DECIMAL}, MATERIAL_MEASSION = #{materialMeassion,jdbcType=DECIMAL}, MATERIAL_LUNO = #{materialLuno,jdbcType=VARCHAR} where ORDER_MATERIAL_ID = #{orderMaterialId,jdbcType=DECIMAL} update OMSTRUCK_ORDER_MATERIAL ORDER_ID = #{orderId,jdbcType=DECIMAL}, MATERIAL_ID = #{materialId,jdbcType=DECIMAL}, ORDER_MATERIAL_NUMBER = #{orderMaterialNumber,jdbcType=DECIMAL}, ORDER_MATERIAL_WEIGHT = #{orderMaterialWeight,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}, MATERIAL_DIRECTION = #{materialDirection,jdbcType=DECIMAL}, MATERIAL_PRIORITY = #{materialPriority,jdbcType=DECIMAL}, MATERIAL_MEASSION = #{materialMeassion,jdbcType=DECIMAL}, MATERIAL_LUNO = #{materialLuno,jdbcType=VARCHAR}, where ORDER_MATERIAL_ID = #{orderMaterialId,jdbcType=DECIMAL} insert into OMSTRUCK_ORDER_MATERIAL (ORDER_MATERIAL_ID, ORDER_ID, MATERIAL_ID, ORDER_MATERIAL_NUMBER, ORDER_MATERIAL_WEIGHT, INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK, MATERIAL_DIRECTION, MATERIAL_PRIORITY, MATERIAL_MEASSION, MATERIAL_LUNO ) ( select #{item.orderMaterialId,jdbcType=DECIMAL}, #{item.orderId,jdbcType=DECIMAL}, #{item.materialId,jdbcType=DECIMAL}, #{item.orderMaterialNumber,jdbcType=DECIMAL}, #{item.orderMaterialWeight,jdbcType=DECIMAL}, #{item.insertUsername,jdbcType=VARCHAR}, #{item.insertTime,jdbcType=TIMESTAMP}, #{item.updateUsername,jdbcType=VARCHAR}, #{item.updateTime,jdbcType=TIMESTAMP}, #{item.insertUpdateRemark,jdbcType=VARCHAR}, #{item.materialDirection,jdbcType=DECIMAL}, #{item.materialPriority,jdbcType=DECIMAL}, #{item.materialMeassion,jdbcType=DECIMAL}, #{item.materialLuno,jdbcType=VARCHAR} from dual ) update OMSTRUCK_ORDER_MATERIAL set ORDER_MATERIAL_ID= when #{item.orderMaterialId,jdbcType=DECIMAL} then #{item.orderMaterialId,jdbcType=DECIMAL} ,ORDER_ID= when #{item.orderMaterialId,jdbcType=DECIMAL} then #{item.orderId,jdbcType=DECIMAL} ,MATERIAL_ID= when #{item.orderMaterialId,jdbcType=DECIMAL} then #{item.materialId,jdbcType=DECIMAL} ,ORDER_MATERIAL_NUMBER= when #{item.orderMaterialId,jdbcType=DECIMAL} then #{item.orderMaterialNumber,jdbcType=DECIMAL} ,ORDER_MATERIAL_WEIGHT= when #{item.orderMaterialId,jdbcType=DECIMAL} then #{item.orderMaterialWeight,jdbcType=DECIMAL} ,INSERT_USERNAME= when #{item.orderMaterialId,jdbcType=DECIMAL} then #{item.insertUsername,jdbcType=VARCHAR} ,INSERT_TIME= when #{item.orderMaterialId,jdbcType=DECIMAL} then #{item.insertTime,jdbcType=TIMESTAMP} ,UPDATE_USERNAME= when #{item.orderMaterialId,jdbcType=DECIMAL} then #{item.updateUsername,jdbcType=VARCHAR} ,UPDATE_TIME= when #{item.orderMaterialId,jdbcType=DECIMAL} then #{item.updateTime,jdbcType=TIMESTAMP} ,INSERT_UPDATE_REMARK= when #{item.orderMaterialId,jdbcType=DECIMAL} then #{item.insertUpdateRemark,jdbcType=VARCHAR} ,MATERIAL_DIRECTION= when #{item.orderMaterialId,jdbcType=DECIMAL} then #{item.materialDirection,jdbcType=DECIMAL} ,MATERIAL_PRIORITY= when #{item.orderMaterialId,jdbcType=DECIMAL} then #{item.materialPriority,jdbcType=DECIMAL} ,MATERIAL_MEASSION= when #{item.orderMaterialId,jdbcType=DECIMAL} then #{item.materialMeassion,jdbcType=DECIMAL} ,MATERIAL_LUNO= when #{item.orderMaterialId,jdbcType=DECIMAL} then #{item.materialLuno,jdbcType=VARCHAR} where ORDER_MATERIAL_ID in #{item.orderMaterialId,jdbcType=DECIMAL} delete from OMSTRUCK_ORDER_MATERIAL where ORDER_MATERIAL_ID in #{id}