select woa.id,
woa.order_id,
woa.order_item_id,
woa.oper_type,
woa.oper_id,
woa.order_status,
woa.dispatch_status,
woa.comment_status,
woa.aftersale_status,
woa.refund_status,
woa.remark,
woa.create_time,
woa.update_time,
woa.create_by,
woa.update_by,zu.NAME AS userName,
su.nick_name as nickName
from zdy_wcsc_order_action woa
LEFT JOIN zdy_user zu ON woa.oper_id = zu.id
LEFT JOIN sys_user su ON woa.oper_id = su.user_id
insert into zdy_wcsc_order_action
order_id,
order_item_id,
oper_type,
oper_id,
order_status,
dispatch_status,
comment_status,
aftersale_status,
refund_status,
remark,
create_time,
update_time,
create_by,
update_by,
#{orderId},
#{orderItemId},
#{operType},
#{operId},
#{orderStatus},
#{dispatchStatus},
#{commentStatus},
#{aftersaleStatus},
#{refundStatus},
#{remark},
#{createTime},
#{updateTime},
#{createBy},
#{updateBy},
update zdy_wcsc_order_action
order_id =
#{orderId},
order_item_id =
#{orderItemId},
oper_type =
#{operType},
oper_id =
#{operId},
order_status =
#{orderStatus},
dispatch_status =
#{dispatchStatus},
comment_status =
#{commentStatus},
aftersale_status =
#{aftersaleStatus},
refund_status =
#{refundStatus},
remark =
#{remark},
create_time =
#{createTime},
update_time =
#{updateTime},
create_by =
#{createBy},
update_by =
#{updateBy},
where id = #{id}
delete
from zdy_wcsc_order_action
where id = #{id}
delete from zdy_wcsc_order_action where id in
#{id}