package com.xxfc.platform.tour.mapper;


import  com.xxfc.platform.tour.entity.TourGoodVerification;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * 旅游线路核销明细
 * 
 * @author zjw
 * @email nishijjo@qq.com
 * @date 2019-06-14 09:36:50
 */
public interface TourGoodVerificationMapper extends Mapper<TourGoodVerification> {

    //删除线路核销
    public int  delVerification( @Param("list") List<Integer> ids);


    /**
     * 保存线路核销
     * @param tourGoodVerification
     * @return
     */
    @Insert("insert into tour_good_verification(`spe_id`,`site_id`,`good_id`)values(#{speId} ,#{siteId} ,#{goodId}) where `spe_id`<>#{spId} and `site_id`<>#{siteId} and `good_id`<>#{goodId}")
    int insertTourGoodVerification(TourGoodVerification tourGoodVerification);
}
