package com.sptg.statistics.biz.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.sptg.statistics.api.entity.StatisticsAdPush;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * title: StatisticsMapper
 * package: com.sptg.statistics.biz.mapper
 * description: 广告发布统计-DAO接口
 *
 *                
 *                 
 */
public interface StatisticsAdPushMapper extends BaseMapper<StatisticsAdPush> {

    /**
     * 功能描述:更新记录机构位置
     * @param oldPosition 旧机构位置
     * @param newPosition 新机构位置
     * @return int
     *                
     *                       
     */
    @Update("update  statistics_ad_push set   s_org_position=#{newPosition}  where s_org_position=#{oldPosition}")
    public int updateOrgPosition(@Param(value = "oldPosition")String oldPosition, @Param(value = "newPosition") String newPosition);
}
