package com.unis.crk.common.mapper;

import com.baomidou.mybatisplus.annotation.SqlParser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.unis.crk.common.entity.Bizflowtrail;
import com.unis.crk.common.entity.DataCenterUpload;
import com.unis.crk.common.entity.UpdataLog;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultType;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;

public interface DataCenterUploadMapper extends BaseMapper<DataCenterUpload> {

    @SqlParser(filter=true)
    void updataAfterUploadcpl(@Param("tableName")String tableName, @Param("dataId")String dataId, @Param("now")String now);
    @SqlParser(filter=true)
    void updataAfterUpload(@Param("tableName")String tableName, @Param("dataId")String dataId,@Param("now")String now);

    @Update({"${sql}"})
    @ResultType(ArrayList.class)
    void executeUpdate(@Param("sql") String sql);


}


