Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
isc-common
Overview
Overview
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
isc-v3.1-tmp
isc-common
Commits
6607dce9
Commit
6607dce9
authored
Oct 10, 2024
by
huangshunlin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
即期结售汇补充
parent
2a6628b7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
51 additions
and
8 deletions
+51
-8
SetglgServiceImpl.java
...nce/isc/common/setglg/service/impl/SetglgServiceImpl.java
+51
-8
No files found.
isc-common-service-setmod/src/main/java/com/brilliance/isc/common/setglg/service/impl/SetglgServiceImpl.java
View file @
6607dce9
package
com
.
brilliance
.
isc
.
common
.
setglg
.
service
.
impl
;
import
com.brilliance.mda.runtime.mda.IStream
;
import
com.brilliance.mda.runtime.mda.impl.Argument
;
import
com.brilliance.mda.runtime.mda.impl.StreamImpl
;
import
com.brilliance.mda.runtime.mda.util.*
;
import
com.brilliance.isc.bo.Cur
;
import
com.brilliance.isc.bo.Ptyrat
;
import
com.brilliance.isc.bo.Xrt
;
...
...
@@ -26,12 +22,17 @@ import com.brilliance.isc.common.util.StringUtils;
import
com.brilliance.isc.common.util.Utils
;
import
com.brilliance.isc.mda.dao.XrtMapper
;
import
com.brilliance.isc.mda.dao.ZmqxrtMapper
;
import
com.brilliance.mda.runtime.mda.IStream
;
import
com.brilliance.mda.runtime.mda.impl.Argument
;
import
com.brilliance.mda.runtime.mda.impl.StreamImpl
;
import
com.brilliance.mda.runtime.mda.util.*
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.util.CollectionUtils
;
import
javax.annotation.PostConstruct
;
import
java.math.BigDecimal
;
...
...
@@ -1298,21 +1299,22 @@ public class SetglgServiceImpl implements SetglgService {
/**
* 获取对方账号方法
*
* @param setgllVos
* @param debcdtflg
* @return
*/
private
String
getOppacc
(
List
<
SetgllVo
>
setgllVos
,
String
debcdtflg
)
{
String
oppacc
=
""
;
if
(
MdaUtils
.
compareTo
(
debcdtflg
,
"C"
)
==
0
)
{
for
(
int
i
=
0
;
i
<
setgllVos
.
size
();
i
++)
{
if
(
MdaUtils
.
compareTo
(
debcdtflg
,
"C"
)
==
0
)
{
for
(
int
i
=
0
;
i
<
setgllVos
.
size
();
i
++)
{
if
(
"D"
.
equalsIgnoreCase
(
setgllVos
.
get
(
i
).
getDebcdtflg
()))
{
oppacc
=
setgllVos
.
get
(
i
).
getAct
();
}
}
}
if
(
MdaUtils
.
compareTo
(
debcdtflg
,
"D"
)
==
0
)
{
for
(
int
i
=
0
;
i
<
setgllVos
.
size
();
i
++)
{
if
(
MdaUtils
.
compareTo
(
debcdtflg
,
"D"
)
==
0
)
{
for
(
int
i
=
0
;
i
<
setgllVos
.
size
();
i
++)
{
if
(
"C"
.
equalsIgnoreCase
(
setgllVos
.
get
(
i
).
getDebcdtflg
()))
{
oppacc
=
setgllVos
.
get
(
i
).
getAct
();
}
...
...
@@ -2075,4 +2077,45 @@ public class SetglgServiceImpl implements SetglgService {
}
}
}
/**
* source:setglg.0035.script
*/
@Override
public
void
setSettlementDetails
(
SetglgVo
setglg
,
String
setTyp
,
String
rol
,
String
trnMan
,
String
trdTyp
)
{
String
sysCur
=
xrtmodService
.
sysiso
();
if
(
CollectionUtils
.
isEmpty
(
setglg
.
getSetgll
()))
{
return
;
}
if
(
StringUtils
.
isEmpty
(
setTyp
))
{
return
;
}
int
len
=
setglg
.
getSetgll
().
size
();
switch
(
setTyp
)
{
case
"B"
:
for
(
int
i
=
0
;
i
<
len
;
i
++)
{
if
(
MdaUtils
.
compareTo
(
setglg
.
getSetgll
().
get
(
i
).
getRol
(),
rol
)
==
0
)
{
if
(((
MdaUtils
.
compareTo
(
setglg
.
getSetgll
().
get
(
i
).
getAcccur
(),
sysCur
)
==
0
&&
MdaUtils
.
compareTo
(
setglg
.
getSetgll
().
get
(
i
).
getCur
(),
sysCur
)
!=
0
&&
MdaUtils
.
compareTo
(
setglg
.
getSetgll
().
get
(
i
).
getAmt
(),
0
)
<
0
)
||
(
MdaUtils
.
compareTo
(
setglg
.
getSetgll
().
get
(
i
).
getAcccur
(),
sysCur
)
!=
0
&&
MdaUtils
.
compareTo
(
setglg
.
getSetgll
().
get
(
i
).
getCur
(),
sysCur
)
==
0
&&
MdaUtils
.
compareTo
(
setglg
.
getSetgll
().
get
(
i
).
getAmt
(),
0
)
>
0
)))
{
setglg
.
getSetgll
().
get
(
i
).
setTrnman
(
trnMan
);
// Systems.setModified(setglg.getSetgll().get(i), "trnman");
setglg
.
getSetgll
().
get
(
i
).
setTrdint
(
trdTyp
);
}
}
}
break
;
case
"S"
:
for
(
int
i
=
0
;
i
<
len
;
i
++)
{
if
(
MdaUtils
.
compareTo
(
setglg
.
getSetgll
().
get
(
i
).
getRol
(),
rol
)
==
0
)
{
if
(((
MdaUtils
.
compareTo
(
setglg
.
getSetgll
().
get
(
i
).
getAcccur
(),
sysCur
)
==
0
&&
MdaUtils
.
compareTo
(
setglg
.
getSetgll
().
get
(
i
).
getCur
(),
sysCur
)
!=
0
&&
MdaUtils
.
compareTo
(
setglg
.
getSetgll
().
get
(
i
).
getAmt
(),
0
)
>
0
)
||
(
MdaUtils
.
compareTo
(
setglg
.
getSetgll
().
get
(
i
).
getAcccur
(),
sysCur
)
!=
0
&&
MdaUtils
.
compareTo
(
setglg
.
getSetgll
().
get
(
i
).
getCur
(),
sysCur
)
==
0
&&
MdaUtils
.
compareTo
(
setglg
.
getSetgll
().
get
(
i
).
getAmt
(),
0
)
<
0
)))
{
setglg
.
getSetgll
().
get
(
i
).
setTrnman
(
trnMan
);
// Systems.setModified( setglg.getSetgll().get(i), "trnman");
setglg
.
getSetgll
().
get
(
i
).
setTrdout
(
trdTyp
);
}
}
}
break
;
}
}
}
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