| | |
| | | import org.springframework.stereotype.Controller;
|
| | | import org.springframework.web.bind.annotation.RequestBody;
|
| | | import org.springframework.web.bind.annotation.RequestMapping;
|
| | | import org.springframework.web.bind.annotation.RequestParam;
|
| | | import org.springframework.web.bind.annotation.ResponseBody;
|
| | |
|
| | | import javax.annotation.Resource;
|
| | |
| | | @ResponseBody
|
| | | public Map randpoint(){
|
| | |
|
| | | List<Monitorpoint> randpoint = mgrService.randpoint();
|
| | | List<MonitorPoint> randpoint = mgrService.randpoint();
|
| | |
|
| | | LinkedHashMap<String, List<Equipment>> point_equ = new LinkedHashMap<String, List<Equipment>>();
|
| | |
|
| | |
|
| | | for (Monitorpoint point:randpoint){
|
| | | for (MonitorPoint point:randpoint){
|
| | | String name = point.getName();
|
| | | List<Equipment> equipments = mgrService.pointequ(name);
|
| | | if (equipments.size()>0){
|
| | |
| | | @ResponseBody
|
| | | public String top100(){
|
| | |
|
| | | List<Monitorpoint> randpoint = mgrService.allpoint();
|
| | | List<MonitorPoint> randpoint = mgrService.allpoint();
|
| | |
|
| | | LinkedHashMap<String, List<Equipment>> point_equ = new LinkedHashMap<String, List<Equipment>>();
|
| | |
|
| | |
|
| | |
|
| | | for (Monitorpoint point:randpoint){
|
| | | for (MonitorPoint point:randpoint){
|
| | | String name = point.getName();
|
| | | List<Equipment> equipments = mgrService.pointequ(name);
|
| | | if (equipments.size()>0){
|