|
@@ -12,20 +12,24 @@ import java.util.List;
|
|
|
* @since 2019/9/26 11:44
|
|
|
*/
|
|
|
public interface OverhaulPlanRepository extends BaseRepository<OverhaulPlan, Integer> {
|
|
|
- /**
|
|
|
- * 查询检修记录
|
|
|
- *
|
|
|
- * @param stTime 开始时间
|
|
|
- * @param eTime 结束时间
|
|
|
- * @return 检修记录
|
|
|
- */
|
|
|
- List<OverhaulPlan> findByEndTimeGreaterThanEqualAndStartTimeLessThanEqual(Long stTime, Long eTime);
|
|
|
- List<OverhaulPlan> findByEndTimeGreaterThanEqualAndStartTimeLessThanEqualAndStatusAndStationCode(Long stTime, Long eTime,Integer status,String stationCode);
|
|
|
- List<OverhaulPlan> findByStartTimeLessThanAndEndTimeGreaterThanAndStatus(Long startTime,Long endTime,Integer status);
|
|
|
-
|
|
|
- List<OverhaulPlan> findByEndTimeAfterAndStatus(Long time,Integer status);
|
|
|
-
|
|
|
- List<OverhaulPlan> findByBackupAIsNull();
|
|
|
-
|
|
|
- List<OverhaulPlan> findByBackupAIsNotNull();
|
|
|
+ /**
|
|
|
+ * 查询检修记录
|
|
|
+ *
|
|
|
+ * @param stTime 开始时间
|
|
|
+ * @param eTime 结束时间
|
|
|
+ * @return 检修记录
|
|
|
+ */
|
|
|
+ List<OverhaulPlan> findByEndTimeGreaterThanEqualAndStartTimeLessThanEqual(Long stTime, Long eTime);
|
|
|
+
|
|
|
+ List<OverhaulPlan> findByEndTimeGreaterThanEqualAndStartTimeLessThanEqualAndStatusAndStationCode(Long stTime, Long eTime, Integer status, String stationCode);
|
|
|
+
|
|
|
+ List<OverhaulPlan> findByStartTimeLessThanAndEndTimeGreaterThanAndStatus(Long startTime, Long endTime, Integer status);
|
|
|
+
|
|
|
+ List<OverhaulPlan> findByEndTimeAfterAndStatus(Long time, Integer status);
|
|
|
+
|
|
|
+ List<OverhaulPlan> findByBackupAIsNull();
|
|
|
+
|
|
|
+ List<OverhaulPlan> findByBackupAIsNotNull();
|
|
|
+
|
|
|
+ List<OverhaulPlan> findByStationCode(String stationCode);
|
|
|
}
|