| | |
| | | package com.moral.monitor.controller;
|
| | |
|
| | | import com.moral.monitor.entity.Monitorpoint;
|
| | | import com.moral.monitor.entity.MonitorPoint;
|
| | | import com.moral.monitor.entity.QueryHelper;
|
| | | import com.moral.monitor.service.MonitorpointService;
|
| | | import org.apache.commons.logging.Log;
|
| | |
| | | }
|
| | |
|
| | | LinkedHashMap<String, Object> s = new LinkedHashMap<String, Object>();
|
| | | List<Monitorpoint> equs = monitorPointService.allMonitorpoint(queryHelper);
|
| | | List<MonitorPoint> equs = monitorPointService.allMonitorpoint(queryHelper);
|
| | | s.put("rows",equs);
|
| | |
|
| | | int total = monitorPointService.monitorCount(queryHelper);
|
| | |
| | |
|
| | | @RequestMapping("/addMonitorpoint")
|
| | | @ResponseBody
|
| | | public String addMonitorpoint(@RequestBody Monitorpoint monitorPoint){
|
| | | public String addMonitorpoint(@RequestBody MonitorPoint monitorPoint){
|
| | |
|
| | | try {
|
| | | String name = monitorPoint.getName();
|
| | |
| | |
|
| | | @RequestMapping("/editMonitorPoint")
|
| | | @ResponseBody
|
| | | public String editMonitorPoint(@RequestBody Monitorpoint monitorPoint){
|
| | | public String editMonitorPoint(@RequestBody MonitorPoint monitorPoint){
|
| | | try {
|
| | | monitorPointService.updateMonitorpoint(monitorPoint);
|
| | | }catch (Exception e){
|