liujie
2026-06-26 8fbe2f5f29b9658b6201b3daabe2d575c9da88fd
admin-server/src/main/java/com/estate/expert/admin/domain/standard/problem/ProblemRepository.java
@@ -12,7 +12,9 @@
    @Query("select p from Problem p where p.hierarchyId = :hierarchyId " +
            "and p.hierarchyPath in :hierarchyPaths " +
            "and (:keyword is null or :keyword = '' or p.description like %:keyword% ) " +
            "and (:keyword is null or :keyword = '' " +
            "or p.description like %:keyword% " +
            "or function('json_search', p.specificTerms, 'one', concat(concat('%', :keyword), '%')) is not null) " +
            "and p.deleted = false")
    Page<Problem> findProblems(@Param("hierarchyId") Integer hierarchyId,
                               @Param("hierarchyPaths") List<String> hierarchyPaths,