id, master_id, order_id, ref_order_id, total_amount, product_id, cover_img, is_sku,pack_fee,is_pack,is_gift,pending_at, sku_id, name, sale_price, number, total_number, refund_number, category_id, status, type, merchant_id, shop_id, created_at, updated_at, user_id, table_id,pack_fee,trade_day,uuid delete from tb_cashier_cart where id = #{id,jdbcType=INTEGER} delete from tb_cashier_cart where id = #{cartId} and master_id = #{masterId} delete from tb_cashier_cart where master_id = #{masterId} and shop_id = #{shopId} and status = #{status} and trade_day = #{day} and uuid = #{uuid} insert into tb_cashier_cart (id, master_id, order_id, ref_order_id, total_amount, product_id, cover_img, is_sku, sku_id, name, sale_price, number, total_number, refund_number, category_id, status, type, merchant_id, shop_id, created_at, updated_at, pack_fee,trade_day,is_pack,is_gift,uuid ) values (#{id,jdbcType=INTEGER}, #{masterId,jdbcType=VARCHAR}, #{orderId,jdbcType=VARCHAR}, #{refOrderId,jdbcType=VARCHAR}, #{totalAmount,jdbcType=DECIMAL}, #{productId,jdbcType=VARCHAR}, #{coverImg,jdbcType=VARCHAR}, #{isSku,jdbcType=TINYINT}, #{skuId,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{salePrice,jdbcType=DECIMAL}, #{number,jdbcType=REAL}, #{totalNumber,jdbcType=REAL}, #{refundNumber,jdbcType=REAL}, #{categoryId,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR}, #{type,jdbcType=TINYINT}, #{merchantId,jdbcType=VARCHAR}, #{shopId,jdbcType=VARCHAR}, #{createdAt,jdbcType=BIGINT}, #{updatedAt,jdbcType=BIGINT}, #{packFee,jdbcType=DECIMAL} , #{tradeDay,jdbcType=VARCHAR}, #{isPack,jdbcType=VARCHAR}, #{isGift,jdbcType=VARCHAR}, #{uuid,jdbcType=VARCHAR} ) insert into tb_cashier_cart id, master_id, order_id, ref_order_id, total_amount, product_id, cover_img, is_sku, sku_id, name, sale_price, number, total_number, refund_number, category_id, status, type, merchant_id, shop_id, created_at, updated_at, #{id,jdbcType=INTEGER}, #{masterId,jdbcType=VARCHAR}, #{orderId,jdbcType=VARCHAR}, #{refOrderId,jdbcType=VARCHAR}, #{totalAmount,jdbcType=DECIMAL}, #{productId,jdbcType=VARCHAR}, #{coverImg,jdbcType=VARCHAR}, #{isSku,jdbcType=TINYINT}, #{skuId,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{salePrice,jdbcType=DECIMAL}, #{number,jdbcType=REAL}, #{totalNumber,jdbcType=REAL}, #{refundNumber,jdbcType=REAL}, #{categoryId,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR}, #{type,jdbcType=TINYINT}, #{merchantId,jdbcType=VARCHAR}, #{shopId,jdbcType=VARCHAR}, #{createdAt,jdbcType=BIGINT}, #{updatedAt,jdbcType=BIGINT}, update tb_cashier_cart master_id = #{masterId,jdbcType=VARCHAR}, order_id = #{orderId,jdbcType=VARCHAR}, ref_order_id = #{refOrderId,jdbcType=VARCHAR}, total_amount = #{totalAmount,jdbcType=DECIMAL}, product_id = #{productId,jdbcType=VARCHAR}, cover_img = #{coverImg,jdbcType=VARCHAR}, is_sku = #{isSku,jdbcType=TINYINT}, sku_id = #{skuId,jdbcType=VARCHAR}, name = #{name,jdbcType=VARCHAR}, sale_price = #{salePrice,jdbcType=DECIMAL}, pack_fee = #{packFee,jdbcType=DECIMAL}, number = #{number,jdbcType=REAL}, total_number = #{totalNumber,jdbcType=REAL}, refund_number = #{refundNumber,jdbcType=REAL}, category_id = #{categoryId,jdbcType=VARCHAR}, status = #{status,jdbcType=VARCHAR}, type = #{type,jdbcType=TINYINT}, merchant_id = #{merchantId,jdbcType=VARCHAR}, shop_id = #{shopId,jdbcType=VARCHAR}, created_at = #{createdAt,jdbcType=BIGINT}, updated_at = #{updatedAt,jdbcType=BIGINT}, pending_at = #{pendingAt,jdbcType=BIGINT}, is_gift = #{isGift,jdbcType=BIGINT}, is_pack = #{isPack,jdbcType=VARCHAR}, uuid = #{uuid,jdbcType=VARCHAR}, table_id = #{tableId,jdbcType=VARCHAR}, where id = #{id,jdbcType=INTEGER} update tb_cashier_cart set master_id = #{masterId,jdbcType=VARCHAR}, order_id = #{orderId,jdbcType=VARCHAR}, ref_order_id = #{refOrderId,jdbcType=VARCHAR}, total_amount = #{totalAmount,jdbcType=DECIMAL}, product_id = #{productId,jdbcType=VARCHAR}, cover_img = #{coverImg,jdbcType=VARCHAR}, is_sku = #{isSku,jdbcType=TINYINT}, sku_id = #{skuId,jdbcType=VARCHAR}, name = #{name,jdbcType=VARCHAR}, sale_price = #{salePrice,jdbcType=DECIMAL}, number = #{number,jdbcType=REAL}, total_number = #{totalNumber,jdbcType=REAL}, refund_number = #{refundNumber,jdbcType=REAL}, category_id = #{categoryId,jdbcType=VARCHAR}, status = #{status,jdbcType=VARCHAR}, type = #{type,jdbcType=TINYINT}, merchant_id = #{merchantId,jdbcType=VARCHAR}, shop_id = #{shopId,jdbcType=VARCHAR}, created_at = #{createdAt,jdbcType=BIGINT}, updated_at = #{updatedAt,jdbcType=BIGINT} where id = #{id,jdbcType=INTEGER} update tb_cashier_cart set status = #{status} where id = #{id} update tb_cashier_cart set status = #{status} , uuid = #{uuid}where shop_id = #{shopId} and master_id = #{masterId} and trade_day = #{day} and status = 'refund' update tb_cashier_cart set `status`=#{status} where order_id=#{orderId} and `status`='create' update tb_cashier_cart set is_pack = #{status} where master_id = #{maskerId} and trade_day = #{day} and shop_id = #{shopId}