package com.sptg.statistics.biz.mapper;

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

import java.util.Map;

/**
 * title: StatisticsCountMapper
 * package: com.sptg.statistics.biz.mapper
 * description: 统计数量-Dao接口
 *
 *                
 *                 
 */
public interface StatisticsCountMapper extends BaseMapper<StatisticsCount> {

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