瀏覽代碼

程序移植

wanghc 3 年之前
父節點
當前提交
f07796e438

+ 1 - 1
ipfcst-console/src/main/java/com/jiayue/ipfcst/console/controller/SysParameterController.java

@@ -88,7 +88,7 @@ public class SysParameterController {
     @SneakyThrows
     @SneakyThrows
     @GetMapping(value = "/sysParameter/{stationCode}/")
     @GetMapping(value = "/sysParameter/{stationCode}/")
     public ResponseVO getAll(@PathVariable("stationCode") String stationCode) {
     public ResponseVO getAll(@PathVariable("stationCode") String stationCode) {
-      List<SysParameter> list = this.sysParameterService.getAll(stationCode);
+      List<SysParameter> list = this.sysParameterService.getAllByStationCode(stationCode);
       return ResponseVO.success(list);
       return ResponseVO.success(list);
     }
     }
 
 

+ 4 - 0
ipfcst-console/src/main/java/com/jiayue/ipfcst/console/service/SysParameterService.java

@@ -125,4 +125,8 @@ public class SysParameterService extends BaseService {
     public List<SysParameter> getAll() {
     public List<SysParameter> getAll() {
       return  sysParameterRepository.findAll();
       return  sysParameterRepository.findAll();
     }
     }
+
+  public List<SysParameter> getAllByStationCode(String stationCode) {
+    return  sysParameterRepository.findAllByStationCode(stationCode);
+  }
 }
 }