and ${criterion.condition}
and ${criterion.condition} #{criterion.value}
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
and ${criterion.condition}
#{listItem}
and ${criterion.condition}
and ${criterion.condition} #{criterion.value}
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
and ${criterion.condition}
#{listItem}
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,cart_ids,platform_type
delete from oms_order
where id = #{id,jdbcType=BIGINT}
delete from oms_order
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,cart_ids,platform_type)
values (#{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},#{cartIds},#{platformType})
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,
cart_ids,
platform_type,
#{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},
#{cartIds},
#{platformType},
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},
cart_ids = #{record.cartIds},
platform_type = #{record.platformType},
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},
cart_ids = #{record.cartIds},
platform_type = #{record.platformType},
modify_time = #{record.modifyTime,jdbcType=TIMESTAMP}
update oms_order
member_id = #{memberId,jdbcType=BIGINT},
coupon_id = #{couponId,jdbcType=BIGINT},
order_sn = #{orderSn,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
member_username = #{memberUsername,jdbcType=VARCHAR},
total_amount = #{totalAmount,jdbcType=DECIMAL},
pay_amount = #{payAmount,jdbcType=DECIMAL},
freight_amount = #{freightAmount,jdbcType=DECIMAL},
promotion_amount = #{promotionAmount,jdbcType=DECIMAL},
integration_amount = #{integrationAmount,jdbcType=DECIMAL},
coupon_amount = #{couponAmount,jdbcType=DECIMAL},
discount_amount = #{discountAmount,jdbcType=DECIMAL},
pay_type = #{payType,jdbcType=INTEGER},
source_type = #{sourceType,jdbcType=INTEGER},
status = #{status,jdbcType=INTEGER},
order_type = #{orderType,jdbcType=INTEGER},
delivery_company = #{deliveryCompany,jdbcType=VARCHAR},
delivery_sn = #{deliverySn,jdbcType=VARCHAR},
auto_confirm_day = #{autoConfirmDay,jdbcType=INTEGER},
integration = #{integration,jdbcType=INTEGER},
growth = #{growth,jdbcType=INTEGER},
promotion_info = #{promotionInfo,jdbcType=VARCHAR},
bill_type = #{billType,jdbcType=INTEGER},
bill_header = #{billHeader,jdbcType=VARCHAR},
bill_content = #{billContent,jdbcType=VARCHAR},
bill_receiver_phone = #{billReceiverPhone,jdbcType=VARCHAR},
bill_receiver_email = #{billReceiverEmail,jdbcType=VARCHAR},
receiver_name = #{receiverName,jdbcType=VARCHAR},
receiver_phone = #{receiverPhone,jdbcType=VARCHAR},
receiver_post_code = #{receiverPostCode,jdbcType=VARCHAR},
receiver_province = #{receiverProvince,jdbcType=VARCHAR},
receiver_city = #{receiverCity,jdbcType=VARCHAR},
receiver_region = #{receiverRegion,jdbcType=VARCHAR},
receiver_detail_address = #{receiverDetailAddress,jdbcType=VARCHAR},
note = #{note,jdbcType=VARCHAR},
confirm_status = #{confirmStatus,jdbcType=INTEGER},
delete_status = #{deleteStatus,jdbcType=INTEGER},
use_integration = #{useIntegration,jdbcType=INTEGER},
payment_time = #{paymentTime,jdbcType=TIMESTAMP},
delivery_time = #{deliveryTime,jdbcType=TIMESTAMP},
receive_time = #{receiveTime,jdbcType=TIMESTAMP},
comment_time = #{commentTime,jdbcType=TIMESTAMP},
modify_time = #{modifyTime,jdbcType=TIMESTAMP},
cart_ids = #{cartIds},
platform_type = #{platformType},
where id = #{id,jdbcType=BIGINT}
update oms_order
set member_id = #{memberId,jdbcType=BIGINT},
coupon_id = #{couponId,jdbcType=BIGINT},
order_sn = #{orderSn,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
member_username = #{memberUsername,jdbcType=VARCHAR},
total_amount = #{totalAmount,jdbcType=DECIMAL},
pay_amount = #{payAmount,jdbcType=DECIMAL},
freight_amount = #{freightAmount,jdbcType=DECIMAL},
promotion_amount = #{promotionAmount,jdbcType=DECIMAL},
integration_amount = #{integrationAmount,jdbcType=DECIMAL},
coupon_amount = #{couponAmount,jdbcType=DECIMAL},
discount_amount = #{discountAmount,jdbcType=DECIMAL},
pay_type = #{payType,jdbcType=INTEGER},
source_type = #{sourceType,jdbcType=INTEGER},
status = #{status,jdbcType=INTEGER},
order_type = #{orderType,jdbcType=INTEGER},
delivery_company = #{deliveryCompany,jdbcType=VARCHAR},
delivery_sn = #{deliverySn,jdbcType=VARCHAR},
auto_confirm_day = #{autoConfirmDay,jdbcType=INTEGER},
integration = #{integration,jdbcType=INTEGER},
growth = #{growth,jdbcType=INTEGER},
promotion_info = #{promotionInfo,jdbcType=VARCHAR},
bill_type = #{billType,jdbcType=INTEGER},
bill_header = #{billHeader,jdbcType=VARCHAR},
bill_content = #{billContent,jdbcType=VARCHAR},
bill_receiver_phone = #{billReceiverPhone,jdbcType=VARCHAR},
bill_receiver_email = #{billReceiverEmail,jdbcType=VARCHAR},
receiver_name = #{receiverName,jdbcType=VARCHAR},
receiver_phone = #{receiverPhone,jdbcType=VARCHAR},
receiver_post_code = #{receiverPostCode,jdbcType=VARCHAR},
receiver_province = #{receiverProvince,jdbcType=VARCHAR},
receiver_city = #{receiverCity,jdbcType=VARCHAR},
receiver_region = #{receiverRegion,jdbcType=VARCHAR},
receiver_detail_address = #{receiverDetailAddress,jdbcType=VARCHAR},
note = #{note,jdbcType=VARCHAR},
confirm_status = #{confirmStatus,jdbcType=INTEGER},
delete_status = #{deleteStatus,jdbcType=INTEGER},
use_integration = #{useIntegration,jdbcType=INTEGER},
payment_time = #{paymentTime,jdbcType=TIMESTAMP},
delivery_time = #{deliveryTime,jdbcType=TIMESTAMP},
receive_time = #{receiveTime,jdbcType=TIMESTAMP},
comment_time = #{commentTime,jdbcType=TIMESTAMP},
cart_ids = #{cartIds},
platform_type = #{platformType},
modify_time = #{modifyTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=BIGINT}