Ver código fonte

青海集中功率预测检修计划数据库操作

wangtao 3 anos atrás
pai
commit
1ace218692

+ 4 - 1
ipfcst-common/ipfcst-common-data/src/main/java/com/jiayue/ipfcst/common/data/repository/ElectricFieldRepository.java

@@ -10,5 +10,8 @@ import com.jiayue.ipfcst.common.data.entity.ElectricField;
  * @since 2019/8/5 9:15
  */
 public interface ElectricFieldRepository extends BaseRepository<ElectricField, String> {
-	ElectricField findByStationCodeIsNotNull();
+    ElectricField findByStationCodeIsNotNull();
+
+
+    ElectricField findByStationCode(String stationCode);
 }

+ 20 - 16
ipfcst-common/ipfcst-common-data/src/main/java/com/jiayue/ipfcst/common/data/repository/OverhaulPlanRepository.java

@@ -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);
 }