feat(W4): 院系子站嵌套路径-cms_site.path列+uk_site_path/parent_code,门户单段+嵌套双映射,旧链301,public_base_url派生,sitePath预览,SQL三处+升级脚本,T-W4-01..15 全绿279/279
This commit is contained in:
@@ -10,6 +10,17 @@ public interface CmsSiteRepository extends JpaRepository<CmsSite, Integer> {
|
||||
|
||||
Optional<CmsSite> findByCode(String code);
|
||||
|
||||
/** 门户路径精确查找(W4:/portal/{path} 身份解析唯一入口) */
|
||||
Optional<CmsSite> findByPath(String path);
|
||||
|
||||
/** 路径冲突检查(新建/改挂重算用;编辑排除自身) */
|
||||
boolean existsByPath(String path);
|
||||
|
||||
boolean existsByPathAndIdNot(String path, Integer id);
|
||||
|
||||
/** 皮肤包被用站点数(W1 删除保护共用) */
|
||||
long countByTheme(String theme);
|
||||
|
||||
/** 启用站点(B-5:显式按 id 升序,/portal 默认入口跳转目标确定) */
|
||||
List<CmsSite> findByStatusOrderByIdAsc(Integer status);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user