    /**
     * 根据目标类型获得本实体集合
     * @return 分页数据
     */
    public FastPage<${entityName}> getListByTarget(int page, int targetType,int targetId) {

        ${linkColumns}

        String sqlStr = "${selectSql2} where 1=1 and t.targetType = ? and t.targetId = ?  ";
        FastPage<${entityName}> pageList = selectBySql(page,10,sqlStr, targetType,targetId);
        for (${entityName} entity : pageList.getList()) {
            ${linkAlias}
        }
        return pageList;
    }