|
@@ -15,22 +15,22 @@ import org.springframework.web.servlet.ModelAndView;
|
|
|
import com.lemon.lifecenter.common.LifeCenterConfigVO;
|
|
|
import com.lemon.lifecenter.common.LifeCenterController;
|
|
|
import com.lemon.lifecenter.common.LifeCenterPaging;
|
|
|
-import com.lemon.lifecenter.dto.ApiMoniterDTO;
|
|
|
+import com.lemon.lifecenter.dto.ApiMonitorDTO;
|
|
|
import com.lemon.lifecenter.dto.CenterInfoDTO;
|
|
|
import com.lemon.lifecenter.dto.LocationDTO;
|
|
|
-import com.lemon.lifecenter.service.ApiMoniterService;
|
|
|
+import com.lemon.lifecenter.service.ApiMonitorService;
|
|
|
import com.lemon.lifecenter.service.CenterService;
|
|
|
|
|
|
@Controller
|
|
|
-@RequestMapping("/apiMoniter")
|
|
|
-public class ApiMoniteringController extends LifeCenterController {
|
|
|
+@RequestMapping("/apiMonitor")
|
|
|
+public class ApiMonitoringController extends LifeCenterController {
|
|
|
private final Logger logger = LoggerFactory.getLogger(this.getClass());
|
|
|
|
|
|
@Autowired
|
|
|
private CenterService centerService;
|
|
|
|
|
|
@Autowired
|
|
|
- private ApiMoniterService moniterService;
|
|
|
+ private ApiMonitorService monitorService;
|
|
|
|
|
|
@Autowired
|
|
|
private LifeCenterConfigVO config;
|
|
@@ -38,7 +38,7 @@ public class ApiMoniteringController extends LifeCenterController {
|
|
|
|
|
|
@RequestMapping("/list")
|
|
|
public ModelAndView list(
|
|
|
- @ModelAttribute("dto") ApiMoniterDTO dto,
|
|
|
+ @ModelAttribute("dto") ApiMonitorDTO dto,
|
|
|
@RequestParam(value="page", required=false, defaultValue="1") int page,
|
|
|
@RequestParam(value="centerName", required=false, defaultValue="") String centerName,
|
|
|
@RequestParam(value="locationCode", required=false, defaultValue="") String locationCode,
|
|
@@ -49,17 +49,17 @@ public class ApiMoniteringController extends LifeCenterController {
|
|
|
dto.setLimitMax( config.pageDataSize );
|
|
|
|
|
|
List<LocationDTO> locationList = centerService.selectLocation();
|
|
|
- int total = moniterService.selectApiStatisticsCount(dto);
|
|
|
- List<ApiMoniterDTO> list = new ArrayList<ApiMoniterDTO>();
|
|
|
+ int total = monitorService.selectApiStatisticsCount(dto);
|
|
|
+ List<ApiMonitorDTO> list = new ArrayList<ApiMonitorDTO>();
|
|
|
if (total > 0) {
|
|
|
- list = moniterService.selectApiStatistics(dto);
|
|
|
+ list = monitorService.selectApiStatistics(dto);
|
|
|
}
|
|
|
|
|
|
String param = "centerName=" + dto.getCenterName() + "&locationCode=" + dto.getLocationCode() + "&startDate=" + dto.getStartDate() + "&endDate=" + dto.getEndDate();
|
|
|
paging = LifeCenterPaging.getInstance();
|
|
|
paging.paging(config, total, page, param);
|
|
|
|
|
|
- ModelAndView mv = setMV("api/moniter/list");
|
|
|
+ ModelAndView mv = setMV("api/monitor/list");
|
|
|
mv.addObject("locationList", locationList);
|
|
|
mv.addObject("total", total);
|
|
|
mv.addObject("item", list);
|
|
@@ -75,13 +75,13 @@ public class ApiMoniteringController extends LifeCenterController {
|
|
|
|
|
|
@RequestMapping("/chart")
|
|
|
public ModelAndView chart() {
|
|
|
- ModelAndView mv = setMV("api/moniter/chart");
|
|
|
+ ModelAndView mv = setMV("api/monitor/chart");
|
|
|
return mv;
|
|
|
}
|
|
|
|
|
|
@RequestMapping("/state")
|
|
|
public ModelAndView state() {
|
|
|
- ModelAndView mv = setMV("api/moniter/state");
|
|
|
+ ModelAndView mv = setMV("api/monitor/state");
|
|
|
return mv;
|
|
|
}
|
|
|
}
|