Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
srm
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
aship
srm
Commits
dfeda6b0
Commit
dfeda6b0
authored
Sep 03, 2019
by
顾俭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新审核状态
parent
abef22fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
DeliveryOrderSendClient.java
...ain/java/com/i1/erp/deo/soap/DeliveryOrderSendClient.java
+7
-4
No files found.
src/main/java/com/i1/erp/deo/soap/DeliveryOrderSendClient.java
View file @
dfeda6b0
...
@@ -275,7 +275,7 @@ public class DeliveryOrderSendClient extends WebServiceClient {
...
@@ -275,7 +275,7 @@ public class DeliveryOrderSendClient extends WebServiceClient {
updateConfirm
(
doMstFile
,
CONFIRMED
,
"提交审核成功"
);
updateConfirm
(
doMstFile
,
CONFIRMED
,
"提交审核成功"
);
return
SyncResponse
.
of
(
SUCCESS_CODE
,
"提交审核成功"
);
return
SyncResponse
.
of
(
SUCCESS_CODE
,
"提交审核成功"
);
}
else
{
}
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
().
getCode
()),
safeString
(
response
.
getExecution
().
getStatus
().
getDescription
()),
safeString
(
response
.
getExecution
().
getStatus
().
getDescription
()),
safeString
(
response
.
getExecution
().
getStatus
().
getSqlcode
()));
safeString
(
response
.
getExecution
().
getStatus
().
getSqlcode
()));
...
@@ -305,8 +305,11 @@ public class DeliveryOrderSendClient extends WebServiceClient {
...
@@ -305,8 +305,11 @@ public class DeliveryOrderSendClient extends WebServiceClient {
@Transactional
@Transactional
public
void
updateConfirm
(
DoMstFile
doMstFile
,
String
confirm
,
String
details
)
throws
IOneServiceException
{
public
void
updateConfirm
(
DoMstFile
doMstFile
,
String
confirm
,
String
details
)
throws
IOneServiceException
{
doMstFile
.
setConfirm
(
confirm
);
// 因为调用ERP审核的时候,ERP调用了SRM发布接口,变成了已发布,所以重新获取一下,再更新审核状态
doMstFile
.
setSentToErpInfo
(
details
);
DoMstFile
newDoMstFile
=
doMstFileService
.
get
(
doMstFile
.
getId
());
doMstFileService
.
update
(
doMstFile
);
logger
.
info
(
"送货单{}审核更新:更新前发布状态{},审核状态{}"
,
newDoMstFile
.
getDeliveryOrderUid
(),
newDoMstFile
.
getReleased
(),
newDoMstFile
.
getConfirm
());
newDoMstFile
.
setConfirm
(
confirm
);
newDoMstFile
.
setSentToErpInfo
(
details
);
doMstFileService
.
update
(
newDoMstFile
);
}
}
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment