|
|
|
@ -462,7 +462,7 @@ public class OrderInfoController { |
|
|
|
|
try { |
|
|
|
|
return orderInfoService.ratioConversion(Arrays.asList(orderInfoIds.split(",")), rate, xhfNsrsbh, originUnit, newUnit); |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
return R.error("系统异常,请联系管理员"); |
|
|
|
|
return R.error(ResponseStatusEnum.INTERNAL_SERVER_ERROR.getValue()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -482,8 +482,8 @@ public class OrderInfoController { |
|
|
|
|
try { |
|
|
|
|
return orderInfoService.updateOrderItem(orderInfoId,entId,itemList); |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
log.error(e.getMessage()); |
|
|
|
|
return R.error("系统异常"); |
|
|
|
|
log.error("订单更新物料异常{}",e); |
|
|
|
|
return R.error(ResponseStatusEnum.INTERNAL_SERVER_ERROR.getValue()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
@ -497,8 +497,8 @@ public class OrderInfoController { |
|
|
|
|
try { |
|
|
|
|
return orderInfoService.sycnCommodity(param); |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
log.error("同步公司物料库失败,失败原因:{}",e.getMessage()); |
|
|
|
|
return R.error("系统异常,请联系管理员"); |
|
|
|
|
log.error("同步公司物料库失败,失败原因:{}",e); |
|
|
|
|
return R.error(ResponseStatusEnum.INTERNAL_SERVER_ERROR.getValue()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -518,8 +518,8 @@ public class OrderInfoController { |
|
|
|
|
try { |
|
|
|
|
return orderInfoService.mergeOrderItem(entId,orderInfoId,itemList); |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
log.error(e.getMessage()); |
|
|
|
|
return R.error("系统异常"); |
|
|
|
|
log.error("单笔订单明细合并{}",e); |
|
|
|
|
return R.error(ResponseStatusEnum.INTERNAL_SERVER_ERROR.getValue()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -533,9 +533,26 @@ public class OrderInfoController { |
|
|
|
|
try { |
|
|
|
|
return orderInfoService.batchMegerOrderItem(jsonObjects); |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
log.error(e.getMessage()); |
|
|
|
|
return R.error("系统异常"); |
|
|
|
|
log.error("批量订单明细合并异常,{}",e); |
|
|
|
|
return R.error(ResponseStatusEnum.INTERNAL_SERVER_ERROR.getValue()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ApiOperation(value = "发票开具、作废、冲红", notes = "发票开具、作废、冲红前检查通报账单其他订单") |
|
|
|
|
@PostMapping("/checkInvoiceSync") |
|
|
|
|
@SysLog(operation = "发票开具、作废、冲红", operationDesc = "发票开具、作废、冲红前检查通报账单其他订单", key = "发票开具、作废、冲红") |
|
|
|
|
public R checkInvoiceSync(@RequestParam String operation,@RequestParam String nsrsbh,@RequestParam String param){ |
|
|
|
|
log.info("山能商旅校验是否存在同报账单订单请求参数{}",operation); |
|
|
|
|
|
|
|
|
|
if(StringUtils.isBlank(operation)||StringUtils.isBlank(param)){ |
|
|
|
|
return R.error("请求参数有误"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
try { |
|
|
|
|
return orderInfoService.checkInvoiceSync(operation,nsrsbh,param); |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
log.error("山能商旅校验是否存在同报账单订单异常{}",e); |
|
|
|
|
return R.error(ResponseStatusEnum.INTERNAL_SERVER_ERROR.getValue()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|