Commit e108d1ed by xiaoyj

物流轨迹接口修改

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@21898 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent f68d3f6f
......@@ -69,6 +69,7 @@ public enum ResultCodeEnum {
INDENT_NOT_EXIST(5105,"订货单不存在"),
INDENT_STATUS_NOT_RIGHT(5106, "订货单状态不对,不允许确认收货"),
INDENT_NOT_MATCH(5107,"不是当前用户的订货单,不能确认收货"),
INDENT_LOGISTICS_NOT_EXIST(5108,"订货单物流信息不存在"),
/**
* 库存相关
*/
......
......@@ -12,6 +12,7 @@ import com.glsx.ordercenter.service.IndentLogisticsService;
import com.glsx.ordercenter.service.LogisticsService;
import com.glsx.ordercenter.utils.KdApiUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.StringUtils;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
......@@ -43,6 +44,10 @@ public class LogisticsController extends BaseController{
String expCode=sysIndentLogistics.getLogisticsUnicode();
String expNo=sysIndentLogistics.getLogisticsNo();
if(StringUtils.isEmpty(expCode) || StringUtils.isEmpty(expNo)){
return new ResultObject(ResultCodeEnum.INDENT_LOGISTICS_NOT_EXIST.getCode(), ResultCodeEnum.INDENT_LOGISTICS_NOT_EXIST.getMsg());
}
KdApiUtil kdApiUtil=new KdApiUtil();
try {
String result=kdApiUtil.getOrderTracesByJson(expCode,expNo);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!