@ -66,14 +66,13 @@ public interface AppraiseRecordRepository extends CosmosRepository<AppraiseRecor
/**
/**
*最新的评价明细,分页
*最新的评价明细,分页
*/
*/
// todo: 调整一下数据结构
@Query("select c.id as recordId, c.name as targetName, c.avatar, c.className, n.id as recordNodeId, c.targetId, c.targetType, n.creator, n.createTime, n.appraiseNode.name as appraiseName, n.appraiseNode.isPraise from Student as c join n in c.nodes where "+
@Query("select c.id as recordId, c.name as targetName, c.avatar, c.className, n.id as recordNodeId, c.targetId, c.targetType, n.creator, n.createTime, n.appraiseNode.name as appraiseName, n.appraiseNode.isPraise from Student as c join n in c.nodes where "+
"c.code = @code and "+
"c.code = @code and "+
"c.academicYearId = @academicYearId and "+
"c.academicYearId = @academicYearId and "+
"(IS_NULL(@startTime) or n.createTime >= @startTime) and "+
"(IS_NULL(@startTime) or n.createTime >= @startTime) and "+
"(IS_NULL(@endTime) or n.createTime <= @endTime)"+