create_by, create_time, update_by, update_time, attr_id, parent_id, attr_name, attr_url, attr_code, attr_mark, sort, shop_id, company_id #{item.createBy}, now(), #{item.updateBy}, now(), #{item.attrId}, #{item.parentId}, #{item.attrName}, #{item.attrUrl}, #{item.attrCode}, #{item.attrMark}, #{item.sort}, #{item.shopId}, #{item.companyId} and attr_id = #{record.attrId} and parent_id = #{record.parentId} and attr_name = #{record.attrName} and attr_url = #{record.attrUrl} and attr_code = #{record.attrCode} and attr_mark = #{record.attrMark} and sort = #{record.sort} and (shop_id = #{record.shopId}) and company_id = #{record.companyId} INSERT INTO shop_product_attribute ( ) VALUES ( ) INSERT INTO shop_product_attribute ( ) VALUES ( ) UPDATE shop_product_attribute parent_id = #{parentId}, attr_name = #{attrName}, attr_url = #{attrUrl}, attr_code = #{attrCode}, attr_mark = #{attrMark}, sort = #{sort}, WHERE attr_id=#{attrId} UPDATE shop_product_attribute parent_id = #{record.parentId}, attr_name = #{record.attrName}, attr_url = #{record.attrUrl}, attr_code = #{record.attrCode}, attr_mark = #{record.attrMark}, sort = #{record.sort}, WHERE attr_id=#{record.attrId} delete from shop_product_attribute where attr_id in #{item} DELETE FROM shop_product_attribute where attr_id=#{attrId} DELETE FROM shop_product_attribute