Commit dfeda6b0 authored by 顾俭's avatar 顾俭

更新审核状态

parent abef22fa
......@@ -275,7 +275,7 @@ public class DeliveryOrderSendClient extends WebServiceClient {
updateConfirm(doMstFile, CONFIRMED, "提交审核成功");
return SyncResponse.of(SUCCESS_CODE, "提交审核成功");
} else {
String errorDetails = String.format("失败码:%s, 原因:%s,SQL:%s",
String errorDetails = String.format("审核失败码:%s, 原因:%s,SQL:%s",
safeString(response.getExecution().getStatus().getCode()),
safeString(response.getExecution().getStatus().getDescription()),
safeString(response.getExecution().getStatus().getSqlcode()));
......@@ -305,8 +305,11 @@ public class DeliveryOrderSendClient extends WebServiceClient {
@Transactional
public void updateConfirm(DoMstFile doMstFile, String confirm, String details) throws IOneServiceException {
doMstFile.setConfirm(confirm);
doMstFile.setSentToErpInfo(details);
doMstFileService.update(doMstFile);
// 因为调用ERP审核的时候,ERP调用了SRM发布接口,变成了已发布,所以重新获取一下,再更新审核状态
DoMstFile newDoMstFile = doMstFileService.get(doMstFile.getId());
logger.info("送货单{}审核更新:更新前发布状态{},审核状态{}", newDoMstFile.getDeliveryOrderUid(), newDoMstFile.getReleased(), newDoMstFile.getConfirm());
newDoMstFile.setConfirm(confirm);
newDoMstFile.setSentToErpInfo(details);
doMstFileService.update(newDoMstFile);
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment