select thisTab.id, thisTab.customer_id, thisTab.customer, thisTab.product_code, thisTab.product_name, thisTab.gross_weight, thisTab.net_weight, thisTab.volume, thisTab.spec_model, thisTab.product_type, thisTab.pack_unit, thisTab.pack_length, thisTab.pack_width, thisTab.pack_height, thisTab.temperature_required, thisTab.max_temperature, thisTab.min_temperature, thisTab.max_humidity, thisTab.min_humidity, thisTab.is_hazardous, thisTab.status, thisTab.create_by, thisTab.create_time, thisTab.update_by, thisTab.update_time, thisTab.remark from tms_product_info AS thisTab select count(0) from tms_product_info as thisTab and thisTab.customer_id = #{customerId} and thisTab.customer = #{customer} and thisTab.product_code = #{productCode} and thisTab.status = #{status} insert into tms_product_info customer_id, customer, product_code, product_name, gross_weight, net_weight, volume, spec_model, product_type, pack_unit, pack_length, pack_width, pack_height, temperature_required, max_temperature, min_temperature, max_humidity, min_humidity, is_hazardous, status, create_by, create_time, update_by, update_time, remark, #{customerId}, #{customer}, #{productCode}, #{productName}, #{grossWeight}, #{netWeight}, #{volume}, #{specModel}, #{productType}, #{packUnit}, #{packLength}, #{packWidth}, #{packHeight}, #{temperatureRequired}, #{maxTemperature}, #{minTemperature}, #{maxHumidity}, #{minHumidity}, #{isHazardous}, #{status}, #{createBy}, #{createTime}, #{updateBy}, #{updateTime}, #{remark}, insert into tms_product_info id,customer_id,customer,product_code,product_name,gross_weight,net_weight,volume,spec_model,product_type,pack_unit,pack_length,pack_width,pack_height,temperature_required,max_temperature,min_temperature,max_humidity,min_humidity,is_hazardous,status,create_by,create_time,update_by,update_time,remark, #{item.id},#{item.customerId},#{item.customer},#{item.productCode},#{item.productName},#{item.grossWeight},#{item.netWeight},#{item.volume},#{item.specModel},#{item.productType},#{item.packUnit},#{item.packLength},#{item.packWidth},#{item.packHeight},#{item.temperatureRequired},#{item.maxTemperature},#{item.minTemperature},#{item.maxHumidity},#{item.minHumidity},#{item.isHazardous},#{item.status},#{item.createBy},#{item.createTime},#{item.updateBy},#{item.updateTime},#{item.remark}, update tms_product_info customer_id = #{customerId}, customer = #{customer}, product_code = #{productCode}, product_name = #{productName}, gross_weight = #{grossWeight}, net_weight = #{netWeight}, volume = #{volume}, spec_model = #{specModel}, product_type = #{productType}, pack_unit = #{packUnit}, pack_length = #{packLength}, pack_width = #{packWidth}, pack_height = #{packHeight}, temperature_required = #{temperatureRequired}, max_temperature = #{maxTemperature}, min_temperature = #{minTemperature}, max_humidity = #{maxHumidity}, min_humidity = #{minHumidity}, is_hazardous = #{isHazardous}, status = #{status}, create_by = #{createBy}, create_time = #{createTime}, update_by = #{updateBy}, update_time = #{updateTime}, remark = #{remark}, where id = #{id} update tms_product_info customer_id = #{item.customerId}, customer = #{item.customer}, product_code = #{item.productCode}, product_name = #{item.productName}, gross_weight = #{item.grossWeight}, net_weight = #{item.netWeight}, volume = #{item.volume}, spec_model = #{item.specModel}, product_type = #{item.productType}, pack_unit = #{item.packUnit}, pack_length = #{item.packLength}, pack_width = #{item.packWidth}, pack_height = #{item.packHeight}, temperature_required = #{item.temperatureRequired}, max_temperature = #{item.maxTemperature}, min_temperature = #{item.minTemperature}, max_humidity = #{item.maxHumidity}, min_humidity = #{item.minHumidity}, is_hazardous = #{item.isHazardous}, status = #{item.status}, create_by = #{item.createBy}, create_time = #{item.createTime}, update_by = #{item.updateBy}, update_time = #{item.updateTime}, remark = #{item.remark}, where id = #{item.id} delete from tms_product_info where id = #{id} delete from tms_product_info where id in #{id}