select asn_same_sku, asn_same_sku_type, asn_same_lotatt1_flag, asn_same_lotatt1_value, asn_same_lotatt2_flag, asn_same_lotatt2_value, asn_location_average, so_period_flag, so_same_lotatt1_flag, so_same_lotatt1_value, so_outer_flag, so_location_average, so_period_lotatt from asn_so_strategy insert into asn_so_strategy asn_same_sku, asn_same_sku_type, asn_same_lotatt1_flag, asn_same_lotatt1_value, asn_same_lotatt2_flag, asn_same_lotatt2_value, asn_location_average, so_period_flag, so_same_lotatt1_flag, so_same_lotatt1_value, so_outer_flag, so_location_average, #{asnSameSku}, #{asnSameSkuType}, #{asnSameLotatt1Flag}, #{asnSameLotatt1Value}, #{asnSameLotatt2Flag}, #{asnSameLotatt2Value}, #{asnLocationAverage}, #{soPeriodFlag}, #{soSameLotatt1Flag}, #{soSameLotatt1Value}, #{soOuterFlag}, #{soLocationAverage}, update asn_so_strategy asn_same_sku = #{asnSameSku}, asn_same_sku_type = #{asnSameSkuType}, asn_same_lotatt1_flag = #{asnSameLotatt1Flag}, asn_same_lotatt1_value = #{asnSameLotatt1Value}, asn_same_lotatt2_flag = #{asnSameLotatt2Flag}, asn_same_lotatt2_value = #{asnSameLotatt2Value}, asn_location_average = #{asnLocationAverage}, so_period_flag = #{soPeriodFlag}, so_same_lotatt1_flag = #{soSameLotatt1Flag}, so_same_lotatt1_value = #{soSameLotatt1Value}, so_outer_flag = #{soOuterFlag}, so_location_average = #{soLocationAverage}, where id = 'default' delete from asn_so_strategy where asn_same_sku = #{asnSameSku} delete from asn_so_strategy where asn_same_sku in #{asnSameSku}