|
@@ -14,6 +14,7 @@ import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
+import java.util.ArrayList;
|
|
|
import java.util.Collection;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
@@ -36,7 +37,9 @@ public class DiagnosepointController {
|
|
|
@GetMapping("/list")
|
|
|
public JSONObject getDiagnosepointList(String station, String model) {
|
|
|
if (!StringUtils.isEmpty(station) && !StringUtils.isEmpty(model)) {
|
|
|
- List<Diagnosepoint> list = InitialRunner.mapPoint.get(station).get(model);
|
|
|
+ List<Diagnosepoint> list = new ArrayList<>();
|
|
|
+ list.addAll(InitialRunner.mapPoint.get(station).get(model));
|
|
|
+ list.add(new Diagnosepoint().faultType());
|
|
|
return JsonResult.successData(ResultCode.SUCCESS, list);
|
|
|
}
|
|
|
else {
|