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
ef8e0d83
Commit
ef8e0d83
authored
Oct 24, 2024
by
huangshunlin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
国际化文件 中文转换Unicode码,结售汇查询,结售汇报价
parent
504b3031
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
180 additions
and
133 deletions
+180
-133
messages_en_US.properties
...ds-boot/src/main/resources/i18n/messages_en_US.properties
+19
-3
messages_zh_CN.properties
...ds-boot/src/main/resources/i18n/messages_zh_CN.properties
+19
-6
FxToolComponent.java
...rilliance/isc/funds/common/component/FxToolComponent.java
+0
-0
CrtcriTransactionServiceImpl.java
...sc/funds/crtcri/service/CrtcriTransactionServiceImpl.java
+1
-3
CrtcroTransactionServiceImpl.java
...sc/funds/crtcro/service/CrtcroTransactionServiceImpl.java
+69
-33
FttfcmValidator.java
...om/brilliance/isc/funds/fttfcm/check/FttfcmValidator.java
+29
-45
FxtselResource.java
.../brilliance/isc/funds/fxtsel/resource/FxtselResource.java
+2
-6
FxtselService.java
...om/brilliance/isc/funds/fxtsel/service/FxtselService.java
+2
-0
FxtselServiceImpl.java
...ance/isc/funds/fxtsel/service/impl/FxtselServiceImpl.java
+33
-35
FxtsqoSettleRegister.java
...sc/funds/fxtsqo/register/settle/FxtsqoSettleRegister.java
+2
-2
FxtsqoTransactionServiceImpl.java
...sc/funds/fxtsqo/service/FxtsqoTransactionServiceImpl.java
+4
-0
No files found.
isc-funds-boot/src/main/resources/i18n/messages_en_US.properties
View file @
ef8e0d83
...
@@ -2,12 +2,28 @@
...
@@ -2,12 +2,28 @@
funds_fxtssb_000000
=
Settlement
funds_fxtssb_000000
=
Settlement
funds_fxtsss_000000
=
Settlement
funds_fxtsss_000000
=
Settlement
funds_fxtsqo_000000
=
Settlement
funds_fxtsqo_000000
=
Settlement
funds_fxtsqo_000001
=
远期结售汇交割提示
:{0}
funds_fxtsqo_000001
=
\u
8fdc
\u
671f
\u
7ed3
\u
552e
\u
6c47
\u
4ea4
\u5272\u
63d0
\u
793a
:{0}
funds_fxtsqo_000002
=
The clearing amount has to be positive.
funds_fxtsqo_000002
=
The clearing amount has to be positive.
funds_fxtsqo_000003
=
非汇款业务请输入业务编号
funds_fxtsqo_000003
=
\u
975e
\u
6c47
\u
6b3e
\u
4e1a
\u
52a1
\u
8bf7
\u
8f93
\u5165\u
4e1a
\u
52a1
\u
7f16
\u
53f7
funds_fxtsqo_000004
=
{0}
funds_fxtsqo_000004
=
{0}
funds_fxtfop_000000
=
Foreign Exchange Liquidation
funds_fxtfop_000000
=
Foreign Exchange Liquidation
funds_fxtfcn_CT000009
=
Foreign Exchange Liquidation
funds_fxtfcn_CT000009
=
Foreign Exchange Liquidation
0136
=
This contract is overdrawn by {0}
0136
=
This contract is overdrawn by {0}
funds_fttfcm_000000
=
\u
8d77
\u
606f
\u
65e5
\u
4e0d
\u
80fd
\u5927\u
4e8e
\u5230\u
671f
\u
65e5
funds_crtcri_000000
=
Clearing in
funds_crtcri_000000
=
Clearing in
funds_crtcr0_000000
=
付款清算
funds_crtcr0_000000
=
\u
4ed8
\u
6b3e
\u
6e05
\u
7b97
funds_inffxd_000000
=
Selected foreign exchange is already opened.
funds_inffxd_000001
=
No foreign exchange selected.
funds_inffxd_000002
=
Selected foreign exchange has been closed.
funds_inffxd_000003
=
Selected foreign exchange has been quoted.
funds_inffxd_000004
=
Selected foreign exchange has not quoted yet.
funds_inffxd_000005
=
Sight exchange cannot settle at maturity.
funds_inffxd_000006
=
Selected foreign exchange has been confirmed.
funds_inffxd_000007
=
Selected foreign exchange has not been confirmed.
funds_inffxd_000008
=
There is no amount in transit.
funds_inffxd_000009
=
\u
6b64
\u
4ea4
\u6613\u
53ea
\u
80fd
\u
8d44
\u
91d1
\u
90e8
\u
7ecf
\u
529e
\u
ff01
funds_inffxd_000010
=
\u
6b64
\u
4ea4
\u6613\u
53ea
\u
80fd
\u8425\u
8fd0
\u
90e8
\u
7ecf
\u
529e
\u
ff01
funds_inffxd_000011
=
Only Headoffice can quote.
funds_inffxd_000012
=
The former registration transaction(FXTSOP/FXTBOP) not released yet.
funds_inffxd_000013
=
Selected foreign exchange has been settled.
funds_inffxd_000014
=
The selected transaction cannot be started under the selected Foreign Exchange.
isc-funds-boot/src/main/resources/i18n/messages_zh_CN.properties
View file @
ef8e0d83
...
@@ -2,15 +2,28 @@
...
@@ -2,15 +2,28 @@
funds_fxtssb_000000
=
Settlement
funds_fxtssb_000000
=
Settlement
funds_fxtsss_000000
=
Settlement
funds_fxtsss_000000
=
Settlement
funds_fxtsqo_000000
=
Settlement
funds_fxtsqo_000000
=
Settlement
funds_fxtsqo_000001
=
Զ�ڽ��ۻ㽻����ʾ
:{0}
funds_fxtsqo_000001
=
\u
8fdc
\u
671f
\u
7ed3
\u
552e
\u
6c47
\u
4ea4
\u5272\u
63d0
\u
793a
:{0}
funds_fxtsqo_000002
=
The clearing amount has to be positive.
funds_fxtsqo_000002
=
The clearing amount has to be positive.
funds_fxtsqo_000003
=
�ǻ��ҵ��������ҵ����
funds_fxtsqo_000003
=
\u
975e
\u
6c47
\u
6b3e
\u
4e1a
\u
52a1
\u
8bf7
\u
8f93
\u5165\u
4e1a
\u
52a1
\u
7f16
\u
53f7
funds_fxtsqo_000004
=
{0}
funds_fxtsqo_000004
=
{0}
funds_fxtfop_000000
=
Foreign Exchange Liquidation
funds_fxtfop_000000
=
Foreign Exchange Liquidation
funds_fxtfcn_CT000009
=
Foreign Exchange Liquidation
funds_fxtfcn_CT000009
=
Foreign Exchange Liquidation
0136
=
This contract is overdrawn by {0}
0136
=
This contract is overdrawn by {0}
funds_fttfcm_000000
=
\u
8d77
\u
606f
\u
65e5
\u
4e0d
\u
80fd
\u5927\u
4e8e
\u5230\u
671f
\u
65e5
fttfcm
=
资金拆借到期提示:
funds_crtcri_000000
=
Clearing in
funds_crtcri_000000
=
Clearing in
funds_crtcr0_000000
=
funds_crtcr0_000000
=
\u
4ed8
\u
6b3e
\u
6e05
\u
7b97
funds_inffxd_000000
=
Selected foreign exchange is already opened.
funds_inffxd_000001
=
No foreign exchange selected.
funds_inffxd_000002
=
Selected foreign exchange has been closed.
funds_inffxd_000003
=
Selected foreign exchange has been quoted.
funds_inffxd_000004
=
Selected foreign exchange has not quoted yet.
funds_inffxd_000005
=
Sight exchange cannot settle at maturity.
funds_inffxd_000006
=
Selected foreign exchange has been confirmed.
funds_inffxd_000007
=
Selected foreign exchange has not been confirmed.
funds_inffxd_000008
=
There is no amount in transit.
funds_inffxd_000009
=
\u
6b64
\u
4ea4
\u6613\u
53ea
\u
80fd
\u
8d44
\u
91d1
\u
90e8
\u
7ecf
\u
529e
\u
ff01
funds_inffxd_000010
=
\u
6b64
\u
4ea4
\u6613\u
53ea
\u
80fd
\u8425\u
8fd0
\u
90e8
\u
7ecf
\u
529e
\u
ff01
funds_inffxd_000011
=
Only Headoffice can quote.
funds_inffxd_000012
=
The former registration transaction(FXTSOP/FXTBOP) not released yet.
funds_inffxd_000013
=
Selected foreign exchange has been settled.
funds_inffxd_000014
=
The selected transaction cannot be started under the selected Foreign Exchange.
isc-funds-business/src/main/java/com/brilliance/isc/funds/common/component/FxToolComponent.java
View file @
ef8e0d83
This diff is collapsed.
Click to expand it.
isc-funds-business/src/main/java/com/brilliance/isc/funds/crtcri/service/CrtcriTransactionServiceImpl.java
View file @
ef8e0d83
...
@@ -140,7 +140,6 @@ public class CrtcriTransactionServiceImpl extends AbstractTransactionService<Crt
...
@@ -140,7 +140,6 @@ public class CrtcriTransactionServiceImpl extends AbstractTransactionService<Crt
serviceRegisterMaps
.
put
(
CommonContants
.
TRNDOC_SERVICE
,
"N"
);
serviceRegisterMaps
.
put
(
CommonContants
.
TRNDOC_SERVICE
,
"N"
);
serviceRegisterMaps
.
put
(
CommonContants
.
GLEMOD_SERVICE
,
"Y"
);
serviceRegisterMaps
.
put
(
CommonContants
.
GLEMOD_SERVICE
,
"Y"
);
serviceRegisterMaps
.
put
(
CommonContants
.
TRNMOD_SERVICE
,
"Y"
);
serviceRegisterMaps
.
put
(
CommonContants
.
TRNMOD_SERVICE
,
"Y"
);
serviceRegisterMaps
.
put
(
CommonContants
.
BOPSET_JSH_SERVICE
,
"Y"
);
}
}
...
@@ -237,6 +236,7 @@ public class CrtcriTransactionServiceImpl extends AbstractTransactionService<Crt
...
@@ -237,6 +236,7 @@ public class CrtcriTransactionServiceImpl extends AbstractTransactionService<Crt
crtcriStoreBo
.
reset
();
crtcriStoreBo
.
reset
();
init950
(
crtcriStoreBo
);
init950
(
crtcriStoreBo
);
init1000
(
crtcriStoreBo
);
init1000
(
crtcriStoreBo
);
crtpService
.
defaultClearingN1000
(
crtcriStoreBo
);
return
crtcriStoreBo
;
return
crtcriStoreBo
;
}
}
...
@@ -315,8 +315,6 @@ public class CrtcriTransactionServiceImpl extends AbstractTransactionService<Crt
...
@@ -315,8 +315,6 @@ public class CrtcriTransactionServiceImpl extends AbstractTransactionService<Crt
*/
*/
private
void
init950
(
CrtcriStoreBo
crtcriStoreBo
)
{
private
void
init950
(
CrtcriStoreBo
crtcriStoreBo
)
{
crtcriStoreBo
.
setClrsta
(
"I"
);
crtcriStoreBo
.
setClrsta
(
"I"
);
String
extkey
=
SettleContext
.
getUserSession
().
getUsr
().
getExtkey
();
crtcriStoreBo
.
getCrdgrp
().
getRec
().
setOwnusr
(
extkey
);
defaultCrdgrpRecCustypN1000
(
crtcriStoreBo
);
defaultCrdgrpRecCustypN1000
(
crtcriStoreBo
);
}
}
...
...
isc-funds-business/src/main/java/com/brilliance/isc/funds/crtcro/service/CrtcroTransactionServiceImpl.java
View file @
ef8e0d83
...
@@ -24,6 +24,7 @@ import com.brilliance.isc.common.vo.BizAmdInfoVo;
...
@@ -24,6 +24,7 @@ import com.brilliance.isc.common.vo.BizAmdInfoVo;
import
com.brilliance.isc.common.vo.BizInfoVo
;
import
com.brilliance.isc.common.vo.BizInfoVo
;
import
com.brilliance.isc.funds.bo.funds.CrtcroStoreBo
;
import
com.brilliance.isc.funds.bo.funds.CrtcroStoreBo
;
import
com.brilliance.isc.funds.common.component.CrToolComponent
;
import
com.brilliance.isc.funds.common.component.CrToolComponent
;
import
com.brilliance.isc.funds.crtcri.service.CrtpService
;
import
com.brilliance.isc.funds.crtcro.check.CrtcroValidator
;
import
com.brilliance.isc.funds.crtcro.check.CrtcroValidator
;
import
com.brilliance.isc.mda.dao.ActMapper
;
import
com.brilliance.isc.mda.dao.ActMapper
;
import
com.brilliance.isc.mda.dao.GleMapper
;
import
com.brilliance.isc.mda.dao.GleMapper
;
...
@@ -31,7 +32,9 @@ import com.brilliance.isc.mda.dao.PtyMapper;
...
@@ -31,7 +32,9 @@ import com.brilliance.isc.mda.dao.PtyMapper;
import
com.brilliance.isc.mda.dao.SmhMapper
;
import
com.brilliance.isc.mda.dao.SmhMapper
;
import
com.brilliance.isc.vo.funds.CrdBizInfoVo
;
import
com.brilliance.isc.vo.funds.CrdBizInfoVo
;
import
com.brilliance.mda.runtime.mda.util.Dates
;
import
com.brilliance.mda.runtime.mda.util.Dates
;
import
com.brilliance.mda.runtime.mda.util.Formats
;
import
com.brilliance.mda.runtime.mda.util.MdaUtils
;
import
com.brilliance.mda.runtime.mda.util.MdaUtils
;
import
com.brilliance.mda.runtime.mda.util.Strings
;
import
com.google.common.collect.ImmutableBiMap
;
import
com.google.common.collect.ImmutableBiMap
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -101,19 +104,22 @@ public class CrtcroTransactionServiceImpl extends AbstractTransactionService<Crt
...
@@ -101,19 +104,22 @@ public class CrtcroTransactionServiceImpl extends AbstractTransactionService<Crt
@Resource
@Resource
private
PtyMapper
ptyMapper
;
private
PtyMapper
ptyMapper
;
@Resource
private
CrtpService
crtpService
;
@PostConstruct
@PostConstruct
public
void
regisertService
()
{
public
void
regisertService
()
{
serviceRegisterMaps
.
put
(
CommonContants
.
SETMOD_SERVICE
,
"Y"
);
serviceRegisterMaps
.
put
(
CommonContants
.
SETMOD_SERVICE
,
"Y"
);
serviceRegisterMaps
.
put
(
CommonContants
.
TRNDOC_SERVICE
,
"N"
);
serviceRegisterMaps
.
put
(
CommonContants
.
TRNDOC_SERVICE
,
"N"
);
serviceRegisterMaps
.
put
(
CommonContants
.
GLEMOD_SERVICE
,
"Y"
);
serviceRegisterMaps
.
put
(
CommonContants
.
GLEMOD_SERVICE
,
"Y"
);
serviceRegisterMaps
.
put
(
CommonContants
.
TRNMOD_SERVICE
,
"Y"
);
serviceRegisterMaps
.
put
(
CommonContants
.
TRNMOD_SERVICE
,
"Y"
);
serviceRegisterMaps
.
put
(
CommonContants
.
BOPSET_JSH_SERVICE
,
"Y"
);
}
}
@Override
@Override
protected
void
txnSave
(
CrtcroStoreBo
transactionVo
)
{
protected
void
txnSave
(
CrtcroStoreBo
bo
)
{
ruleMtabutSavN500
(
transactionVo
);
defaultCrdgrpRecNamN1000
(
bo
);
ruleMtabutSavN500
(
bo
);
}
}
/**
/**
...
@@ -139,7 +145,6 @@ public class CrtcroTransactionServiceImpl extends AbstractTransactionService<Crt
...
@@ -139,7 +145,6 @@ public class CrtcroTransactionServiceImpl extends AbstractTransactionService<Crt
* source:crtcro.0021.script
* source:crtcro.0021.script
*/
*/
private
void
cbsSav
(
CrtcroStoreBo
bo
)
{
private
void
cbsSav
(
CrtcroStoreBo
bo
)
{
TrnmodVo
trnmodVo
=
transactionHelpService
.
getTransactionStoreSet
().
getTrnmodVo
();
String
trninr
=
transactionHelpService
.
getTrninr
();
String
trninr
=
transactionHelpService
.
getTrninr
();
cbsmodService
.
cbsTrnSetNew
(
"TRN"
,
trninr
);
cbsmodService
.
cbsTrnSetNew
(
"TRN"
,
trninr
);
trnmodService
.
cbsTrnStore
(
"MAXAMT"
,
"AMT1"
,
Dates
.
today
(),
bo
.
getCrdgrp
().
getCbs
().
getMax
().
getCur
(),
bo
.
getCrdgrp
().
getCbs
().
getMax
().
getAmt
()
trnmodService
.
cbsTrnStore
(
"MAXAMT"
,
"AMT1"
,
Dates
.
today
(),
bo
.
getCrdgrp
().
getCbs
().
getMax
().
getCur
(),
bo
.
getCrdgrp
().
getCbs
().
getMax
().
getAmt
()
...
@@ -147,14 +152,14 @@ public class CrtcroTransactionServiceImpl extends AbstractTransactionService<Crt
...
@@ -147,14 +152,14 @@ public class CrtcroTransactionServiceImpl extends AbstractTransactionService<Crt
}
}
@Override
@Override
protected
Map
<
String
,
String
>
txnCheck
(
CrtcroStoreBo
transactionV
o
)
{
protected
Map
<
String
,
String
>
txnCheck
(
CrtcroStoreBo
b
o
)
{
return
crtcroValidator
.
validate
(
transactionV
o
);
return
crtcroValidator
.
validate
(
b
o
);
}
}
@Override
@Override
protected
BizInfoVo
buildBizInfo
(
CrtcroStoreBo
transactionV
o
)
{
protected
BizInfoVo
buildBizInfo
(
CrtcroStoreBo
b
o
)
{
Crd
rec
=
transactionV
o
.
getCrdgrp
().
getRec
();
Crd
rec
=
b
o
.
getCrdgrp
().
getRec
();
Crtp
crtp
=
transactionV
o
.
getCrtp
();
Crtp
crtp
=
b
o
.
getCrtp
();
CrdBizInfoVo
bizInfoVo
=
new
CrdBizInfoVo
();
CrdBizInfoVo
bizInfoVo
=
new
CrdBizInfoVo
();
bizInfoVo
.
setObjinr
(
rec
.
getInr
());
bizInfoVo
.
setObjinr
(
rec
.
getInr
());
bizInfoVo
.
setObjtyp
(
"CRD"
);
bizInfoVo
.
setObjtyp
(
"CRD"
);
...
@@ -162,25 +167,31 @@ public class CrtcroTransactionServiceImpl extends AbstractTransactionService<Crt
...
@@ -162,25 +167,31 @@ public class CrtcroTransactionServiceImpl extends AbstractTransactionService<Crt
bizInfoVo
.
setOpndat
(
rec
.
getOpndat
());
bizInfoVo
.
setOpndat
(
rec
.
getOpndat
());
bizInfoVo
.
setRcvbchinr
(
rec
.
getRcvbchinr
());
bizInfoVo
.
setRcvbchinr
(
rec
.
getRcvbchinr
());
bizInfoVo
.
setCustyp
(
rec
.
getCustyp
());
bizInfoVo
.
setCustyp
(
rec
.
getCustyp
());
String
act
=
transactionV
o
.
getSpcgle
().
getAct
();
String
act
=
b
o
.
getSpcgle
().
getAct
();
bizInfoVo
.
setSpcgleAct
(
act
);
bizInfoVo
.
setSpcgleAct
(
act
);
bizInfoVo
.
setRcvobjtyp
(
rec
.
getRcvobjtyp
());
bizInfoVo
.
setRcvobjtyp
(
rec
.
getRcvobjtyp
());
Cpd
cpd
=
transactionV
o
.
getCpdgrp
().
getRec
();
Cpd
cpd
=
b
o
.
getCpdgrp
().
getRec
();
bizInfoVo
.
setValdat
(
cpd
.
getValdat
());
bizInfoVo
.
setValdat
(
cpd
.
getValdat
());
bizInfoVo
.
setBranchInr
(
rec
.
getBranchinr
());
bizInfoVo
.
setBchkeyinr
(
rec
.
getBchkeyinr
());
bizInfoVo
.
setOwnref
(
rec
.
getOwnref
());
return
bizInfoVo
;
return
bizInfoVo
;
}
}
@Override
@Override
protected
BizAmdInfoVo
buildBizAmdInfo
(
CrtcroStoreBo
transactionV
o
)
{
protected
BizAmdInfoVo
buildBizAmdInfo
(
CrtcroStoreBo
b
o
)
{
return
null
;
return
null
;
}
}
@Override
@Override
public
CrtcroStoreBo
init
(
CrtcroStoreBo
crtcroStoreBo
)
{
public
CrtcroStoreBo
init
(
CrtcroStoreBo
bo
)
{
crtcroStoreBo
.
reset
();
bo
.
reset
();
init950
(
crtcroStoreBo
);
init950
(
bo
);
init1000
(
crtcroStoreBo
);
init1000
(
bo
);
return
crtcroStoreBo
;
crtpService
.
defaultClearingN1000
(
bo
);
crtpService
.
defaultCrdgrpRecOwnusrN1000
(
bo
);
return
bo
;
}
}
/**
/**
...
@@ -222,7 +233,7 @@ public class CrtcroTransactionServiceImpl extends AbstractTransactionService<Crt
...
@@ -222,7 +233,7 @@ public class CrtcroTransactionServiceImpl extends AbstractTransactionService<Crt
// 查找绑定这笔202的其他SWIFT报文信息
// 查找绑定这笔202的其他SWIFT报文信息
switch
(
bo
.
getCrdgrp
().
getRec
().
getRcvobjtyp
())
{
switch
(
bo
.
getCrdgrp
().
getRec
().
getRcvobjtyp
())
{
case
"CPD"
:
case
"CPD"
:
// Platform.getCPdGrp(
this.getCpdgrp(),this
.getCrdgrp().getRec().getRcvobjinr());
// Platform.getCPdGrp(
bo.getCpdgrp(),bo
.getCrdgrp().getRec().getRcvobjinr());
Cpdgrp
dbCpdgrp
=
crToolComponent
.
getCpdgrpByInr
(
bo
.
getCrdgrp
().
getRec
().
getRcvobjinr
());
Cpdgrp
dbCpdgrp
=
crToolComponent
.
getCpdgrpByInr
(
bo
.
getCrdgrp
().
getRec
().
getRcvobjinr
());
bo
.
setCpdgrp
(
dbCpdgrp
);
bo
.
setCpdgrp
(
dbCpdgrp
);
// 汇出汇款发103+202
// 汇出汇款发103+202
...
@@ -313,37 +324,36 @@ public class CrtcroTransactionServiceImpl extends AbstractTransactionService<Crt
...
@@ -313,37 +324,36 @@ public class CrtcroTransactionServiceImpl extends AbstractTransactionService<Crt
String
maxCur
=
bo
.
getCrdgrp
().
getCbs
().
getMax
().
getCur
();
String
maxCur
=
bo
.
getCrdgrp
().
getCbs
().
getMax
().
getCur
();
readAct
(
""
,
ptyInr
,
bo
.
getPacact
(),
maxCur
);
readAct
(
""
,
ptyInr
,
bo
.
getPacact
(),
maxCur
);
//
if (Objects.isNull(bo.getPacact()) || StringUtils.isEmpty(bo.getPacact().getInr())) {
if
(
Objects
.
isNull
(
bo
.
getPacact
())
||
StringUtils
.
isEmpty
(
bo
.
getPacact
().
getInr
()))
{
// MdaUtils.clear(bo.getPacact());
// MdaUtils.clear(bo.getPacact());
// }
bo
.
setPacact
(
new
Act
());
}
}
}
}
}
private
void
init950
(
CrtcroStoreBo
crtcroStoreBo
)
{
private
void
init950
(
CrtcroStoreBo
bo
)
{
crtcroStoreBo
.
setClrsta
(
"O"
);
bo
.
setClrsta
(
"O"
);
String
extkey
=
SettleContext
.
getUserSession
().
getUsr
().
getExtkey
();
crtcroStoreBo
.
getCrdgrp
().
getRec
().
setOwnusr
(
extkey
);
}
}
@Override
@Override
public
void
beforeSave
(
CrtcroStoreBo
transactionV
o
)
{
public
void
beforeSave
(
CrtcroStoreBo
b
o
)
{
transactionV
o
.
reset
();
b
o
.
reset
();
transactionV
o
.
reset
();
b
o
.
reset
();
Crdgrp
crdgrp
=
transactionV
o
.
getCrdgrp
();
Crdgrp
crdgrp
=
b
o
.
getCrdgrp
();
TransactionServiceSet
transactionServiceSet
=
transactionHelpService
.
getTransactionStoreSet
();
TransactionServiceSet
transactionServiceSet
=
transactionHelpService
.
getTransactionStoreSet
();
transactionServiceSet
.
setRec
(
crdgrp
.
getRec
());
transactionServiceSet
.
setRec
(
crdgrp
.
getRec
());
transactionServiceSet
.
setTransactionVo
(
transactionV
o
);
transactionServiceSet
.
setTransactionVo
(
b
o
);
crToolComponent
.
collectCbsMap
(
transactionServiceSet
,
""
,
crdgrp
.
getCbs
(),
"max"
);
crToolComponent
.
collectCbsMap
(
transactionServiceSet
,
""
,
crdgrp
.
getCbs
(),
"max"
);
crToolComponent
.
collectPtsList
(
transactionServiceSet
,
crdgrp
,
null
);
crToolComponent
.
collectPtsList
(
transactionServiceSet
,
crdgrp
,
null
);
settleContext
.
loadSettleSession
(
transactionVo
.
getTransName
(),
transactionVo
.
getUserId
(),
buildBizInfo
(
transactionV
o
),
transactionServiceSet
.
getPtsList
());
settleContext
.
loadSettleSession
(
bo
.
getTransName
(),
bo
.
getUserId
(),
buildBizInfo
(
b
o
),
transactionServiceSet
.
getPtsList
());
}
}
@Override
@Override
protected
void
updateBizInfoVo
(
BizInfoVo
bizInfoVo
,
CrtcroStoreBo
transactionV
o
)
{
protected
void
updateBizInfoVo
(
BizInfoVo
bizInfoVo
,
CrtcroStoreBo
b
o
)
{
bizInfoVo
.
setObjinr
(
transactionV
o
.
getCrdgrp
().
getRec
().
getInr
());
bizInfoVo
.
setObjinr
(
b
o
.
getCrdgrp
().
getRec
().
getInr
());
}
}
...
@@ -363,7 +373,7 @@ public class CrtcroTransactionServiceImpl extends AbstractTransactionService<Crt
...
@@ -363,7 +373,7 @@ public class CrtcroTransactionServiceImpl extends AbstractTransactionService<Crt
* @param holPtyInr
* @param holPtyInr
* @param serPtyInr
* @param serPtyInr
* @param act
* @param act
* @param cur
this
.getCrdgrp().getCbs().getMax().getCur()
* @param cur
bo
.getCrdgrp().getCbs().getMax().getCur()
*/
*/
public
void
readAct
(
String
holPtyInr
,
String
serPtyInr
,
Act
act
,
String
cur
)
{
public
void
readAct
(
String
holPtyInr
,
String
serPtyInr
,
Act
act
,
String
cur
)
{
String
sql
=
"SELECT * from act WHERE HOLPTYINR = '"
+
holPtyInr
+
"' AND SERPTYINR = '"
+
serPtyInr
+
"' AND CUR = '"
+
cur
+
"' AND TYP = 'DB'"
;
String
sql
=
"SELECT * from act WHERE HOLPTYINR = '"
+
holPtyInr
+
"' AND SERPTYINR = '"
+
serPtyInr
+
"' AND CUR = '"
+
cur
+
"' AND TYP = 'DB'"
;
...
@@ -373,4 +383,30 @@ public class CrtcroTransactionServiceImpl extends AbstractTransactionService<Crt
...
@@ -373,4 +383,30 @@ public class CrtcroTransactionServiceImpl extends AbstractTransactionService<Crt
}
}
}
}
/**
* source:crtcro.0018.script
*/
public
void
defaultCrdgrpRecNamN1000
(
CrtcroStoreBo
bo
)
{
//! Default name of contract; usually contract amount and information about the client is used
if
(!
bo
.
getCrdgrp
().
getRec
().
isModified
(
"nam"
))
{
if
(
MdaUtils
.
compareTo
(
bo
.
getCrdgrp
().
getRec
().
getClrtyp
(),
"O"
)
==
0
)
{
// Dynamic.ptsmodGetPtyOfPtspta(bo.getCrdgrp().getRcv(), bo.getTrnmod().getPtsmod().getPty());
String
nam
=
bo
.
getCrdgrp
().
getRec
().
getMsgtyp
()
+
" "
+
bo
.
getCrdgrp
().
getCbs
().
getMax
().
getCur
()
+
" "
+
Formats
.
fmtAmount
(
bo
.
getCrdgrp
().
getCbs
().
getMax
().
getAmt
(),
bo
.
getCrdgrp
().
getCbs
().
getMax
().
getCur
())
+
" "
+
bo
.
getCrdgrp
().
getRec
().
getRcvobjtyp
()
+
"/"
+
bo
.
getCrdgrp
().
getRcv
().
getPts
().
getNam
();
//nam 最多允许存放40个中文
bo
.
getCrdgrp
().
getRec
().
setNam
(
Strings
.
mid
(
nam
,
1
,
40
));
}
else
{
// Dynamic.ptsmodGetPtyOfPtspta(bo.getCrdgrp().getSnd(), bo.getTrnmod().getPtsmod().getPty());
String
nam
=
bo
.
getCrdgrp
().
getRec
().
getMsgtyp
()
+
" "
+
bo
.
getCrdgrp
().
getCbs
().
getMax
().
getCur
()
+
" "
+
Formats
.
fmtAmount
(
bo
.
getCrdgrp
().
getCbs
().
getMax
().
getAmt
(),
bo
.
getCrdgrp
().
getCbs
().
getMax
().
getCur
())
+
" "
+
bo
.
getCrdgrp
().
getRec
().
getRcvobjtyp
()
+
"/"
+
bo
.
getCrdgrp
().
getSnd
().
getPta
().
getNam
();
//nam 最多允许存放40个中文
bo
.
getCrdgrp
().
getRec
().
setNam
(
Strings
.
mid
(
nam
,
1
,
40
));
}
}
}
}
}
isc-funds-business/src/main/java/com/brilliance/isc/funds/fttfcm/check/FttfcmValidator.java
View file @
ef8e0d83
package
com
.
brilliance
.
isc
.
funds
.
fttfcm
.
check
;
package
com
.
brilliance
.
isc
.
funds
.
fttfcm
.
check
;
import
com.brilliance.isc.bo.Act
;
import
com.brilliance.isc.common.transaction.newcheck.AbstractModuleValidator
;
import
com.brilliance.isc.common.transaction.newcheck.AbstractModuleValidator
;
import
com.brilliance.isc.common.transaction.newcheck.ValidResult
;
import
com.brilliance.isc.common.transaction.newcheck.ValidResult
;
import
com.brilliance.isc.common.transaction.newcheck.Validate
;
import
com.brilliance.isc.common.transaction.newcheck.Validate
;
import
com.brilliance.isc.common.util.
Utils
;
import
com.brilliance.isc.common.util.
I18nUtil
;
import
com.brilliance.isc.funds.bo.funds.FttfcmStoreBo
;
import
com.brilliance.isc.funds.bo.funds.FttfcmStoreBo
;
import
com.brilliance.isc.funds.bo.funds.FxtfcmStoreBo
;
import
com.brilliance.mda.runtime.mda.util.Dates
;
import
com.brilliance.mda.runtime.mda.util.Dates
;
import
com.brilliance.mda.runtime.mda.util.MdaUtils
;
import
com.brilliance.mda.runtime.mda.util.MdaUtils
;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Component
;
import
javax.annotation.PostConstruct
;
import
javax.annotation.PostConstruct
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
import
static
com
.
brilliance
.
mda
.
runtime
.
mda
.
Constants
.*;
import
static
com
.
brilliance
.
mda
.
runtime
.
mda
.
Constants
.
PanStaAdd
;
import
static
com
.
brilliance
.
mda
.
runtime
.
mda
.
Constants
.
PanStaEdit
;
/**
/**
* @program: isc-funds
* @program: isc-funds
...
@@ -27,12 +24,13 @@ import static com.brilliance.mda.runtime.mda.Constants.*;
...
@@ -27,12 +24,13 @@ import static com.brilliance.mda.runtime.mda.Constants.*;
* @create: 2024-10-11 11:28
* @create: 2024-10-11 11:28
*/
*/
@Component
@Component
public
class
FttfcmValidator
extends
AbstractModuleValidator
<
FttfcmStoreBo
>
{
public
class
FttfcmValidator
extends
AbstractModuleValidator
<
FttfcmStoreBo
>
{
@Override
@Override
@PostConstruct
@PostConstruct
public
void
register
(){
public
void
register
()
{
super
.
register
();;
super
.
register
();
;
}
}
@Override
@Override
...
@@ -43,15 +41,12 @@ public class FttfcmValidator extends AbstractModuleValidator <FttfcmStoreBo>{
...
@@ -43,15 +41,12 @@ public class FttfcmValidator extends AbstractModuleValidator <FttfcmStoreBo>{
}
}
/**
/**
* source:fttfcm.0018.script
* source:fttfcm.0018.script
*/
*/
@Validate
(
path
=
"fttp.mt32m.s30x"
)
@Validate
(
path
=
"fttp.mt32m.s30x"
)
public
ValidResult
checkFttpMt32mS30xN1000
(
FttfcmStoreBo
bo
){
public
ValidResult
checkFttpMt32mS30xN1000
(
FttfcmStoreBo
bo
)
{
if
(
(
MdaUtils
.
compareTo
(
bo
.
getFttp
().
getMt32m
().
getS22b
(),
"CONF"
)
==
0
||
MdaUtils
.
compareTo
(
bo
.
getFttp
().
getMt32m
().
getS22b
(),
"ROLL"
)
==
0
)
&&
MdaUtils
.
isEmpty
(
bo
.
getFttp
().
getMt32m
().
getS30x
())
)
if
((
MdaUtils
.
compareTo
(
bo
.
getFttp
().
getMt32m
().
getS22b
(),
"CONF"
)
==
0
||
MdaUtils
.
compareTo
(
bo
.
getFttp
().
getMt32m
().
getS22b
(),
"ROLL"
)
==
0
)
&&
MdaUtils
.
isEmpty
(
bo
.
getFttp
().
getMt32m
().
getS30x
()))
{
{
return
errorMandatory
();
return
errorMandatory
();
}
}
return
null
;
return
null
;
...
@@ -60,12 +55,10 @@ public class FttfcmValidator extends AbstractModuleValidator <FttfcmStoreBo>{
...
@@ -60,12 +55,10 @@ public class FttfcmValidator extends AbstractModuleValidator <FttfcmStoreBo>{
/**
/**
* source:fttfcm.0022.script
* source:fttfcm.0022.script
*/
*/
@Validate
(
path
=
"ftdgrp.cbs.ins.amt"
)
@Validate
(
path
=
"ftdgrp.cbs.ins.amt"
)
public
ValidResult
checkFtdgrpCbsInsAmtN1000
(
FttfcmStoreBo
bo
){
public
ValidResult
checkFtdgrpCbsInsAmtN1000
(
FttfcmStoreBo
bo
)
{
if
(
MdaUtils
.
compareTo
(
bo
.
getFttp
().
getPansta
(),
PanStaAdd
)
==
0
||
MdaUtils
.
compareTo
(
bo
.
getFttp
().
getPansta
(),
PanStaEdit
)
==
0
)
if
(
MdaUtils
.
compareTo
(
bo
.
getFttp
().
getPansta
(),
PanStaAdd
)
==
0
||
MdaUtils
.
compareTo
(
bo
.
getFttp
().
getPansta
(),
PanStaEdit
)
==
0
)
{
{
if
(
MdaUtils
.
isEmpty
(
bo
.
getFtdgrp
().
getCbs
().
getIns
().
getAmt
()))
{
if
(
MdaUtils
.
isEmpty
(
bo
.
getFtdgrp
().
getCbs
().
getIns
().
getAmt
())
)
{
return
errorMandatory
();
return
errorMandatory
();
}
}
}
}
...
@@ -77,10 +70,9 @@ public class FttfcmValidator extends AbstractModuleValidator <FttfcmStoreBo>{
...
@@ -77,10 +70,9 @@ public class FttfcmValidator extends AbstractModuleValidator <FttfcmStoreBo>{
/**
/**
* source:fttfcm.0023.script
* source:fttfcm.0023.script
*/
*/
@Validate
(
path
=
"ftdgrp.rec.cntfra"
)
@Validate
(
path
=
"ftdgrp.rec.cntfra"
)
public
ValidResult
checkFtdgrpRecCntfraN1000
(
FttfcmStoreBo
bo
){
public
ValidResult
checkFtdgrpRecCntfraN1000
(
FttfcmStoreBo
bo
)
{
if
(
MdaUtils
.
isEmpty
(
bo
.
getFtdgrp
().
getRec
().
getCntfra
())
)
if
(
MdaUtils
.
isEmpty
(
bo
.
getFtdgrp
().
getRec
().
getCntfra
()))
{
{
return
errorMandatory
();
return
errorMandatory
();
}
}
...
@@ -91,17 +83,13 @@ public class FttfcmValidator extends AbstractModuleValidator <FttfcmStoreBo>{
...
@@ -91,17 +83,13 @@ public class FttfcmValidator extends AbstractModuleValidator <FttfcmStoreBo>{
/**
/**
* source:fttfcm.0024.script
* source:fttfcm.0024.script
*/
*/
@Validate
(
path
=
"ftdgrp.rec.matdat"
)
@Validate
(
path
=
"ftdgrp.rec.matdat"
)
public
ValidResult
checkFtdgrpRecMatdatN1000
(
FttfcmStoreBo
bo
){
public
ValidResult
checkFtdgrpRecMatdatN1000
(
FttfcmStoreBo
bo
)
{
if
(
MdaUtils
.
isEmpty
(
bo
.
getFtdgrp
().
getRec
().
getMatdat
())
)
if
(
MdaUtils
.
isEmpty
(
bo
.
getFtdgrp
().
getRec
().
getMatdat
()))
{
{
return
errorMandatory
();
return
errorMandatory
();
}
}
else
{
else
if
(!
MdaUtils
.
isEmpty
(
bo
.
getFtdgrp
().
getRec
().
getValdat
())
&&
Dates
.
diff
(
bo
.
getFtdgrp
().
getRec
().
getValdat
(),
bo
.
getFtdgrp
().
getRec
().
getMatdat
())
>
0
)
{
{
return
ValidResult
.
build
(
false
,
I18nUtil
.
getMessage
(
"funds_fttfcm_000000"
));
if
(
!
MdaUtils
.
isEmpty
(
bo
.
getFtdgrp
().
getRec
().
getValdat
())
&&
Dates
.
diff
(
bo
.
getFtdgrp
().
getRec
().
getValdat
(),
bo
.
getFtdgrp
().
getRec
().
getMatdat
())>
0
)
{
return
ValidResult
.
build
(
false
,
MdaUtils
.
getI18NString
(
"fttfcm"
,
"CT000008"
));
}
}
}
}
...
@@ -113,10 +101,9 @@ public class FttfcmValidator extends AbstractModuleValidator <FttfcmStoreBo>{
...
@@ -113,10 +101,9 @@ public class FttfcmValidator extends AbstractModuleValidator <FttfcmStoreBo>{
/**
/**
* source:fttfcm.0025.script
* source:fttfcm.0025.script
*/
*/
@Validate
(
path
=
"ftdgrp.rec.rat"
)
@Validate
(
path
=
"ftdgrp.rec.rat"
)
public
ValidResult
checkFtdgrpRecRatN1000
(
FttfcmStoreBo
bo
){
public
ValidResult
checkFtdgrpRecRatN1000
(
FttfcmStoreBo
bo
)
{
if
(
MdaUtils
.
isEmpty
(
bo
.
getFtdgrp
().
getRec
().
getRat
())
)
if
(
MdaUtils
.
isEmpty
(
bo
.
getFtdgrp
().
getRec
().
getRat
()))
{
{
return
errorMandatory
();
return
errorMandatory
();
}
}
...
@@ -127,10 +114,9 @@ public class FttfcmValidator extends AbstractModuleValidator <FttfcmStoreBo>{
...
@@ -127,10 +114,9 @@ public class FttfcmValidator extends AbstractModuleValidator <FttfcmStoreBo>{
/**
/**
* source:fttfcm.0038.script
* source:fttfcm.0038.script
*/
*/
@Validate
(
path
=
"ftdgrp.rec.bnktyp"
)
@Validate
(
path
=
"ftdgrp.rec.bnktyp"
)
public
ValidResult
checkFtdgrpRecBnktypN1000
(
FttfcmStoreBo
bo
){
public
ValidResult
checkFtdgrpRecBnktypN1000
(
FttfcmStoreBo
bo
)
{
if
(
MdaUtils
.
isEmpty
(
bo
.
getFtdgrp
().
getRec
().
getBnktyp
())
)
if
(
MdaUtils
.
isEmpty
(
bo
.
getFtdgrp
().
getRec
().
getBnktyp
()))
{
{
return
errorMandatory
();
return
errorMandatory
();
}
}
...
@@ -139,6 +125,4 @@ public class FttfcmValidator extends AbstractModuleValidator <FttfcmStoreBo>{
...
@@ -139,6 +125,4 @@ public class FttfcmValidator extends AbstractModuleValidator <FttfcmStoreBo>{
}
}
}
}
isc-funds-business/src/main/java/com/brilliance/isc/funds/fxtsel/resource/FxtselResource.java
View file @
ef8e0d83
package
com
.
brilliance
.
isc
.
funds
.
fxtsel
.
resource
;
package
com
.
brilliance
.
isc
.
funds
.
fxtsel
.
resource
;
import
com.brilliance.isc.funds.fxtsel.service.FxtselService
;
import
com.brilliance.isc.vo.ResponseSet
;
import
com.brilliance.isc.vo.ResponseSet
;
import
com.brilliance.isc.vo.TrnCodeQueryVo
;
import
com.brilliance.isc.vo.TrnCodeQueryVo
;
import
com.brilliance.isc.vo.funds.FxtselQueryVo
;
import
com.brilliance.isc.vo.funds.FxtselQueryVo
;
import
com.brilliance.isc.funds.fxtsel.service.FxtselService
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
...
@@ -11,7 +11,6 @@ import org.springframework.web.bind.annotation.RequestBody;
...
@@ -11,7 +11,6 @@ import org.springframework.web.bind.annotation.RequestBody;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
import
javax.annotation.Resource
;
import
java.util.Map
;
import
java.util.Map
;
@RestController
@RestController
...
@@ -21,7 +20,6 @@ public class FxtselResource {
...
@@ -21,7 +20,6 @@ public class FxtselResource {
private
FxtselService
fxtselService
;
private
FxtselService
fxtselService
;
/*
/*
*
*
* */
* */
...
@@ -45,7 +43,6 @@ public class FxtselResource {
...
@@ -45,7 +43,6 @@ public class FxtselResource {
return
ResponseSet
.
simpleSuccess
(
fxtselService
.
listdhpp
(
fxtselQueryVo
));
return
ResponseSet
.
simpleSuccess
(
fxtselService
.
listdhpp
(
fxtselQueryVo
));
}
}
/**
/**
* 处理按钮查看能够进行的交易
* 处理按钮查看能够进行的交易
*/
*/
...
@@ -62,12 +59,11 @@ public class FxtselResource {
...
@@ -62,12 +59,11 @@ public class FxtselResource {
}
}
/**
/**
* 详情页面初始化
* 详情页面初始化
*/
*/
@PostMapping
(
"/selectXxdByPrimaryKey"
)
@PostMapping
(
"/selectXxdByPrimaryKey"
)
public
ResponseSet
selectXxdByPrimaryKey
(
@RequestBody
Map
<
String
,
String
>
map
)
{
public
ResponseSet
selectXxdByPrimaryKey
(
@RequestBody
Map
<
String
,
String
>
map
)
{
return
ResponseSet
.
simpleSuccess
(
fxtselService
.
selectXxdByPrimaryKey
(
map
));
return
ResponseSet
.
simpleSuccess
(
fxtselService
.
selectXxdByPrimaryKey
(
map
));
}
}
}
}
...
...
isc-funds-business/src/main/java/com/brilliance/isc/funds/fxtsel/service/FxtselService.java
View file @
ef8e0d83
...
@@ -22,4 +22,6 @@ public interface FxtselService {
...
@@ -22,4 +22,6 @@ public interface FxtselService {
List
<
TrncodVo
>
dealWithByInr
(
TrnCodeQueryVo
trnCodeQueryVo
);
List
<
TrncodVo
>
dealWithByInr
(
TrnCodeQueryVo
trnCodeQueryVo
);
Object
selectXxdByPrimaryKey
(
Map
<
String
,
String
>
map
);
Object
selectXxdByPrimaryKey
(
Map
<
String
,
String
>
map
);
Object
jshDealWithByInr
(
TrnCodeQueryVo
trnCodeQueryVo
);
}
}
isc-funds-business/src/main/java/com/brilliance/isc/funds/fxtsel/service/impl/FxtselServiceImpl.java
View file @
ef8e0d83
package
com
.
brilliance
.
isc
.
funds
.
fxtsel
.
service
.
impl
;
package
com
.
brilliance
.
isc
.
funds
.
fxtsel
.
service
.
impl
;
import
com.brilliance.isc.bo.Srm
;
import
com.brilliance.isc.bo.Trn
;
import
com.brilliance.isc.bo.Trn
;
import
com.brilliance.isc.bo.model.Fxdgrp
;
import
com.brilliance.isc.bo.model.Fxdgrp
;
import
com.brilliance.isc.bo.model.Lidgrp
;
import
com.brilliance.isc.bo.model.Ltdgrp
;
import
com.brilliance.isc.common.sysmod.SysmodService
;
import
com.brilliance.isc.common.sysmod.SysmodService
;
import
com.brilliance.isc.funds.bo.funds.FxtfopStoreBo
;
import
com.brilliance.isc.funds.bo.funds.FxtfopStoreBo
;
import
com.brilliance.isc.funds.common.component.FxToolComponent
;
import
com.brilliance.isc.funds.common.component.FxToolComponent
;
import
com.brilliance.isc.common.util.StringUtils
;
import
com.brilliance.isc.funds.fxtsel.service.FxtselService
;
//import com.brilliance.isc.funds.bo.Fxdgrp;
import
com.brilliance.isc.mda.dao.FxdMapper
;
import
com.brilliance.isc.mda.dao.FxdMapper
;
import
com.brilliance.isc.mda.dao.TrnMapper
;
import
com.brilliance.isc.mda.dao.TrnMapper
;
import
com.brilliance.isc.vo.TrncodVo
;
import
com.brilliance.isc.vo.funds.FxtselQueryVo
;
import
com.brilliance.isc.vo.TrnCodeQueryVo
;
import
com.brilliance.isc.vo.TrnCodeQueryVo
;
import
com.brilliance.isc.vo.TrncodVo
;
import
com.brilliance.isc.vo.funds.FxdWithPtsCbbResponseVo
;
import
com.brilliance.isc.vo.funds.FxdWithPtsCbbResponseVo
;
import
com.brilliance.isc.funds.fxtsel.service.FxtselService
;
import
com.brilliance.isc.vo.funds.FxtselQueryVo
;
import
com.brilliance.mda.runtime.mda.util.MdaUtils
;
import
com.github.pagehelper.PageHelper
;
import
com.github.pagehelper.PageHelper
;
import
com.github.pagehelper.PageInfo
;
import
com.github.pagehelper.PageInfo
;
import
com.google.common.collect.ImmutableMap
;
import
com.google.common.collect.Lists
;
import
com.google.common.collect.Lists
;
import
org.apache.commons.lang3.StringUtils
;
import
org.slf4j.Logger
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
import
javax.annotation.Resource
;
import
java.util.*
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Objects
;
//import com.brilliance.isc.funds.bo.Fxdgrp;
@Service
@Service
public
class
FxtselServiceImpl
implements
FxtselService
{
public
class
FxtselServiceImpl
implements
FxtselService
{
...
@@ -49,7 +48,7 @@ public class FxtselServiceImpl implements FxtselService {
...
@@ -49,7 +48,7 @@ public class FxtselServiceImpl implements FxtselService {
@Override
@Override
public
PageInfo
list
(
FxtselQueryVo
fxtselQueryVo
)
{
public
PageInfo
list
(
FxtselQueryVo
fxtselQueryVo
)
{
PageHelper
.
startPage
(
fxtselQueryVo
.
getPageNumber
(),
fxtselQueryVo
.
getPageSize
()).
setReasonable
(
true
);
PageHelper
.
startPage
(
fxtselQueryVo
.
getPageNumber
(),
fxtselQueryVo
.
getPageSize
()).
setReasonable
(
true
);
List
<
FxdWithPtsCbbResponseVo
>
fxdList
=
fxdMapper
.
queryFxd
(
fxtselQueryVo
);
List
<
FxdWithPtsCbbResponseVo
>
fxdList
=
fxdMapper
.
queryFxd
(
fxtselQueryVo
);
return
new
PageInfo
(
fxdList
);
return
new
PageInfo
(
fxdList
);
}
}
...
@@ -57,11 +56,11 @@ public class FxtselServiceImpl implements FxtselService {
...
@@ -57,11 +56,11 @@ public class FxtselServiceImpl implements FxtselService {
@Override
@Override
public
PageInfo
listjshpp
(
FxtselQueryVo
fxtselQueryVo
)
{
public
PageInfo
listjshpp
(
FxtselQueryVo
fxtselQueryVo
)
{
//FB+FS
//FB+FS
List
<
String
>
fxtypList
=
new
ArrayList
<>();
List
<
String
>
fxtypList
=
new
ArrayList
<>();
fxtypList
.
add
(
"LB"
);
fxtypList
.
add
(
"LB"
);
fxtypList
.
add
(
"LS"
);
fxtypList
.
add
(
"LS"
);
fxtselQueryVo
.
setFxtypList
(
fxtypList
);
fxtselQueryVo
.
setFxtypList
(
fxtypList
);
PageHelper
.
startPage
(
fxtselQueryVo
.
getPageNumber
(),
fxtselQueryVo
.
getPageSize
()).
setReasonable
(
true
);
PageHelper
.
startPage
(
fxtselQueryVo
.
getPageNumber
(),
fxtselQueryVo
.
getPageSize
()).
setReasonable
(
true
);
List
<
FxdWithPtsCbbResponseVo
>
fxdList
=
fxdMapper
.
queryFxd
(
fxtselQueryVo
);
List
<
FxdWithPtsCbbResponseVo
>
fxdList
=
fxdMapper
.
queryFxd
(
fxtselQueryVo
);
return
new
PageInfo
(
fxdList
);
return
new
PageInfo
(
fxdList
);
}
}
...
@@ -69,11 +68,11 @@ public class FxtselServiceImpl implements FxtselService {
...
@@ -69,11 +68,11 @@ public class FxtselServiceImpl implements FxtselService {
@Override
@Override
public
PageInfo
listdhpp
(
FxtselQueryVo
fxtselQueryVo
)
{
public
PageInfo
listdhpp
(
FxtselQueryVo
fxtselQueryVo
)
{
//FB+FS
//FB+FS
List
<
String
>
fxtypList
=
new
ArrayList
<>();
List
<
String
>
fxtypList
=
new
ArrayList
<>();
fxtypList
.
add
(
"FB"
);
fxtypList
.
add
(
"FB"
);
fxtypList
.
add
(
"FS"
);
fxtypList
.
add
(
"FS"
);
fxtselQueryVo
.
setFxtypList
(
fxtypList
);
fxtselQueryVo
.
setFxtypList
(
fxtypList
);
PageHelper
.
startPage
(
fxtselQueryVo
.
getPageNumber
(),
fxtselQueryVo
.
getPageSize
()).
setReasonable
(
true
);
PageHelper
.
startPage
(
fxtselQueryVo
.
getPageNumber
(),
fxtselQueryVo
.
getPageSize
()).
setReasonable
(
true
);
List
<
FxdWithPtsCbbResponseVo
>
fxdList
=
fxdMapper
.
queryFxd
(
fxtselQueryVo
);
List
<
FxdWithPtsCbbResponseVo
>
fxdList
=
fxdMapper
.
queryFxd
(
fxtselQueryVo
);
return
new
PageInfo
(
fxdList
);
return
new
PageInfo
(
fxdList
);
}
}
...
@@ -81,55 +80,55 @@ public class FxtselServiceImpl implements FxtselService {
...
@@ -81,55 +80,55 @@ public class FxtselServiceImpl implements FxtselService {
@Override
@Override
public
PageInfo
listjsh
(
FxtselQueryVo
fxtselQueryVo
)
{
public
PageInfo
listjsh
(
FxtselQueryVo
fxtselQueryVo
)
{
//FB+FS
//FB+FS
List
<
String
>
fxtypList
=
new
ArrayList
<>();
List
<
String
>
fxtypList
=
new
ArrayList
<>();
fxtypList
.
add
(
"SS"
);
fxtypList
.
add
(
"SS"
);
fxtypList
.
add
(
"SB"
);
fxtypList
.
add
(
"SB"
);
fxtselQueryVo
.
setFxtypList
(
fxtypList
);
fxtselQueryVo
.
setFxtypList
(
fxtypList
);
PageHelper
.
startPage
(
fxtselQueryVo
.
getPageNumber
(),
fxtselQueryVo
.
getPageSize
()).
setReasonable
(
true
);
PageHelper
.
startPage
(
fxtselQueryVo
.
getPageNumber
(),
fxtselQueryVo
.
getPageSize
()).
setReasonable
(
true
);
List
<
FxdWithPtsCbbResponseVo
>
fxdList
=
fxdMapper
.
queryFxd
(
fxtselQueryVo
);
List
<
FxdWithPtsCbbResponseVo
>
fxdList
=
fxdMapper
.
queryFxd
(
fxtselQueryVo
);
return
new
PageInfo
(
fxdList
);
return
new
PageInfo
(
fxdList
);
}
}
@Override
@Override
public
List
<
TrncodVo
>
dealWithByInr
(
TrnCodeQueryVo
trnCodeQueryVo
)
{
public
List
<
TrncodVo
>
dealWithByInr
(
TrnCodeQueryVo
trnCodeQueryVo
)
{
String
type
=
trnCodeQueryVo
.
getType
();
String
type
=
StringUtils
.
trimToEmpty
(
trnCodeQueryVo
.
getType
());
if
(
type
==
null
){
if
(
"JSH"
.
equals
(
type
))
{
type
=
""
;
//结售汇页签
return
jshDealWithByInr
(
trnCodeQueryVo
);
}
}
List
<
TrncodVo
>
result
=
Lists
.
newArrayList
();
List
<
TrncodVo
>
result
=
Lists
.
newArrayList
();
Fxdgrp
fxdgrp
=
new
Fxdgrp
();
Fxdgrp
fxdgrp
=
new
Fxdgrp
();
fxdgrp
=
fxToolComponent
.
getFxdgrpByInr
(
trnCodeQueryVo
.
getInr
());
fxdgrp
=
fxToolComponent
.
getFxdgrpByInr
(
trnCodeQueryVo
.
getInr
());
if
(
"dhpp"
.
equals
(
type
.
toLowerCase
())){
if
(
"dhpp"
.
equals
(
type
.
toLowerCase
()))
{
String
[]
fxTraArray
=
{
"FXTFCM"
,
"FXTFCN"
};
String
[]
fxTraArray
=
{
"FXTFCM"
,
"FXTFCN"
};
String
[]
fxButArray
=
{
"外币兑换平盘确认"
,
"外币兑换平盘销账"
};
String
[]
fxButArray
=
{
"外币兑换平盘确认"
,
"外币兑换平盘销账"
};
String
isAllowed
=
""
;
String
isAllowed
=
""
;
for
(
int
i
=
0
;
i
<
fxTraArray
.
length
;
i
++)
{
for
(
int
i
=
0
;
i
<
fxTraArray
.
length
;
i
++)
{
TrncodVo
trncodVo
=
new
TrncodVo
(
fxTraArray
[
i
],
fxButArray
[
i
],
isAllowed
,
"Y"
,
""
);
TrncodVo
trncodVo
=
new
TrncodVo
(
fxTraArray
[
i
],
fxButArray
[
i
],
isAllowed
,
"Y"
,
""
);
fxToolComponent
.
isFXTrnAllowed
(
fxdgrp
,
trncodVo
);
fxToolComponent
.
isFXTrnAllowed
(
fxdgrp
,
trncodVo
);
result
.
add
(
trncodVo
);
result
.
add
(
trncodVo
);
}
}
}
else
if
(
"jshpp"
.
equals
(
type
.
toLowerCase
()))
{
}
else
if
(
"jshpp"
.
equals
(
type
.
toLowerCase
()))
{
String
[]
fxTraArray
=
{
"FXTLCM"
,
"FXTLCN"
};
String
[]
fxTraArray
=
{
"FXTLCM"
,
"FXTLCN"
};
String
[]
fxButArray
=
{
"结售汇平盘确认"
,
"结售汇平盘销账"
};
String
[]
fxButArray
=
{
"结售汇平盘确认"
,
"结售汇平盘销账"
};
String
isAllowed
=
""
;
String
isAllowed
=
""
;
for
(
int
i
=
0
;
i
<
fxTraArray
.
length
;
i
++)
{
for
(
int
i
=
0
;
i
<
fxTraArray
.
length
;
i
++)
{
TrncodVo
trncodVo
=
new
TrncodVo
(
fxTraArray
[
i
],
fxButArray
[
i
],
isAllowed
,
"Y"
,
""
);
TrncodVo
trncodVo
=
new
TrncodVo
(
fxTraArray
[
i
],
fxButArray
[
i
],
isAllowed
,
"Y"
,
""
);
fxToolComponent
.
isFXTrnAllowed
(
fxdgrp
,
trncodVo
);
fxToolComponent
.
isFXTrnAllowed
(
fxdgrp
,
trncodVo
);
result
.
add
(
trncodVo
);
result
.
add
(
trncodVo
);
}
}
}
else
if
(
"jsh"
.
equals
(
type
.
toLowerCase
()))
{
}
else
if
(
"jsh"
.
equals
(
type
.
toLowerCase
()))
{
String
[]
fxTraArray
=
{
"FXTSQO"
};
String
[]
fxTraArray
=
{
"FXTSQO"
};
String
[]
fxButArray
=
{
"结售汇报价"
};
String
[]
fxButArray
=
{
"结售汇报价"
};
String
isAllowed
=
""
;
String
isAllowed
=
""
;
for
(
int
i
=
0
;
i
<
fxTraArray
.
length
;
i
++)
{
for
(
int
i
=
0
;
i
<
fxTraArray
.
length
;
i
++)
{
TrncodVo
trncodVo
=
new
TrncodVo
(
fxTraArray
[
i
],
fxButArray
[
i
],
isAllowed
,
"Y"
,
""
);
TrncodVo
trncodVo
=
new
TrncodVo
(
fxTraArray
[
i
],
fxButArray
[
i
],
isAllowed
,
"Y"
,
""
);
fxToolComponent
.
isFXTrnAllowed
(
fxdgrp
,
trncodVo
);
fxToolComponent
.
isFXTrnAllowed
(
fxdgrp
,
trncodVo
);
result
.
add
(
trncodVo
);
result
.
add
(
trncodVo
);
}
}
}
else
{
}
else
{
}
}
...
@@ -138,7 +137,6 @@ public class FxtselServiceImpl implements FxtselService {
...
@@ -138,7 +137,6 @@ public class FxtselServiceImpl implements FxtselService {
}
}
@Override
@Override
public
Object
selectXxdByPrimaryKey
(
Map
<
String
,
String
>
map
)
{
public
Object
selectXxdByPrimaryKey
(
Map
<
String
,
String
>
map
)
{
String
objinr
=
map
.
get
(
"objinr"
);
String
objinr
=
map
.
get
(
"objinr"
);
...
@@ -146,7 +144,7 @@ public class FxtselServiceImpl implements FxtselService {
...
@@ -146,7 +144,7 @@ public class FxtselServiceImpl implements FxtselService {
String
pntinr
=
map
.
get
(
"pntinr"
);
String
pntinr
=
map
.
get
(
"pntinr"
);
FxtfopStoreBo
fxtfopStoreBo
=
new
FxtfopStoreBo
();
FxtfopStoreBo
fxtfopStoreBo
=
new
FxtfopStoreBo
();
fxtfopStoreBo
.
reset
();
fxtfopStoreBo
.
reset
();
if
(
objinr
.
length
()
==
16
)
{
if
(
objinr
.
length
()
==
16
)
{
Trn
trnLid
=
trnMapper
.
selectByObjinrTrn
(
objtyp
,
objinr
,
"FXTFOP"
);
Trn
trnLid
=
trnMapper
.
selectByObjinrTrn
(
objtyp
,
objinr
,
"FXTFOP"
);
if
(!
Objects
.
isNull
(
trnLid
))
{
if
(!
Objects
.
isNull
(
trnLid
))
{
fxtfopStoreBo
=
sysmodService
.
streamGetNameInSubDir
(
FxtfopStoreBo
.
class
,
trnLid
.
getInr
());
fxtfopStoreBo
=
sysmodService
.
streamGetNameInSubDir
(
FxtfopStoreBo
.
class
,
trnLid
.
getInr
());
...
...
isc-funds-business/src/main/java/com/brilliance/isc/funds/fxtsqo/register/settle/FxtsqoSettleRegister.java
View file @
ef8e0d83
...
@@ -39,11 +39,11 @@ public class FxtsqoSettleRegister implements ISettleRegister {
...
@@ -39,11 +39,11 @@ public class FxtsqoSettleRegister implements ISettleRegister {
FxdBizInfoVo
rec
=
(
FxdBizInfoVo
)
setmodVo
.
getRec
();
FxdBizInfoVo
rec
=
(
FxdBizInfoVo
)
setmodVo
.
getRec
();
Map
<
String
,
Cbb
>
cbsMap
=
setmodVo
.
getCbsMap
();
Map
<
String
,
Cbb
>
cbsMap
=
setmodVo
.
getCbsMap
();
BigDecimal
maxAmt
=
BigDecimal
.
ZERO
;
BigDecimal
maxAmt
=
BigDecimal
.
ZERO
;
if
(
setmodVo
.
getCbsMap
()
.
get
(
"MAX"
)
!=
null
)
{
if
(
cbsMap
.
get
(
"MAX"
)
!=
null
)
{
maxAmt
=
setmodVo
.
getCbsMap
().
get
(
"MAX"
).
getAmt
();
maxAmt
=
setmodVo
.
getCbsMap
().
get
(
"MAX"
).
getAmt
();
}
}
String
nom1Cur
=
NULLSTR
;
String
nom1Cur
=
NULLSTR
;
if
(
setmodVo
.
getCbsMap
()
.
get
(
"NOM1"
)
!=
null
)
{
if
(
cbsMap
.
get
(
"NOM1"
)
!=
null
)
{
nom1Cur
=
setmodVo
.
getCbsMap
().
get
(
"NOM1"
).
getCur
();
nom1Cur
=
setmodVo
.
getCbsMap
().
get
(
"NOM1"
).
getCur
();
}
}
setmodVo
.
setDocamt
(
maxAmt
);
setmodVo
.
setDocamt
(
maxAmt
);
...
...
isc-funds-business/src/main/java/com/brilliance/isc/funds/fxtsqo/service/FxtsqoTransactionServiceImpl.java
View file @
ef8e0d83
...
@@ -156,6 +156,9 @@ public class FxtsqoTransactionServiceImpl extends AbstractTransactionService<Fxt
...
@@ -156,6 +156,9 @@ public class FxtsqoTransactionServiceImpl extends AbstractTransactionService<Fxt
bizInfoVo
.
setTrnman
(
rec
.
getTrnman
());
bizInfoVo
.
setTrnman
(
rec
.
getTrnman
());
bizInfoVo
.
setRat
(
rec
.
getRat
());
bizInfoVo
.
setRat
(
rec
.
getRat
());
bizInfoVo
.
setSetdat
(
rec
.
getSetdat
());
bizInfoVo
.
setSetdat
(
rec
.
getSetdat
());
bizInfoVo
.
setNam
(
rec
.
getNam
());
bizInfoVo
.
setBchkeyinr
(
rec
.
getBchkeyinr
());
bizInfoVo
.
setBranchInr
(
rec
.
getBranchinr
());
return
bizInfoVo
;
return
bizInfoVo
;
}
}
...
@@ -167,6 +170,7 @@ public class FxtsqoTransactionServiceImpl extends AbstractTransactionService<Fxt
...
@@ -167,6 +170,7 @@ public class FxtsqoTransactionServiceImpl extends AbstractTransactionService<Fxt
@Override
@Override
public
FxtsqoStoreBo
init
(
FxtsqoStoreBo
FxtsqoStoreBo
)
{
public
FxtsqoStoreBo
init
(
FxtsqoStoreBo
FxtsqoStoreBo
)
{
FxtsqoStoreBo
.
reset
();
FxtsqoStoreBo
.
reset
();
init950
(
FxtsqoStoreBo
);
init1000
(
FxtsqoStoreBo
);
init1000
(
FxtsqoStoreBo
);
return
FxtsqoStoreBo
;
return
FxtsqoStoreBo
;
}
}
...
...
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