select id, user_id, coupon_id, order_sn, create_time, member_username, total_amount, pay_amount, freight_amount, promotion_amount, integration_amount, coupon_amount, discount_amount, pay_type, source_type, status, order_type, delivery_company, delivery_sn, auto_confirm_day, integration, growth, promotion_info, bill_type, bill_header, bill_content, bill_receiver_phone, bill_receiver_email, receiver_name, receiver_phone, receiver_post_code, receiver_province, receiver_city, receiver_region, receiver_detail_address, note, confirm_status, delete_status, use_integration, payment_time, delivery_time, receive_time, comment_time from oms_order insert into oms_order user_id, coupon_id, order_sn, create_time, member_username, total_amount, pay_amount, freight_amount, promotion_amount, integration_amount, coupon_amount, discount_amount, pay_type, source_type, status, order_type, delivery_company, delivery_sn, auto_confirm_day, integration, growth, promotion_info, bill_type, bill_header, bill_content, bill_receiver_phone, bill_receiver_email, receiver_name, receiver_phone, receiver_post_code, receiver_province, receiver_city, receiver_region, receiver_detail_address, note, confirm_status, delete_status, use_integration, payment_time, delivery_time, receive_time, comment_time, modify_time, #{userId}, #{couponId}, #{orderSn}, #{createTime}, #{memberUsername}, #{totalAmount}, #{payAmount}, #{freightAmount}, #{promotionAmount}, #{integrationAmount}, #{couponAmount}, #{discountAmount}, #{payType}, #{sourceType}, #{status}, #{orderType}, #{deliveryCompany}, #{deliverySn}, #{autoConfirmDay}, #{integration}, #{growth}, #{promotionInfo}, #{billType}, #{billHeader}, #{billContent}, #{billReceiverPhone}, #{billReceiverEmail}, #{receiverName}, #{receiverPhone}, #{receiverPostCode}, #{receiverProvince}, #{receiverCity}, #{receiverRegion}, #{receiverDetailAddress}, #{note}, #{confirmStatus}, #{deleteStatus}, #{useIntegration}, #{paymentTime}, #{deliveryTime}, #{receiveTime}, #{commentTime}, #{modifyTime}, update oms_order user_id = #{userId}, coupon_id = #{couponId}, order_sn = #{orderSn}, create_time = #{createTime}, member_username = #{memberUsername}, total_amount = #{totalAmount}, pay_amount = #{payAmount}, freight_amount = #{freightAmount}, promotion_amount = #{promotionAmount}, integration_amount = #{integrationAmount}, coupon_amount = #{couponAmount}, discount_amount = #{discountAmount}, pay_type = #{payType}, source_type = #{sourceType}, status = #{status}, order_type = #{orderType}, delivery_company = #{deliveryCompany}, delivery_sn = #{deliverySn}, auto_confirm_day = #{autoConfirmDay}, integration = #{integration}, growth = #{growth}, promotion_info = #{promotionInfo}, bill_type = #{billType}, bill_header = #{billHeader}, bill_content = #{billContent}, bill_receiver_phone = #{billReceiverPhone}, bill_receiver_email = #{billReceiverEmail}, receiver_name = #{receiverName}, receiver_phone = #{receiverPhone}, receiver_post_code = #{receiverPostCode}, receiver_province = #{receiverProvince}, receiver_city = #{receiverCity}, receiver_region = #{receiverRegion}, receiver_detail_address = #{receiverDetailAddress}, note = #{note}, confirm_status = #{confirmStatus}, delete_status = #{deleteStatus}, use_integration = #{useIntegration}, payment_time = #{paymentTime}, delivery_time = #{deliveryTime}, receive_time = #{receiveTime}, comment_time = #{commentTime}, modify_time = #{modifyTime}, where id = #{id} delete from oms_order where id = #{id} delete from oms_order where id in #{id} and ${criterion.condition} and ${criterion.condition} #{criterion.value} and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} and ${criterion.condition} #{listItem} delete from oms_order delete from oms_order where id = #{id,jdbcType=BIGINT} SELECT LAST_INSERT_ID() insert into oms_order member_id, coupon_id, order_sn, create_time, member_username, total_amount, pay_amount, freight_amount, promotion_amount, integration_amount, coupon_amount, discount_amount, pay_type, source_type, status, order_type, delivery_company, delivery_sn, auto_confirm_day, integration, growth, promotion_info, bill_type, bill_header, bill_content, bill_receiver_phone, bill_receiver_email, receiver_name, receiver_phone, receiver_post_code, receiver_province, receiver_city, receiver_region, receiver_detail_address, note, confirm_status, delete_status, use_integration, payment_time, delivery_time, receive_time, comment_time, modify_time, #{memberId,jdbcType=BIGINT}, #{couponId,jdbcType=BIGINT}, #{orderSn,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{memberUsername,jdbcType=VARCHAR}, #{totalAmount,jdbcType=DECIMAL}, #{payAmount,jdbcType=DECIMAL}, #{freightAmount,jdbcType=DECIMAL}, #{promotionAmount,jdbcType=DECIMAL}, #{integrationAmount,jdbcType=DECIMAL}, #{couponAmount,jdbcType=DECIMAL}, #{discountAmount,jdbcType=DECIMAL}, #{payType,jdbcType=INTEGER}, #{sourceType,jdbcType=INTEGER}, #{status,jdbcType=INTEGER}, #{orderType,jdbcType=INTEGER}, #{deliveryCompany,jdbcType=VARCHAR}, #{deliverySn,jdbcType=VARCHAR}, #{autoConfirmDay,jdbcType=INTEGER}, #{integration,jdbcType=INTEGER}, #{growth,jdbcType=INTEGER}, #{promotionInfo,jdbcType=VARCHAR}, #{billType,jdbcType=INTEGER}, #{billHeader,jdbcType=VARCHAR}, #{billContent,jdbcType=VARCHAR}, #{billReceiverPhone,jdbcType=VARCHAR}, #{billReceiverEmail,jdbcType=VARCHAR}, #{receiverName,jdbcType=VARCHAR}, #{receiverPhone,jdbcType=VARCHAR}, #{receiverPostCode,jdbcType=VARCHAR}, #{receiverProvince,jdbcType=VARCHAR}, #{receiverCity,jdbcType=VARCHAR}, #{receiverRegion,jdbcType=VARCHAR}, #{receiverDetailAddress,jdbcType=VARCHAR}, #{note,jdbcType=VARCHAR}, #{confirmStatus,jdbcType=INTEGER}, #{deleteStatus,jdbcType=INTEGER}, #{useIntegration,jdbcType=INTEGER}, #{paymentTime,jdbcType=TIMESTAMP}, #{deliveryTime,jdbcType=TIMESTAMP}, #{receiveTime,jdbcType=TIMESTAMP}, #{commentTime,jdbcType=TIMESTAMP}, #{modifyTime,jdbcType=TIMESTAMP}, id, member_id, coupon_id, order_sn, create_time, member_username, total_amount, pay_amount, freight_amount, promotion_amount, integration_amount, coupon_amount, discount_amount, pay_type, source_type, status, order_type, delivery_company, delivery_sn, auto_confirm_day, integration, growth, promotion_info, bill_type, bill_header, bill_content, bill_receiver_phone, bill_receiver_email, receiver_name, receiver_phone, receiver_post_code, receiver_province, receiver_city, receiver_region, receiver_detail_address, note, confirm_status, delete_status, use_integration, payment_time, delivery_time, receive_time, comment_time, modify_time update oms_order id = #{record.id,jdbcType=BIGINT}, member_id = #{record.memberId,jdbcType=BIGINT}, coupon_id = #{record.couponId,jdbcType=BIGINT}, order_sn = #{record.orderSn,jdbcType=VARCHAR}, create_time = #{record.createTime,jdbcType=TIMESTAMP}, member_username = #{record.memberUsername,jdbcType=VARCHAR}, total_amount = #{record.totalAmount,jdbcType=DECIMAL}, pay_amount = #{record.payAmount,jdbcType=DECIMAL}, freight_amount = #{record.freightAmount,jdbcType=DECIMAL}, promotion_amount = #{record.promotionAmount,jdbcType=DECIMAL}, integration_amount = #{record.integrationAmount,jdbcType=DECIMAL}, coupon_amount = #{record.couponAmount,jdbcType=DECIMAL}, discount_amount = #{record.discountAmount,jdbcType=DECIMAL}, pay_type = #{record.payType,jdbcType=INTEGER}, source_type = #{record.sourceType,jdbcType=INTEGER}, status = #{record.status,jdbcType=INTEGER}, order_type = #{record.orderType,jdbcType=INTEGER}, delivery_company = #{record.deliveryCompany,jdbcType=VARCHAR}, delivery_sn = #{record.deliverySn,jdbcType=VARCHAR}, auto_confirm_day = #{record.autoConfirmDay,jdbcType=INTEGER}, integration = #{record.integration,jdbcType=INTEGER}, growth = #{record.growth,jdbcType=INTEGER}, promotion_info = #{record.promotionInfo,jdbcType=VARCHAR}, bill_type = #{record.billType,jdbcType=INTEGER}, bill_header = #{record.billHeader,jdbcType=VARCHAR}, bill_content = #{record.billContent,jdbcType=VARCHAR}, bill_receiver_phone = #{record.billReceiverPhone,jdbcType=VARCHAR}, bill_receiver_email = #{record.billReceiverEmail,jdbcType=VARCHAR}, receiver_name = #{record.receiverName,jdbcType=VARCHAR}, receiver_phone = #{record.receiverPhone,jdbcType=VARCHAR}, receiver_post_code = #{record.receiverPostCode,jdbcType=VARCHAR}, receiver_province = #{record.receiverProvince,jdbcType=VARCHAR}, receiver_city = #{record.receiverCity,jdbcType=VARCHAR}, receiver_region = #{record.receiverRegion,jdbcType=VARCHAR}, receiver_detail_address = #{record.receiverDetailAddress,jdbcType=VARCHAR}, note = #{record.note,jdbcType=VARCHAR}, confirm_status = #{record.confirmStatus,jdbcType=INTEGER}, delete_status = #{record.deleteStatus,jdbcType=INTEGER}, use_integration = #{record.useIntegration,jdbcType=INTEGER}, payment_time = #{record.paymentTime,jdbcType=TIMESTAMP}, delivery_time = #{record.deliveryTime,jdbcType=TIMESTAMP}, receive_time = #{record.receiveTime,jdbcType=TIMESTAMP}, comment_time = #{record.commentTime,jdbcType=TIMESTAMP}, modify_time = #{record.modifyTime,jdbcType=TIMESTAMP}, and ${criterion.condition} and ${criterion.condition} #{criterion.value} and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} and ${criterion.condition} #{listItem} update oms_order set id = #{record.id,jdbcType=BIGINT}, member_id = #{record.memberId,jdbcType=BIGINT}, coupon_id = #{record.couponId,jdbcType=BIGINT}, order_sn = #{record.orderSn,jdbcType=VARCHAR}, create_time = #{record.createTime,jdbcType=TIMESTAMP}, member_username = #{record.memberUsername,jdbcType=VARCHAR}, total_amount = #{record.totalAmount,jdbcType=DECIMAL}, pay_amount = #{record.payAmount,jdbcType=DECIMAL}, freight_amount = #{record.freightAmount,jdbcType=DECIMAL}, promotion_amount = #{record.promotionAmount,jdbcType=DECIMAL}, integration_amount = #{record.integrationAmount,jdbcType=DECIMAL}, coupon_amount = #{record.couponAmount,jdbcType=DECIMAL}, discount_amount = #{record.discountAmount,jdbcType=DECIMAL}, pay_type = #{record.payType,jdbcType=INTEGER}, source_type = #{record.sourceType,jdbcType=INTEGER}, status = #{record.status,jdbcType=INTEGER}, order_type = #{record.orderType,jdbcType=INTEGER}, delivery_company = #{record.deliveryCompany,jdbcType=VARCHAR}, delivery_sn = #{record.deliverySn,jdbcType=VARCHAR}, auto_confirm_day = #{record.autoConfirmDay,jdbcType=INTEGER}, integration = #{record.integration,jdbcType=INTEGER}, growth = #{record.growth,jdbcType=INTEGER}, promotion_info = #{record.promotionInfo,jdbcType=VARCHAR}, bill_type = #{record.billType,jdbcType=INTEGER}, bill_header = #{record.billHeader,jdbcType=VARCHAR}, bill_content = #{record.billContent,jdbcType=VARCHAR}, bill_receiver_phone = #{record.billReceiverPhone,jdbcType=VARCHAR}, bill_receiver_email = #{record.billReceiverEmail,jdbcType=VARCHAR}, receiver_name = #{record.receiverName,jdbcType=VARCHAR}, receiver_phone = #{record.receiverPhone,jdbcType=VARCHAR}, receiver_post_code = #{record.receiverPostCode,jdbcType=VARCHAR}, receiver_province = #{record.receiverProvince,jdbcType=VARCHAR}, receiver_city = #{record.receiverCity,jdbcType=VARCHAR}, receiver_region = #{record.receiverRegion,jdbcType=VARCHAR}, receiver_detail_address = #{record.receiverDetailAddress,jdbcType=VARCHAR}, note = #{record.note,jdbcType=VARCHAR}, confirm_status = #{record.confirmStatus,jdbcType=INTEGER}, delete_status = #{record.deleteStatus,jdbcType=INTEGER}, use_integration = #{record.useIntegration,jdbcType=INTEGER}, payment_time = #{record.paymentTime,jdbcType=TIMESTAMP}, delivery_time = #{record.deliveryTime,jdbcType=TIMESTAMP}, receive_time = #{record.receiveTime,jdbcType=TIMESTAMP}, comment_time = #{record.commentTime,jdbcType=TIMESTAMP}, modify_time = #{record.modifyTime,jdbcType=TIMESTAMP} UPDATE pms_sku_stock SET stock = CASE id WHEN #{item.goodsSkuId} THEN stock - #{item.goodsQuantity} END, lock_stock = CASE id WHEN #{item.goodsSkuId} THEN lock_stock - #{item.goodsQuantity} END WHERE id IN #{item.goodsSkuId} update oms_order set status=#{status} where id in #{id} UPDATE pms_sku_stock SET lock_stock = CASE id WHEN #{item.productSkuId} THEN lock_stock - #{item.productQuantity} END WHERE id IN #{item.productSkuId}