com.founder.core.mapper.GsPublicMapper Maven / Gradle / Ivy
package com.founder.core.mapper;
import com.founder.core.domain.GsUdiDocComp;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;
import java.util.Date;
import java.util.List;
@Component
@Mapper
public interface GsPublicMapper {
@Select({"select GETDATE() as datetime"})
Date getDateTime();
@Select("${sqlStr}")
List getCompData(@Param("sqlStr")String sqlStr);
//@Select("select #{code} code_his,#{name} name_his from #{table_name} where 1 = 1 #{where_str}")
//List> getCompData(@Param("code")String code,@Param("name")String name,@Param("table_name")String table_name,@Param("where_str")String where_str);
}