develop
hhb@hotmail.com 3 months ago
parent 5eb9dcaadc
commit b68b576b8c

@ -14,7 +14,7 @@ public interface ArtRepository extends CosmosRepository<Art, String> {
/**
* , ,
*/
@Query("select s.id,s.name,s.classes,s.startTime,s.endTime,s.subjects,s.progress,s.settings from Art as s where s.period.id = @periodId and s.code = @code " +
@Query("select s.id,s.name,s.classes,s.startTime,s.endTime,s.subjects,s.progress,s.settings from Art as s where s.progress = 'finish' and s.period.id = @periodId and s.code = @code " +
"and (IS_NULL(@startTime) or s.startTime >= @startTime) " +
"and (IS_NULL(@endTime) or s.startTime < @endTime) ")
List<ArtElementsVo> findPeriodById(@Param("periodId")String periodId, @Param("code")String code, @Param("startTime")Long startTime, @Param("endTime")Long endTime);

Loading…
Cancel
Save