id, status, delete_time, selected, user_id, spu_id, sku_id, quantity, order_id, order_create_time, create_time INSERT INTO cart_item ( status, delete_time, selected, user_id, spu_id, sku_id, quantity, order_id, order_create_time, create_time ) VALUES ( #{status}, #{deleteTime}, #{selected}, #{userId}, #{spuId}, #{skuId}, #{quantity}, #{orderId}, #{orderCreateTime}, #{createTime} ) UPDATE cart_item status = #{status}, delete_time = #{deleteTime}, selected = #{selected}, quantity = #{quantity}, order_id = #{orderId}, order_create_time = #{orderCreateTime}, price = #{price}, quantity = #{quantity}, WHERE id = #{id} UPDATE cart_item SET quantity = quantity + #{quantityIncr} WHERE id = #{id} UPDATE cart_item selected = #{selected}, status = #{status}, WHERE user_id = #{userId} AND sku_id IN #{skuId} -- AND deleted = 0