package com.yc.ship.module.trade.dal.mysql.order;


import com.yc.ship.framework.mybatis.core.mapper.BaseMapperX;
import com.yc.ship.framework.tenant.core.aop.TenantIgnore;
import com.yc.ship.module.trade.dal.dataobject.order.TradeOrderUserDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * 订单联系人 Mapper
 *
 * @author 管理员
 */
@Mapper
public interface TradeOrderUserMapper extends BaseMapperX<TradeOrderUserDO> {
    @Update("UPDATE trade_order_user SET deleted = #{deleted},update_time = now(), sync_status = '0' WHERE order_id = #{orderId}")
    @TenantIgnore
    void updateDeleted(@Param("orderId") Long orderId, @Param("deleted")  int deleted);

}