Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
T
topsun-bpm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
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
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
鲁鑫
topsun-bpm
Commits
01511da9
Commit
01511da9
authored
Mar 21, 2024
by
鲁鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
付款相关修改
parent
3668dea2
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
164 additions
and
101 deletions
+164
-101
advancePayment.js
...webapp/biz/topsun/sap/costReimbursement/advancePayment.js
+7
-9
costReimbursement.js
...app/biz/topsun/sap/costReimbursement/costReimbursement.js
+1
-8
employeeLoan.js
...n/webapp/biz/topsun/sap/costReimbursement/employeeLoan.js
+7
-13
payApply.js
.../main/webapp/biz/topsun/sap/costReimbursement/payApply.js
+17
-9
payApply.jsp
...main/webapp/biz/topsun/sap/costReimbursement/payApply.jsp
+1
-1
payApplyList.js
...n/webapp/biz/topsun/sap/costReimbursement/payApplyList.js
+1
-1
refundApply.js
...in/webapp/biz/topsun/sap/costReimbursement/refundApply.js
+90
-34
refundApply.jsp
...n/webapp/biz/topsun/sap/costReimbursement/refundApply.jsp
+1
-1
refundApplyList.js
...ebapp/biz/topsun/sap/costReimbursement/refundApplyList.js
+1
-1
SapCostReimbursementApplicationImpl.java
...application/impl/SapCostReimbursementApplicationImpl.java
+38
-24
No files found.
topsun-xt/src/main/webapp/biz/topsun/sap/costReimbursement/advancePayment.js
View file @
01511da9
...
...
@@ -72,7 +72,7 @@ var tableArray = [
}
},
{
display
:
"BP银行账号"
,
name
:
"bankn"
,
width
:
12
0
,
minwidth
:
120
,
type
:
"string"
,
align
:
"left"
,
display
:
"BP银行账号"
,
name
:
"bankn"
,
width
:
20
0
,
minwidth
:
120
,
type
:
"string"
,
align
:
"left"
,
editor
:
{
required
:
true
,
type
:
"select"
,
data
:
{
...
...
@@ -285,22 +285,20 @@ var tableArray = [
}
},
}*/
editor
:
{
type
:
'text'
render
:
function
(
item
){
return
item
.
zlsch
=
"T"
}
},
{
display
:
"付款方式名称"
,
name
:
"zlschText1"
,
width
:
120
,
minwidth
:
120
,
type
:
"string"
,
align
:
"left"
,
editor
:
{
type
:
'text'
render
:
function
(
item
){
return
item
.
zlschText1
=
"电汇"
}
},
{
display
:
"直联付款标识"
,
name
:
"zepBank"
,
width
:
120
,
minwidth
:
120
,
type
:
"string"
,
align
:
"left"
,
editor
:
{
required
:
tru
e
,
type
:
"select"
,
required
:
fals
e
,
type
:
"select"
,
data
:
{
type
:
'system'
,
name
:
"dictionary"
,
...
...
@@ -327,7 +325,7 @@ var tableArray = [
{
display
:
"记账过账日期"
,
name
:
"budat"
,
width
:
120
,
minwidth
:
120
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"记账凭证日期"
,
name
:
"bldat"
,
width
:
120
,
minwidth
:
120
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"返回状态"
,
name
:
"msgty"
,
width
:
120
,
minwidth
:
120
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"返回消息"
,
name
:
"msgtx"
,
width
:
12
0
,
minwidth
:
120
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"返回消息"
,
name
:
"msgtx"
,
width
:
30
0
,
minwidth
:
120
,
type
:
"string"
,
align
:
"left"
},
]
},
{
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/costReimbursement/costReimbursement.js
View file @
01511da9
...
...
@@ -48,9 +48,6 @@ var tableArray = [
}
},
}
/*editor: {
type: 'text'
}*/
},
{
display
:
"BP标识描述"
,
name
:
"zepBptypename"
,
width
:
120
,
minwidth
:
120
,
type
:
"string"
,
align
:
"left"
,
...
...
@@ -497,10 +494,6 @@ var tableArray = [
}
},
}
// editor: {
// type: 'text'
// }
},
]
}
...
...
@@ -516,7 +509,7 @@ var tableArray = [
{
display
:
"记账过账日期"
,
name
:
"budat"
,
width
:
120
,
minwidth
:
120
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"记账凭证日期"
,
name
:
"bldat"
,
width
:
120
,
minwidth
:
120
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"返回状态"
,
name
:
"msgty"
,
width
:
120
,
minwidth
:
120
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"返回消息"
,
name
:
"msgtx"
,
width
:
12
0
,
minwidth
:
120
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"返回消息"
,
name
:
"msgtx"
,
width
:
30
0
,
minwidth
:
120
,
type
:
"string"
,
align
:
"left"
},
]
}
,
{
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/costReimbursement/employeeLoan.js
View file @
01511da9
...
...
@@ -276,22 +276,20 @@ var tableArray = [
}
},
}*/
editor
:
{
type
:
'text'
render
:
function
(
item
){
return
item
.
zlsch
=
"T"
}
},
{
display
:
"付款方式名称"
,
name
:
"zlschText1"
,
width
:
120
,
minwidth
:
120
,
type
:
"string"
,
align
:
"left"
,
editor
:
{
type
:
'text'
render
:
function
(
item
){
return
item
.
zlschText1
=
"电汇"
}
},
{
display
:
"直联付款标识"
,
name
:
"zepBank"
,
width
:
120
,
minwidth
:
120
,
type
:
"string"
,
align
:
"left"
,
/*
editor: {
required:
tru
e, type: "select",
editor
:
{
required
:
fals
e
,
type
:
"select"
,
data
:
{
type
:
'system'
,
name
:
"dictionary"
,
...
...
@@ -302,10 +300,6 @@ var tableArray = [
ZEP_BANK
:
"zepBank"
,
}
},
}*/
editor
:
{
type
:
'text'
}
},
]
...
...
@@ -364,7 +358,7 @@ var tableArray = [
{
display
:
"记账过账日期"
,
name
:
"budat"
,
width
:
120
,
minwidth
:
120
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"记账凭证日期"
,
name
:
"bldat"
,
width
:
120
,
minwidth
:
120
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"返回状态"
,
name
:
"msgty"
,
width
:
120
,
minwidth
:
120
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"返回消息"
,
name
:
"msgtx"
,
width
:
12
0
,
minwidth
:
120
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"返回消息"
,
name
:
"msgtx"
,
width
:
30
0
,
minwidth
:
120
,
type
:
"string"
,
align
:
"left"
},
]
}
,
{
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/costReimbursement/payApply.js
View file @
01511da9
...
...
@@ -199,7 +199,7 @@ var tableArray = [
{
display
:
"原因代码"
,
name
:
"rstgrName"
,
width
:
120
,
minwidth
:
120
,
type
:
"string"
,
align
:
"left"
,
editor
:
{
required
:
tru
e
,
type
:
"select"
,
required
:
fals
e
,
type
:
"select"
,
data
:
{
type
:
'system'
,
name
:
"dictionary"
,
...
...
@@ -258,22 +258,30 @@ var tableArray = [
},
{
display
:
"付款方式代码"
,
name
:
"zlsch"
,
width
:
120
,
minwidth
:
120
,
type
:
"string"
,
align
:
"left"
,
editor
:
{
type
:
'text'
render
:
function
(
item
){
return
item
.
zlsch
=
"T"
}
},
{
display
:
"付款方式名称"
,
name
:
"zlschText1"
,
width
:
120
,
minwidth
:
120
,
type
:
"string"
,
align
:
"left"
,
editor
:
{
type
:
'text'
render
:
function
(
item
){
return
item
.
zlschText1
=
"电汇"
}
},
{
display
:
"直联付款标识"
,
name
:
"zepBank"
,
width
:
120
,
minwidth
:
120
,
type
:
"string"
,
align
:
"left"
,
editor
:
{
type
:
'text'
required
:
false
,
type
:
"select"
,
data
:
{
type
:
'system'
,
name
:
"dictionary"
,
getParam
:
function
(
item
)
{
return
{
fieldName
:
"ZEP_BANK"
}
},
back
:
{
ZEP_BANK
:
"zepBank"
,
}
},
}
}
]
...
...
@@ -336,7 +344,7 @@ var tableArray = [
{
display
:
"记账过账日期"
,
name
:
"budat"
,
width
:
120
,
minwidth
:
120
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"记账凭证日期"
,
name
:
"bldat"
,
width
:
120
,
minwidth
:
120
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"返回状态"
,
name
:
"msgty"
,
width
:
120
,
minwidth
:
120
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"返回消息"
,
name
:
"msgtx"
,
width
:
12
0
,
minwidth
:
120
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"返回消息"
,
name
:
"msgtx"
,
width
:
30
0
,
minwidth
:
120
,
type
:
"string"
,
align
:
"left"
},
]
}
,
{
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/costReimbursement/payApply.jsp
View file @
01511da9
...
...
@@ -32,7 +32,7 @@
</div>
<div
class=
"hg-form-row"
>
<x:inputC
name=
"zepFtypename"
required=
"false"
readonly=
"true"
label=
"EP付款申请类别名称"
labelCol=
"2"
maxLength=
"64"
fieldCol=
"2"
/>
<x:inputC
name=
"bukrs"
required=
"
fals
e"
label=
"公司代码"
labelCol=
"2"
fieldCol=
"2"
wrapper=
"select"
/>
<x:inputC
name=
"bukrs"
required=
"
tru
e"
label=
"公司代码"
labelCol=
"2"
fieldCol=
"2"
wrapper=
"select"
/>
<x:inputC
name=
"butxt"
required=
"false"
readonly=
"true"
label=
"公司代码名称"
labelCol=
"2"
fieldCol=
"2"
/>
</div>
<div
class=
"hg-form-row"
>
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/costReimbursement/payApplyList.js
View file @
01511da9
...
...
@@ -76,7 +76,7 @@ DataUtil.getUpdateRowId = function (gridManager) {
function
addPayApply
(){
UICtrl
.
addTabItem
({
tabid
:
'payApply'
,
tabid
:
'payApply
Id
'
,
text
:
"付款申请单"
,
url
:
web_app
.
name
+
'/sapCostReimbursement/forwardCostReimbursement.job?type=pay'
});
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/costReimbursement/refundApply.js
View file @
01511da9
...
...
@@ -9,8 +9,18 @@ var tableArray = [
{
display
:
"计划内外付款标识"
,
name
:
"zepPlan"
,
width
:
120
,
minwidth
:
120
,
type
:
"string"
,
align
:
"left"
,
editor
:
{
type
:
'text'
required
:
true
,
type
:
"select"
,
data
:
{
type
:
'system'
,
name
:
"dictionary"
,
getParam
:
function
(
item
)
{
return
{
fieldName
:
"ZEP_PLAN"
}
},
back
:
{
ZEP_PLAN
:
"zepPlan"
,
ZEP_PLANNAME
:
"zepPlanname"
}
},
}
},
{
...
...
@@ -20,30 +30,34 @@ var tableArray = [
minwidth
:
120
,
type
:
"string"
,
align
:
"left"
,
editor
:
{
type
:
'text'
}
},
{
display
:
"BP标识"
,
name
:
"zepBptype"
,
width
:
120
,
minwidth
:
120
,
type
:
"string"
,
align
:
"left"
,
editor
:
{
type
:
'text'
}
},
{
display
:
"BP标识描述"
,
name
:
"zepBptypename"
,
width
:
120
,
minwidth
:
120
,
type
:
"string"
,
align
:
"left"
,
editor
:
{
type
:
'text'
}
},
{
display
:
"BP(合作伙伴)"
,
name
:
"partner"
,
width
:
120
,
minwidth
:
120
,
type
:
"string"
,
align
:
"left"
,
editor
:
{
type
:
'text'
required
:
true
,
type
:
"select"
,
data
:
{
type
:
'system'
,
name
:
"getCusAndSuppliers"
,
getParam
:
function
(
item
)
{
return
{
ZEP_BPTYPE
:
item
.
zepBptype
,
BUKRS
:
$
(
"#bukrs"
).
val
()
}
},
back
:
{
PARTNER
:
"partner"
,
NAME_ORG1
:
"koinh"
,
BANKL
:
"bankl"
,
BANKN
:
"bankn"
,
SWIFT
:
"swift"
,
}
},
}
},
{
...
...
@@ -54,14 +68,28 @@ var tableArray = [
}
},
{
display
:
"BP
联行号"
,
name
:
"bankl"
,
width
:
12
0
,
minwidth
:
120
,
type
:
"string"
,
align
:
"left"
,
display
:
"BP
银行账号"
,
name
:
"bankn"
,
width
:
20
0
,
minwidth
:
120
,
type
:
"string"
,
align
:
"left"
,
editor
:
{
type
:
'text'
required
:
true
,
type
:
"select"
,
data
:
{
type
:
'system'
,
name
:
"getCusAndBanks"
,
getParam
:
function
(
item
)
{
return
{
ZEP_BPTYPE
:
item
.
zepBptype
,
PARTNER
:
item
.
partner
}
},
back
:
{
BANKN
:
"bankn"
,
BANKL
:
"bankl"
,
SWIFT
:
"swift"
,
}
},
}
},
{
display
:
"BP
银行账号"
,
name
:
"bankn
"
,
width
:
120
,
minwidth
:
120
,
type
:
"string"
,
align
:
"left"
,
display
:
"BP
联行号"
,
name
:
"bankl
"
,
width
:
120
,
minwidth
:
120
,
type
:
"string"
,
align
:
"left"
,
editor
:
{
type
:
'text'
...
...
@@ -118,7 +146,7 @@ var tableArray = [
{
display
:
"原因代码"
,
name
:
"rstgrName"
,
width
:
120
,
minwidth
:
120
,
type
:
"string"
,
align
:
"left"
,
editor
:
{
required
:
tru
e
,
type
:
"select"
,
required
:
fals
e
,
type
:
"select"
,
data
:
{
type
:
'system'
,
name
:
"dictionary"
,
...
...
@@ -162,29 +190,45 @@ var tableArray = [
{
display
:
"是否付款"
,
name
:
"zepPay"
,
width
:
120
,
minwidth
:
120
,
type
:
"string"
,
align
:
"left"
,
editor
:
{
type
:
'text'
required
:
false
,
type
:
"select"
,
data
:
{
type
:
'system'
,
name
:
"dictionary"
,
getParam
:
function
(
item
)
{
return
{
fieldName
:
"ZEP_PAY"
}
},
back
:
{
ZEP_PAY
:
"zepPay"
,
}
},
}
},
{
display
:
"付款方式代码"
,
name
:
"zlsch"
,
width
:
120
,
minwidth
:
120
,
type
:
"string"
,
align
:
"left"
,
editor
:
{
type
:
'text'
render
:
function
(
item
){
return
item
.
zlsch
=
"T"
}
},
{
display
:
"付款方式名称"
,
name
:
"zlschText1"
,
width
:
120
,
minwidth
:
120
,
type
:
"string"
,
align
:
"left"
,
editor
:
{
type
:
'text'
render
:
function
(
item
){
return
item
.
zlschText1
=
"电汇"
}
},
{
display
:
"直联付款标识"
,
name
:
"zepBank"
,
width
:
120
,
minwidth
:
120
,
type
:
"string"
,
align
:
"left"
,
editor
:
{
type
:
'text'
required
:
false
,
type
:
"select"
,
data
:
{
type
:
'system'
,
name
:
"dictionary"
,
getParam
:
function
(
item
)
{
return
{
fieldName
:
"ZEP_BANK"
}
},
back
:
{
ZEP_BANK
:
"zepBank"
,
}
},
}
},
]
...
...
@@ -198,8 +242,20 @@ var tableArray = [
{
display
:
"付款银行账号"
,
name
:
"bankn1"
,
width
:
120
,
minwidth
:
120
,
type
:
"string"
,
align
:
"left"
,
editor
:
{
type
:
'text'
required
:
false
,
type
:
"select"
,
data
:
{
type
:
'system'
,
name
:
"getCompanyAndBankInfos"
,
getParam
:
function
(
item
)
{
return
{
BUKRS
:
$
(
"#bukrs"
).
val
()
}
},
back
:
{
BANKN1
:
"bankn1"
,
TEXT1
:
"zt012kText1"
,
}
},
}
},
{
...
...
@@ -235,7 +291,7 @@ var tableArray = [
{
display
:
"记账过账日期"
,
name
:
"budat"
,
width
:
120
,
minwidth
:
120
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"记账凭证日期"
,
name
:
"bldat"
,
width
:
120
,
minwidth
:
120
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"返回状态"
,
name
:
"msgty"
,
width
:
120
,
minwidth
:
120
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"返回消息"
,
name
:
"msgtx"
,
width
:
12
0
,
minwidth
:
120
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"返回消息"
,
name
:
"msgtx"
,
width
:
30
0
,
minwidth
:
120
,
type
:
"string"
,
align
:
"left"
},
]
}
,
{
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/costReimbursement/refundApply.jsp
View file @
01511da9
...
...
@@ -31,7 +31,7 @@
</div>
<div
class=
"hg-form-row"
>
<x:inputC
name=
"zepFtypename"
required=
"false"
readonly=
"true"
label=
"EP付款申请类别名称"
labelCol=
"2"
maxLength=
"64"
fieldCol=
"2"
/>
<x:inputC
name=
"bukrs"
required=
"
fals
e"
label=
"公司代码"
labelCol=
"2"
fieldCol=
"2"
wrapper=
"select"
/>
<x:inputC
name=
"bukrs"
required=
"
tru
e"
label=
"公司代码"
labelCol=
"2"
fieldCol=
"2"
wrapper=
"select"
/>
<x:inputC
name=
"butxt"
required=
"false"
readonly=
"true"
label=
"公司代码名称"
labelCol=
"2"
fieldCol=
"2"
/>
</div>
<div
class=
"hg-form-row"
>
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/costReimbursement/refundApplyList.js
View file @
01511da9
...
...
@@ -76,7 +76,7 @@ DataUtil.getUpdateRowId = function (gridManager) {
function
addRefundApply
(){
UICtrl
.
addTabItem
({
tabid
:
'refundApply'
,
tabid
:
'refundApply
Id
'
,
text
:
"客户退款申请单"
,
url
:
web_app
.
name
+
'/sapCostReimbursement/forwardCostReimbursement.job?type=refund'
});
...
...
topsun/src/main/java/com/huigou/topsun/sap/costReimbursement/application/impl/SapCostReimbursementApplicationImpl.java
View file @
01511da9
package
com
.
huigou
.
topsun
.
sap
.
costReimbursement
.
application
.
impl
;
import
com.alibaba.fastjson.JSONObject
;
import
com.fasterxml.jackson.core.JsonProcessingException
;
import
com.fasterxml.jackson.core.type.TypeReference
;
import
com.fasterxml.jackson.databind.ObjectMapper
;
import
com.huigou.data.query.model.QueryDescriptor
;
import
com.huigou.topsun.sap.common.DefaultHttpClient
;
import
com.huigou.topsun.sap.common.domain.SapResult
;
import
com.huigou.topsun.sap.common.serializer.MessageCodec
;
import
com.huigou.topsun.sap.costReimbursement.application.SapCostReimbursementApplication
;
import
com.huigou.topsun.sap.costReimbursement.domain.SapCostReimbursement
;
...
...
@@ -83,6 +85,27 @@ public class SapCostReimbursementApplicationImpl extends FlowBroker implements S
return
sapCostReimbursement
.
getId
();
}
/**
* 设置任务名称
*/
@Override
protected
void
setTaskDescription
(
DelegateTask
delegateTask
)
{
String
bizId
=
delegateTask
.
getExecution
().
getProcessBusinessKey
();
delegateTask
.
setDescription
(
this
.
getApprovalSubjectName
(
bizId
));
}
/**
* 获取任务标题
*
* @param bizId
* @return
*/
private
String
getApprovalSubjectName
(
String
bizId
)
{
SapCostReimbursement
sapCostReimbursement
=
this
.
loadSapCostReimbursementById
(
bizId
);
String
fillinDateStr
=
DateUtil
.
getDateFormat
(
sapCostReimbursement
.
getFillinDate
());
String
typeName
=
sapCostReimbursement
.
getZepFtypename
();
return
String
.
format
(
"%s-%s(%s)"
,
sapCostReimbursement
.
getPersonMemberName
(),
typeName
,
fillinDateStr
);
}
@Override
protected
Map
<
String
,
Object
>
getProcessBizParams
(
String
bizId
)
{
...
...
@@ -208,31 +231,22 @@ public class SapCostReimbursementApplicationImpl extends FlowBroker implements S
String
url
=
"cud_fi012/cud_fi012"
;
try
{
String
result
=
defaultHttpClient
.
execute
(
paramList
,
url
);
List
<
Map
<
String
,
Object
>>
resultList
=
objectMapper
.
readValue
(
result
,
new
TypeReference
<
List
<
Map
<
String
,
Object
>>>()
{
});
StringBuffer
errorMsg
=
new
StringBuffer
();
for
(
Map
<
String
,
Object
>
resultMap
:
resultList
)
{
if
(!
"S"
.
equals
(
resultMap
.
get
(
"TYPE"
)))
{
errorMsg
.
append
(
resultMap
.
get
(
"MESSAGE"
));
}
}
if
(
errorMsg
.
length
()==
0
)
{
Map
<
String
,
Object
>
resultMap
=
resultList
.
get
(
0
);
sapCostReimbursement
.
setMsgId
((
String
)
resultMap
.
get
(
"ID"
));
sapCostReimbursement
.
setNumber
((
String
)
resultMap
.
get
(
"NUMBER"
));
sapCostReimbursement
.
setMsgType
((
String
)
resultMap
.
get
(
"TYPE"
));
sapCostReimbursement
.
setLogNo
((
String
)
resultMap
.
get
(
"LOG_NO"
));
sapCostReimbursement
.
setLogMsgNo
((
String
)
resultMap
.
get
(
"LOG_MSG_NO"
));
sapCostReimbursement
.
setMessage
((
String
)
resultMap
.
get
(
"MESSAGE"
));
sapCostReimbursement
.
setMessageV1
((
String
)
resultMap
.
get
(
"MESSAGE_V1"
));
sapCostReimbursement
.
setMessageV2
((
String
)
resultMap
.
get
(
"MESSAGE_V1"
));
sapCostReimbursement
.
setMessageV3
((
String
)
resultMap
.
get
(
"MESSAGE_V1"
));
sapCostReimbursement
.
setMessageV4
((
String
)
resultMap
.
get
(
"MESSAGE_V1"
));
this
.
costReimbursementRepository
.
save
(
sapCostReimbursement
);
}
else
{
LOG
.
error
(
"数据传输失败!error: {}"
,
errorMsg
);
throw
new
RuntimeException
(
"数据传输失败,请检查后重试!error:"
+
errorMsg
);
List
<
SapResult
>
resultList
=
JSONObject
.
parseArray
(
result
,
SapResult
.
class
);
for
(
SapResult
sapResult
:
resultList
)
{
if
(
"S"
.
equals
(
sapResult
.
getTYPE
()))
{
for
(
SapCostReimbursementDetail
reimbursementDetail
:
all
)
{
if
(
sapResult
.
getMESSAGE_V2
().
equals
(
reimbursementDetail
.
getZepItemno
())){
reimbursementDetail
.
setBelnr
(
sapResult
.
getMESSAGE_V3
());
reimbursementDetail
.
setGjahr
(
sapResult
.
getMESSAGE_V4
());
reimbursementDetail
.
setMsgty
(
sapResult
.
getTYPE
());
reimbursementDetail
.
setMsgtx
(
sapResult
.
getMESSAGE
());
costReimbursementDetailRepository
.
save
(
reimbursementDetail
);
}
}
}
else
{
throw
new
RuntimeException
(
"数据传输失败,请稍后手动重试!"
+
sapResult
.
getMESSAGE
());
}
}
}
catch
(
IOException
e
)
{
LOG
.
error
(
"sap服务器无响应请稍后手动重试!error: {}"
,
e
.
getMessage
());
...
...
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