Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
isc-funds
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-funds
Commits
14b549a0
Commit
14b549a0
authored
Oct 18, 2024
by
zhoujunpeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FtToolComponent修改
parent
bd202ced
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
63 deletions
+18
-63
FtToolComponent.java
...rilliance/isc/funds/common/component/FtToolComponent.java
+18
-63
No files found.
isc-funds-business/src/main/java/com/brilliance/isc/funds/
basesel/common
/FtToolComponent.java
→
isc-funds-business/src/main/java/com/brilliance/isc/funds/
common/component
/FtToolComponent.java
View file @
14b549a0
package
com
.
brilliance
.
isc
.
funds
.
basesel
.
common
;
package
com
.
brilliance
.
isc
.
funds
.
common
.
component
;
import
com.brilliance.isc.bo.Cbb
;
import
com.brilliance.isc.bo.Cnd
;
...
...
@@ -6,11 +6,10 @@ import com.brilliance.isc.bo.Ftd;
import
com.brilliance.isc.bo.model.*
;
import
com.brilliance.isc.common.cbsmod.service.CbsmodService
;
import
com.brilliance.isc.common.component.PtsptaToolComponent
;
import
com.brilliance.isc.common.
context.SettleContext
;
import
com.brilliance.isc.common.
exception.CommonServiceException
;
import
com.brilliance.isc.common.exception.CommonServiceException
;
import
com.brilliance.isc.common.sysmod.SysmodService
;
import
com.brilliance.isc.common.transaction.help.TransactionServiceSet
;
import
com.brilliance.isc.common.trnmod.service.TrnmodService
;
import
com.brilliance.isc.common.util.StringUtils
;
import
com.brilliance.isc.common.util.Utils
;
import
com.brilliance.isc.common.vo.FremsgVo
;
import
com.brilliance.isc.common.vo.PtsptaVo
;
import
com.brilliance.isc.mda.dao.FtdselMapper
;
...
...
@@ -51,7 +50,7 @@ public class FtToolComponent {
@Autowired
private
SysmodService
sysmodService
;
public
Ftdgrp
get
Cp
dgrpByInr
(
String
inr
)
{
public
Ftdgrp
get
Ft
dgrpByInr
(
String
inr
)
{
Ftd
ftd
=
new
Ftd
();
ftd
.
setInr
(
inr
);
...
...
@@ -68,33 +67,23 @@ public class FtToolComponent {
public
void
getref
(
Ftdgrp
ftdgrp
)
{
//! Set reference number, if not already set (usually called in transaction`s MTABUT\\SAV Event)
String
tbl
=
NULLSTR
;
int
len
=
0
;
switch
(
ftdgrp
.
getRec
().
getFttyp
())
{
case
"LS"
:
case
"LB"
:
tbl
=
"FX"
;
len
=
4
;
break
;
case
"XS"
:
case
"XB"
:
tbl
=
"DX"
;
len
=
4
;
break
;
case
"US"
:
tbl
=
"S"
+
Strings
.
mid
(
ftdgrp
.
getCbs
().
getMax
().
getCur
(),
1
,
1
);
len
=
4
;
case
"PT"
:
tbl
=
"PT"
;
break
;
case
"UB"
:
tbl
=
"B"
+
Strings
.
mid
(
ftdgrp
.
getCbs
().
getMax
().
getCur
(),
1
,
1
);
len
=
4
;
/**VP-同存调出
VN-同存户转
**/
case
"VP"
:
tbl
=
ftdgrp
.
getRec
().
getFttyp
();
break
;
default
:
tbl
=
"J"
+
Strings
.
mid
(
ftdgrp
.
getCbs
().
getMax
().
getCur
(),
1
,
1
);
len
=
4
;
tbl
=
"FT"
;
}
if
(
MdaUtils
.
isEmpty
(
ftdgrp
.
getRec
().
getOwnref
()))
{
ftdgrp
.
getRec
().
setOwnref
(
sysmodService
.
getRef
(
tbl
,
len
));
ftdgrp
.
getRec
().
setOwnref
(
sysmodService
.
getRef
(
tbl
,
5
));
}
}
...
...
@@ -136,14 +125,14 @@ public class FtToolComponent {
}
public
void
collectPtsList
(
TransactionServiceSet
set
,
Ftdgrp
cp
dgrp
,
String
...
ptsNames
)
{
public
void
collectPtsList
(
TransactionServiceSet
set
,
Ftdgrp
ft
dgrp
,
String
...
ptsNames
)
{
if
(
ptsNames
==
null
)
{
//找所有的ptspta对象
Field
[]
fields
=
cp
dgrp
.
getClass
().
getDeclaredFields
();
Field
[]
fields
=
ft
dgrp
.
getClass
().
getDeclaredFields
();
for
(
Field
field
:
fields
)
{
field
.
setAccessible
(
true
);
if
(
PtsptaVo
.
class
.
equals
(
field
.
getType
()))
{
PtsptaVo
ptspta
=
Utils
.
getFieldValue
(
cp
dgrp
,
field
.
getName
());
PtsptaVo
ptspta
=
Utils
.
getFieldValue
(
ft
dgrp
,
field
.
getName
());
if
(
ptspta
!=
null
)
{
set
.
addPtspta
(
transferFrom
(
ptspta
));
}
...
...
@@ -151,7 +140,7 @@ public class FtToolComponent {
}
}
else
{
for
(
String
name
:
ptsNames
)
{
PtsptaVo
ptspta
=
Utils
.
getFieldValue
(
cp
dgrp
,
name
);
PtsptaVo
ptspta
=
Utils
.
getFieldValue
(
ft
dgrp
,
name
);
if
(
ptspta
!=
null
&&
ptspta
.
getPts
()
!=
null
&&
StringUtils
.
isNotEmpty
(
ptspta
.
getPts
().
getRol
()))
{
set
.
addPtspta
(
transferFrom
(
ptspta
));
}
...
...
@@ -160,29 +149,6 @@ public class FtToolComponent {
}
public
void
collectPtsList
(
TransactionServiceSet
set
,
FremsgVo
fremsg
,
String
...
ptsNames
)
{
if
(
ptsNames
==
null
)
{
//找所有的ptspta对象
Field
[]
fields
=
fremsg
.
getClass
().
getDeclaredFields
();
for
(
Field
field
:
fields
)
{
field
.
setAccessible
(
true
);
if
(
PtsptaVo
.
class
.
equals
(
field
.
getType
()))
{
PtsptaVo
ptspta
=
Utils
.
getFieldValue
(
fremsg
,
field
.
getName
());
if
(
ptspta
!=
null
)
{
set
.
addPtspta
(
transferFrom
(
ptspta
));
}
}
}
}
else
{
for
(
String
name
:
ptsNames
)
{
PtsptaVo
ptspta
=
Utils
.
getFieldValue
(
fremsg
,
name
);
if
(
ptspta
!=
null
&&
ptspta
.
getPts
()
!=
null
&&
StringUtils
.
isNotEmpty
(
ptspta
.
getPts
().
getRol
()))
{
set
.
addPtspta
(
transferFrom
(
ptspta
));
}
}
}
}
/**
* 根据STL结构的ptspta转化成抽象组件的ptspta,结构不一样
...
...
@@ -288,18 +254,7 @@ public class FtToolComponent {
}
}
public
void
sav
(
Ftdgrp
ftdgrp
,
BigDecimal
zero
)
{
// saves contract including texts. CBS resp. of transaction
String
frm
=
SettleContext
.
getTransName
();
switch
(
frm
)
{
case
"FXTSUS"
:
case
"FXTSUB"
:
case
"FXTSST"
:
case
"FXTSCN"
:
//Datas.getContentNumeric(this, "\\LIAALL\\LIACCV\\CSHPCT")
ftdgrp
.
getRec
().
setRat
(
zero
);
break
;
}
public
void
sav
(
Ftdgrp
ftdgrp
)
{
trnmodService
.
trnStoreContract
(
ftdgrp
);
}
}
...
...
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