Commit 9f1bb499 by xiaoyj

物流编码列表提交

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@21691 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 631d6af1
......@@ -3,6 +3,7 @@ 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.pojo.Test;
import com.glsx.ordercenter.service.LogisticsService;
import com.glsx.ordercenter.utils.KdApiUtil;
import org.springframework.beans.factory.annotation.Autowired;
......@@ -16,6 +17,7 @@ import java.util.List;
@RestController
@RequestMapping("/logistics")
public class LogisticsController extends BaseController{
@Autowired
private LogisticsService logisticsService;
......@@ -26,7 +28,7 @@ public class LogisticsController extends BaseController{
* @param expNo 快递单号
* @return ResultObject
*/
@RequestMapping(value = "/catLogisticsTrail ", method = RequestMethod.POST)
@RequestMapping(value = "/catLogisticsTrail", method = { RequestMethod.GET, RequestMethod.POST })
public ResultObject catLogisticsTrail(HttpServletRequest request, String expCode, String expNo) {
KdApiUtil kdApiUtil=new KdApiUtil();
try {
......@@ -38,8 +40,13 @@ public class LogisticsController extends BaseController{
return new ResultObject(ResultCodeEnum.ERROR.getCode(),ResultCodeEnum.ERROR.getMsg());
}
@RequestMapping(value = "/listSysLogistics ", method = RequestMethod.POST)
/**
* @author xiaoyj
* @param request
* 物流公司编码列表
* @return ResultObject
*/
@RequestMapping(value = "/listSysLogistics", method = { RequestMethod.GET, 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!