md
This commit is contained in:
parent
f3085eb68a
commit
05d1965ead
@ -98,6 +98,46 @@ public class EmisWaybillController extends EmisBaseController
|
|||||||
return AjaxResult.success("操作成功", emisBaseService.checkWaybillIsExists(billCode));
|
return AjaxResult.success("操作成功", emisBaseService.checkWaybillIsExists(billCode));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取运单信息
|
||||||
|
*/
|
||||||
|
@GetMapping(value = "/getEmisWaybillByBillCode")
|
||||||
|
public AjaxResult getEmisWaybillByBillCode(String billCode)
|
||||||
|
{
|
||||||
|
try {
|
||||||
|
|
||||||
|
EmisWaybill dbEmisWaybill=null;
|
||||||
|
|
||||||
|
if(StringUtils.isEmpty(billCode) ){
|
||||||
|
return AjaxResult.error("参数错误");
|
||||||
|
}
|
||||||
|
|
||||||
|
billCode=WaybillHelper.formatQueryValue(billCode);
|
||||||
|
if(!StringUtils.isEmpty(billCode) ){
|
||||||
|
boolean isExists=emisBaseService.checkWaybillIsExists(billCode);
|
||||||
|
if(!isExists){
|
||||||
|
return AjaxResult.error("运单不存在");
|
||||||
|
}
|
||||||
|
String mainBillCode=emisBaseService.getMainBillCode(billCode);
|
||||||
|
dbEmisWaybill = emisWaybillService.selectEmisWaybillByBillCode(mainBillCode);
|
||||||
|
if(dbEmisWaybill==null){
|
||||||
|
return AjaxResult.error("运单不存在");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return AjaxResult.success("获取成功",dbEmisWaybill);
|
||||||
|
}
|
||||||
|
catch (Exception ex){
|
||||||
|
ex.printStackTrace();
|
||||||
|
// 返回子定义异常
|
||||||
|
if(ex instanceof EmisBizError){
|
||||||
|
return AjaxResult.error(ex.getMessage(),((EmisBizError)ex).getErrorCode());
|
||||||
|
}
|
||||||
|
|
||||||
|
return AjaxResult.error("服务器异常,联系客服");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取电子运单信息
|
* 获取电子运单信息
|
||||||
*/
|
*/
|
||||||
@ -505,9 +545,6 @@ public class EmisWaybillController extends EmisBaseController
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询订单列表
|
* 查询订单列表
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -87,6 +87,7 @@ public interface IEmisWaybillService extends IDataAuditService
|
|||||||
public WaybillOrder getWaybillOrderByBillCode(String billCode) throws EmisBizError;
|
public WaybillOrder getWaybillOrderByBillCode(String billCode) throws EmisBizError;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// public WaybillOrder getWaybillOrderByBillCodeByOms(String billCode) throws EmisBizError;
|
// public WaybillOrder getWaybillOrderByBillCodeByOms(String billCode) throws EmisBizError;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -233,6 +233,9 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据订单获取运单
|
* 根据订单获取运单
|
||||||
* @param orderSn
|
* @param orderSn
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user