package com.sptg.statistics.biz.mapper;

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

/**
 * title: SysOperationLogMapper
 * package: com.sptg.statistics.biz.mapper
 * description:机器操作日志-DAO接口
 *
 *                
 *                
 */
public interface SysOperationLogMapper extends BaseMapper<SysOperationLog> {
    /**
     * 功能描述:更新记录机构位置
     * @param oldPosition 旧机构位置
     * @param newPosition 新机构位置
     * @return int
     *                
     *                       
     */
    @Update("update  sys_operation_log set   s_org_position=#{newPosition}  where s_org_position=#{oldPosition}")
    public int updateOrgPosition(@Param(value = "oldPosition")String oldPosition,@Param(value = "newPosition") String newPosition);
}
