|
@@ -4,7 +4,6 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
|
import com.qunzhixinxi.hnqz.admin.api.entity.SysUserArea;
|
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
|
import org.apache.ibatis.annotations.Param;
|
|
|
-import org.apache.ibatis.annotations.Select;
|
|
|
|
|
|
import java.util.Collection;
|
|
|
import java.util.List;
|
|
@@ -20,16 +19,6 @@ import java.util.List;
|
|
|
public interface SysUserAreaMapper extends BaseMapper<SysUserArea> {
|
|
|
|
|
|
|
|
|
- // // @Select("SELECT * FROM sys_user_area ua LEFT JOIN ${tableName} t ON ua.area_id =t.id")
|
|
|
- // @Select("SELECT * FROM ${tablename} t LEFT JOIN sys_user_area ua ON ua.area_id =t.id")
|
|
|
- // List<SysUserArea> listFromTempTable(@Param("tableName") String tableName);
|
|
|
-
|
|
|
- @Select("<script>"
|
|
|
- + "SELECT DISTINCT user_id FROM sys_user_area WHERE area_id IN "
|
|
|
- + "<foreach item='areaId' INDEX='index' collection='areaIds' OPEN='(' SEPARATOR=',' CLOSE=')'>"
|
|
|
- + "#{areaId}"
|
|
|
- + "</foreach>"
|
|
|
- + "</script>")
|
|
|
List<Long> listAreaUser(@Param(value = "areaIds") Collection<Long> areaIds);
|
|
|
}
|
|
|
|