Commit 41096af3 by xiaoyj

增加物流公司编号列表返回

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@21679 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 27592cb5
......@@ -2,16 +2,22 @@ package com.glsx.ordercenter.controller;
import com.glsx.common.constants.ResultObject;
import com.glsx.ordercenter.constants.ResultCodeEnum;
import com.glsx.ordercenter.pojo.SysLogistics;
import com.glsx.ordercenter.service.LogisticsService;
import com.glsx.ordercenter.utils.KdApiUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import javax.servlet.http.HttpServletRequest;
import java.util.List;
@RestController
@RequestMapping("/logistics")
public class LogisticsController extends BaseController{
@Autowired
private LogisticsService logisticsService;
/**
* @author xiaoyj
......@@ -33,5 +39,12 @@ public class LogisticsController extends BaseController{
}
@RequestMapping(value = "/listSysLogistics ", method = RequestMethod.POST)
public ResultObject listSysLogistics(HttpServletRequest request) {
List<SysLogistics> logistics=logisticsService.listSysLogistics();
return new ResultObject(ResultCodeEnum.SUCCESS.getCode(),ResultCodeEnum.SUCCESS.getMsg(),logistics);
}
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!