id, order_id, shop_id, product_id, product_sku_id, num, product_name, product_sku_name, product_img, create_time, update_time, price, price_amount,status,pack_amount delete from tb_order_detail where id = #{id,jdbcType=INTEGER} delete from tb_order_detail where order_id = #{orderId} insert into tb_order_detail (id, order_id, shop_id, product_id, product_sku_id, num, product_name, product_sku_name, product_img, create_time, update_time, price, price_amount,pack_amount,status) values (#{id,jdbcType=INTEGER}, #{orderId,jdbcType=INTEGER}, #{shopId,jdbcType=INTEGER}, #{productId,jdbcType=INTEGER}, #{productSkuId,jdbcType=INTEGER}, #{num,jdbcType=INTEGER}, #{productName,jdbcType=VARCHAR}, #{productSkuName,jdbcType=VARCHAR}, #{productImg,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{price,jdbcType=DECIMAL}, #{priceAmount,jdbcType=DECIMAL},#{packAmount,jdbcType=DECIMAL},#{status,jdbcType=VARCHAR}) insert into tb_order_detail id, order_id, shop_id, product_id, product_sku_id, num, product_name, product_sku_name, product_img, create_time, update_time, price, price_amount, #{id,jdbcType=INTEGER}, #{orderId,jdbcType=INTEGER}, #{shopId,jdbcType=INTEGER}, #{productId,jdbcType=INTEGER}, #{productSkuId,jdbcType=INTEGER}, #{num,jdbcType=INTEGER}, #{productName,jdbcType=VARCHAR}, #{productSkuName,jdbcType=VARCHAR}, #{productImg,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{price,jdbcType=DECIMAL}, #{priceAmount,jdbcType=DECIMAL}, update tb_order_detail order_id = #{orderId,jdbcType=INTEGER}, shop_id = #{shopId,jdbcType=INTEGER}, product_id = #{productId,jdbcType=INTEGER}, product_sku_id = #{productSkuId,jdbcType=INTEGER}, num = #{num,jdbcType=INTEGER}, product_name = #{productName,jdbcType=VARCHAR}, sstatus = #{sstatus,jdbcType=VARCHAR}, product_sku_name = #{productSkuName,jdbcType=VARCHAR}, product_img = #{productImg,jdbcType=VARCHAR}, create_time = #{createTime,jdbcType=TIMESTAMP}, update_time = #{updateTime,jdbcType=TIMESTAMP}, price = #{price,jdbcType=DECIMAL}, price_amount = #{priceAmount,jdbcType=DECIMAL}, pack_amount = #{packAmount,jdbcType=DECIMAL}, where id = #{id,jdbcType=INTEGER} update tb_order_detail set order_id = #{orderId,jdbcType=INTEGER}, shop_id = #{shopId,jdbcType=INTEGER}, product_id = #{productId,jdbcType=INTEGER}, product_sku_id = #{productSkuId,jdbcType=INTEGER}, num = #{num,jdbcType=INTEGER}, product_name = #{productName,jdbcType=VARCHAR}, product_sku_name = #{productSkuName,jdbcType=VARCHAR}, product_img = #{productImg,jdbcType=VARCHAR}, create_time = #{createTime,jdbcType=TIMESTAMP}, update_time = #{updateTime,jdbcType=TIMESTAMP}, price = #{price,jdbcType=DECIMAL}, price_amount = #{priceAmount,jdbcType=DECIMAL} where id = #{id,jdbcType=INTEGER} update tb_order_detail set status = #{status} where order_id = #{orderId} update tb_order_detail set status= #{item.status} where id = #{item.id} update tb_order_detail set status = #{status} where order_id = #{orderId} and status='unpaid' insert into tb_order_detail (order_id, shop_id, product_id, product_sku_id, num, product_name, product_sku_name, product_img, create_time, update_time, price, price_amount,pack_amount,status) values (#{orderId},#{item.shopId},#{item.productId},#{item.productSkuId},#{item.num},#{item.productName},#{item.productSkuName},#{item.productImg},#{item.createTime},#{item.updateTime},#{item.price},#{item.priceAmount},#{item.packAmount},#{item.status})