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
2b8d26af
Commit
2b8d26af
authored
Sep 17, 2019
by
顾俭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
审核后返回是否发布标示 & 背景图
parent
e8dd0794
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
8 deletions
+24
-8
DeliveryOrderSendClient.java
...ain/java/com/i1/erp/deo/soap/DeliveryOrderSendClient.java
+19
-6
login.jpg
src/main/resources/static/img/login.jpg
+0
-0
login_sm.png
src/main/resources/static/img/login_sm.png
+0
-0
login.html
src/main/resources/templates/login.html
+5
-2
No files found.
src/main/java/com/i1/erp/deo/soap/DeliveryOrderSendClient.java
View file @
2b8d26af
...
@@ -23,8 +23,7 @@ import java.util.List;
...
@@ -23,8 +23,7 @@ import java.util.List;
import
static
com
.
i1
.
erp
.
base
.
web
.
dto
.
SyncResponseCode
.
FAIL_CODE
;
import
static
com
.
i1
.
erp
.
base
.
web
.
dto
.
SyncResponseCode
.
FAIL_CODE
;
import
static
com
.
i1
.
erp
.
base
.
web
.
dto
.
SyncResponseCode
.
SUCCESS_CODE
;
import
static
com
.
i1
.
erp
.
base
.
web
.
dto
.
SyncResponseCode
.
SUCCESS_CODE
;
import
static
com
.
i1
.
srm
.
deliveryOrder
.
dao
.
entity
.
DoMstFile
.
CONFIRMED
;
import
static
com
.
i1
.
srm
.
deliveryOrder
.
dao
.
entity
.
DoMstFile
.*;
import
static
com
.
i1
.
srm
.
deliveryOrder
.
dao
.
entity
.
DoMstFile
.
UNCONFIRMED
;
import
static
com
.
i1
.
srm
.
utils
.
SafeType
.
safeString
;
import
static
com
.
i1
.
srm
.
utils
.
SafeType
.
safeString
;
@Component
@Component
...
@@ -272,8 +271,14 @@ public class DeliveryOrderSendClient extends WebServiceClient {
...
@@ -272,8 +271,14 @@ public class DeliveryOrderSendClient extends WebServiceClient {
Response
response
=
convertXMLToObject
(
originalResponse
.
getResponse
(),
Response
.
class
);
Response
response
=
convertXMLToObject
(
originalResponse
.
getResponse
(),
Response
.
class
);
if
(
response
.
getExecution
().
getStatus
().
getCode
().
equalsIgnoreCase
(
"0"
))
{
if
(
response
.
getExecution
().
getStatus
().
getCode
().
equalsIgnoreCase
(
"0"
))
{
// 是否更新发布状态
if
(
StringUtils
.
equalsIgnoreCase
(
"Y"
,
response
.
getExecution
().
getStatus
().
getProjectno
()))
{
updateConfirmAndRelease
(
doMstFile
,
CONFIRMED
,
RELEASED
,
true
,
"同步ERP成功"
);
return
SyncResponse
.
of
(
SUCCESS_CODE
,
"同步ERP成功"
);
}
else
{
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
()),
...
@@ -305,11 +310,19 @@ public class DeliveryOrderSendClient extends WebServiceClient {
...
@@ -305,11 +310,19 @@ 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
{
// 因为调用ERP审核的时候,ERP调用了SRM发布接口,变成了已发布,所以重新获取一下,再更新审核状态
DoMstFile
newDoMstFile
=
doMstFileService
.
get
(
doMstFile
.
getId
());
DoMstFile
newDoMstFile
=
doMstFileService
.
get
(
doMstFile
.
getId
());
logger
.
info
(
"送货单{}审核更新:更新前发布状态{},审核状态{}"
,
newDoMstFile
.
getDeliveryOrderUid
(),
newDoMstFile
.
getReleased
(),
newDoMstFile
.
getConfirm
());
newDoMstFile
.
setConfirm
(
confirm
);
newDoMstFile
.
setConfirm
(
confirm
);
newDoMstFile
.
setSentToErpInfo
(
details
);
newDoMstFile
.
setSentToErpInfo
(
details
);
doMstFileService
.
update
(
newDoMstFile
);
doMstFileService
.
update
(
newDoMstFile
);
}
}
@Transactional
public
void
updateConfirmAndRelease
(
DoMstFile
doMstFile
,
String
confirm
,
String
release
,
boolean
status
,
String
details
)
throws
IOneServiceException
{
DoMstFile
newDoMstFile
=
doMstFileService
.
get
(
doMstFile
.
getId
());
newDoMstFile
.
setConfirm
(
confirm
);
newDoMstFile
.
setReleased
(
release
);
newDoMstFile
.
setSentToErp
(
status
);
newDoMstFile
.
setSentToErpInfo
(
details
);
doMstFileService
.
update
(
newDoMstFile
);
}
}
}
\ No newline at end of file
src/main/resources/static/img/login.jpg
0 → 100644
View file @
2b8d26af
557 KB
src/main/resources/static/img/login_sm.png
0 → 100644
View file @
2b8d26af
5.46 KB
src/main/resources/templates/login.html
View file @
2b8d26af
...
@@ -17,8 +17,11 @@
...
@@ -17,8 +17,11 @@
</head>
</head>
<body
class=
"hold-transition login-page"
>
<body
class=
"hold-transition login-page"
>
<div
class=
"login-box"
>
<div
class=
"login-box"
>
<div
class=
"login-logo"
>
<div
class=
"login-logo"
style=
"color:white;"
>
<b></b>
ESRM
<!--<b ></b>ESRM-->
<span
class=
"logo-mini"
>
<img
style=
"width: 220px;"
src=
"img/login_sm.png"
/>
</span>
</div>
</div>
<div
class=
"login-box-body"
>
<div
class=
"login-box-body"
>
<p
class=
"login-box-msg"
>
请输入用户名和密码登录
</p>
<p
class=
"login-box-msg"
>
请输入用户名和密码登录
</p>
...
...
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