Authored by simba

update

... ... @@ -2,7 +2,7 @@ package com.monitor.cmdb.controller;
import com.model.MechineInfo;
import com.monitor.cmdb.service.IMechineInfoService;
import com.monitor.cmdb.vo.req.MechineInfoReq;
import com.monitor.model.request.MechineInfoReq;
import com.monitor.model.response.PageResponse;
import com.monitor.model.response.Response;
import org.slf4j.Logger;
... ... @@ -18,7 +18,7 @@ import org.springframework.web.bind.annotation.ResponseBody;
* Created by yoho on 2016/6/14.
*/
@Controller
@RequestMapping("MechineInfoController")
@RequestMapping("mechineInfo")
public class MechineInfoController {
Logger log = LoggerFactory.getLogger(MechineInfoController.class);
... ... @@ -26,7 +26,7 @@ public class MechineInfoController {
@Autowired
IMechineInfoService mechineInfoService;
@RequestMapping("/getMechineInfos.do")
@RequestMapping("/getMechineInfos")
@ResponseBody
public Response<PageResponse<MechineInfo>> getMechineInfos(MechineInfoReq req) throws Exception {
log.debug("getMechineInfos with param is {}", req);
... ... @@ -35,7 +35,6 @@ public class MechineInfoController {
if (responseBO == null || CollectionUtils.isEmpty(responseBO.getRows())) {
return new Response<PageResponse<MechineInfo>>();
}
PageResponse<MechineInfo> response = new PageResponse<MechineInfo>();
response.setCurrentPage(responseBO.getCurrentPage());
response.setRows(responseBO.getRows());
... ...
package com.monitor.cmdb.service;
import com.model.MechineInfo;
import com.monitor.cmdb.vo.req.MechineInfoReq;
import com.monitor.model.request.MechineInfoReq;
import com.monitor.model.response.PageResponse;
/**
... ...
... ... @@ -2,8 +2,8 @@ package com.monitor.cmdb.service.impl;
import com.model.MechineInfo;
import com.monitor.cmdb.service.IMechineInfoService;
import com.monitor.cmdb.vo.req.MechineInfoReq;
import com.monitor.model.domain.PageBean;
import com.monitor.model.request.MechineInfoReq;
import com.monitor.model.response.PageResponse;
import com.monitor.mysql.mapper.MechineInfoMapper;
import org.slf4j.Logger;
... ...