md
This commit is contained in:
parent
c73a961519
commit
96fe57dad8
@ -240,24 +240,24 @@ public class EmisWaybillController extends EmisBaseController
|
|||||||
*/
|
*/
|
||||||
@Log(title = "导出进仓单", businessType = BusinessType.EXPORT)
|
@Log(title = "导出进仓单", businessType = BusinessType.EXPORT)
|
||||||
@PostMapping("/exportWarehouseInTpl")
|
@PostMapping("/exportWarehouseInTpl")
|
||||||
public AjaxResult exportWarehouseInTpl(HttpServletResponse response,WaybillOrder waybillOrder) {
|
public void exportWarehouseInTpl(HttpServletResponse response,WaybillOrder waybillOrder) {
|
||||||
|
|
||||||
try{
|
try{
|
||||||
emisWaybillService.genWarehouseInTplFile(response,waybillOrder.getOrderSn());
|
emisWaybillService.genWarehouseInTplFile(response,waybillOrder.getOrderSn());
|
||||||
return AjaxResult.success("下载成功");
|
// return AjaxResult.success("下载成功");
|
||||||
}
|
}
|
||||||
catch(EmisBizError ex){
|
catch(EmisBizError ex){
|
||||||
ex.printStackTrace();
|
ex.printStackTrace();
|
||||||
return AjaxResult.error("("+ex.getErrorCode()+")"+ex.getMessage());
|
// return AjaxResult.error("("+ex.getErrorCode()+")"+ex.getMessage());
|
||||||
}
|
}
|
||||||
catch (Exception ex){
|
catch (Exception ex){
|
||||||
ex.printStackTrace();
|
ex.printStackTrace();
|
||||||
// 返回子定义异常
|
// 返回子定义异常
|
||||||
if(ex instanceof EmisBizError){
|
// if(ex instanceof EmisBizError){
|
||||||
return AjaxResult.error(ex.getMessage(),((EmisBizError)ex).getErrorCode());
|
// return AjaxResult.error(ex.getMessage(),((EmisBizError)ex).getErrorCode());
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
return AjaxResult.error("服务器异常,联系客服");
|
// return AjaxResult.error("服务器异常,联系客服");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user