|
|
@ -31,8 +31,8 @@ public interface AppraiseRepository extends CosmosRepository<Appraise, String> {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Query("SELECT * FROM School AS s where s.code = 'Appraise' and s.schoolId = 'template'")
|
|
|
|
@Query("SELECT * FROM School AS s where s.code = 'Appraise' and s.schoolId = 'template'")
|
|
|
|
List<Appraise> findTemplateTree();
|
|
|
|
List<Appraise> findTemplateTree();
|
|
|
|
@Query("SELECT value n FROM School AS s join n in s.nodes where s.code = @code and n.id = @nodeId")
|
|
|
|
@Query("SELECT value n FROM School AS s join n in s.nodes where s.code = @code and n.id = @nodeId and s.periodId = @periodId")
|
|
|
|
List<AppraiseTreeNode> findNodeById(@Param("code") String code, @Param("nodeId") String nodeId);
|
|
|
|
List<AppraiseTreeNode> findNodeById(@Param("code") String code, @Param("nodeId") String nodeId,@Param("periodId") String periodId);
|
|
|
|
@Query("select n.id, n.name from School as c join n in c.nodes where c.code = @code and n.id in (@ids)")
|
|
|
|
@Query("select n.id, n.name from School as c join n in c.nodes where c.code = @code and n.id in (@ids)")
|
|
|
|
List<AppraiseTreeNode> findAllByCodeAndIdIn(String code, Set<String> ids);
|
|
|
|
List<AppraiseTreeNode> findAllByCodeAndIdIn(String code, Set<String> ids);
|
|
|
|
@Query("SELECT c.id, c.achievementRules FROM School AS c where c.code = 'Appraise' and c.schoolId = @schoolId and c.periodId = @periodId")
|
|
|
|
@Query("SELECT c.id, c.achievementRules FROM School AS c where c.code = 'Appraise' and c.schoolId = @schoolId and c.periodId = @periodId")
|
|
|
|