|
@@ -49,11 +49,13 @@ public class DiagnoseFaultController {
|
|
|
@RequestParam(value = "confirm", required = false) Optional<Boolean> confirm){
|
|
|
boolean conf = confirm.isPresent() ? confirm.get() : false;
|
|
|
if (conf){
|
|
|
- List<Casefaultalg> list = casefaultalgService.getAll(station, wtId, id, faultid, model, faultcode, st, et, algcode, conf);
|
|
|
+ List<Casefaultalg> list = casefaultalgService.getAll(station, wtId, id, faultid, model, faultcode, st, et, algcode, conf,
|
|
|
+ null, null, null, null, null, null);
|
|
|
return JsonResult.successData(ResultCode.SUCCESS, list);
|
|
|
}else{
|
|
|
List<Casefaultalg> array = new ArrayList<>();
|
|
|
- List<Casefaultalg> list = casefaultalgService.getAll(station, wtId, id, faultid, model, faultcode, st, et, algcode, null);
|
|
|
+ List<Casefaultalg> list = casefaultalgService.getAll(station, wtId, id, faultid, model, faultcode, st, et, algcode, null,
|
|
|
+ null, null, null, null, null, null);
|
|
|
Map<Long, List<Casefaultalg>> map = list.stream().collect(Collectors.groupingBy(Casefaultalg::getFaultid));
|
|
|
List<FaultInfo> faults = remoteServiceBuilder.sharding().getFaultInfoList("FJ", "GZ", st, et, station, 1);
|
|
|
for (FaultInfo info : faults){
|
|
@@ -102,7 +104,8 @@ public class DiagnoseFaultController {
|
|
|
|
|
|
List<Object> list = new ArrayList<>();
|
|
|
for (String pt : station){
|
|
|
- List<Casefaultalg> faults = casefaultalgService.getAll(pt, null, null, null, null, null, st, et, null, null);
|
|
|
+ List<Casefaultalg> faults = casefaultalgService.getAll(pt, null, null, null, null, null, st, et, null, null,
|
|
|
+ null, null, null, null, null, null);
|
|
|
List<Casefaultalg> collect = faults.stream().filter(a -> a.getConfirm()).collect(Collectors.toList());
|
|
|
int size = collect.size();
|
|
|
int count = collect.stream().filter(f -> !StringUtils.isEmpty(f.getDiagnosecode())
|