1.单据上传失败更新上传字段状态值为上传失败

orderChange
x_z 2 years ago
parent 22d0564488
commit 4dc0a57dfe

@ -257,6 +257,8 @@ public class StockOrderServiceImpl implements StockOrderService {
String response = httpOkClient.uCloudPost(basicThirdSysEntity.getThridUrl() + "/udiwms/erp/submitOrders", udiwmsOrderRequest);
if (StrUtil.isEmpty(response)) {
log.error("单据提交失败");
//更新单据上传状态为上传失败
orderDao.updateExportStatus(id, 2);
return ResultVOUtils.error(500, "提交失败");
}
BaseResponse baseResponse = JSONObject.parseObject(response, new TypeReference<BaseResponse>() {
@ -265,6 +267,8 @@ public class StockOrderServiceImpl implements StockOrderService {
return ResultVOUtils.success("提交成功");
} else {
log.error("单据提交失败,异常信息:" + baseResponse.getMessage());
//更新单据上传状态为上传失败
orderDao.updateExportStatus(id, 2);
return ResultVOUtils.error(500, "提交失败");
}
}

Loading…
Cancel
Save