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
bf59b139
Commit
bf59b139
authored
Oct 18, 2024
by
huangshunlin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
汇入/汇出清算 即期结售汇报价
parent
2e3f178e
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
37 changed files
with
2224 additions
and
6 deletions
+2224
-6
messages_en_US.properties
...ds-boot/src/main/resources/i18n/messages_en_US.properties
+7
-3
messages_zh_CN.properties
...ds-boot/src/main/resources/i18n/messages_zh_CN.properties
+6
-3
CrToolComponent.java
...rilliance/isc/funds/common/component/CrToolComponent.java
+0
-0
CrtcriValidator.java
...om/brilliance/isc/funds/crtcri/check/CrtcriValidator.java
+98
-0
CrtcriDocSet.java
...om/brilliance/isc/funds/crtcri/document/CrtcriDocSet.java
+33
-0
CrtcriDocumentRegister.java
...isc/funds/crtcri/register/doc/CrtcriDocumentRegister.java
+26
-0
CrtcriFeeRegister.java
...ance/isc/funds/crtcri/register/fee/CrtcriFeeRegister.java
+33
-0
CrtcriSettleRegister.java
...sc/funds/crtcri/register/settle/CrtcriSettleRegister.java
+104
-0
CrtcriResource.java
.../brilliance/isc/funds/crtcri/resource/CrtcriResource.java
+58
-0
CrtcriTransactionServiceImpl.java
...sc/funds/crtcri/service/CrtcriTransactionServiceImpl.java
+0
-0
CrtcroValidator.java
...om/brilliance/isc/funds/crtcro/check/CrtcroValidator.java
+37
-0
CrtcroDocSet.java
...om/brilliance/isc/funds/crtcro/document/CrtcroDocSet.java
+33
-0
CrtcroDocumentRegister.java
...isc/funds/crtcro/register/doc/CrtcroDocumentRegister.java
+26
-0
CrtcroFeeRegister.java
...ance/isc/funds/crtcro/register/fee/CrtcroFeeRegister.java
+33
-0
CrtcroSettleRegister.java
...sc/funds/crtcro/register/settle/CrtcroSettleRegister.java
+63
-0
CrtcroResource.java
.../brilliance/isc/funds/crtcro/resource/CrtcroResource.java
+57
-0
CrtcroTransactionServiceImpl.java
...sc/funds/crtcro/service/CrtcroTransactionServiceImpl.java
+199
-0
FxtsqoValidator.java
...om/brilliance/isc/funds/fxtsqo/check/FxtsqoValidator.java
+36
-0
FxtsqoDocSet.java
...om/brilliance/isc/funds/fxtsqo/document/FxtsqoDocSet.java
+33
-0
FxtsqoDiasavRegister.java
...sc/funds/fxtsqo/register/diasav/FxtsqoDiasavRegister.java
+40
-0
FxtsqoDocumentRegister.java
...isc/funds/fxtsqo/register/doc/FxtsqoDocumentRegister.java
+26
-0
FxtsqoFeeRegister.java
...ance/isc/funds/fxtsqo/register/fee/FxtsqoFeeRegister.java
+26
-0
FxtsqoSettleRegister.java
...sc/funds/fxtsqo/register/settle/FxtsqoSettleRegister.java
+97
-0
FxtsqoResource.java
.../brilliance/isc/funds/fxtsqo/resource/FxtsqoResource.java
+42
-0
FxtsqoTransactionServiceImpl.java
...sc/funds/fxtsqo/service/FxtsqoTransactionServiceImpl.java
+220
-0
CrtcriStoreBo.java
...java/com/brilliance/isc/funds/bo/funds/CrtcriStoreBo.java
+145
-0
CrtcroStoreBo.java
...java/com/brilliance/isc/funds/bo/funds/CrtcroStoreBo.java
+108
-0
CrtctfStoreBo.java
...java/com/brilliance/isc/funds/bo/funds/CrtctfStoreBo.java
+29
-0
FxtsqoStoreBo.java
...java/com/brilliance/isc/funds/bo/funds/FxtsqoStoreBo.java
+35
-0
CrtcriStructMapper.java
...ce/isc/funds/transfer/transaction/CrtcriStructMapper.java
+64
-0
CrtcroStructMapper.java
...ce/isc/funds/transfer/transaction/CrtcroStructMapper.java
+64
-0
CrtctfStructMapper.java
...ce/isc/funds/transfer/transaction/CrtctfStructMapper.java
+64
-0
FxtsqoStructMapper.java
...ce/isc/funds/transfer/transaction/FxtsqoStructMapper.java
+60
-0
CrtcriStoreVo.java
...java/com/brilliance/isc/funds/vo/funds/CrtcriStoreVo.java
+149
-0
CrtcroStoreVo.java
...java/com/brilliance/isc/funds/vo/funds/CrtcroStoreVo.java
+108
-0
CrtctfStoreVo.java
...java/com/brilliance/isc/funds/vo/funds/CrtctfStoreVo.java
+29
-0
FxtsqoStoreVo.java
...java/com/brilliance/isc/funds/vo/funds/FxtsqoStoreVo.java
+36
-0
No files found.
isc-funds-boot/src/main/resources/i18n/messages_en_US.properties
View file @
bf59b139
0002
=
This field is mandatory
0002
=
This field is mandatory
funds_fxtssb_000000
=
Settlement
funds_fxtssb_000000
=
Settlement
funds_fxtsss_000000
=
Settlement
funds_fxtsss_000000
=
Settlement
funds_fxtsqo_000000
=
Settlement
funds_fxtsqo_000001
=
远期结售汇交割提示:{0}
funds_fxtsqo_000002
=
The clearing amount has to be positive.
funds_fxtsqo_000003
=
非汇款业务请输入业务编号
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}
funds_crtcri_000000
=
Clearing in
isc-funds-boot/src/main/resources/i18n/messages_zh_CN.properties
View file @
bf59b139
0002
=
This field is mandatory
0002
=
This field is mandatory
funds_fxtssb_000000
=
Settlement
funds_fxtssb_000000
=
Settlement
funds_fxtsss_000000
=
Settlement
funds_fxtsss_000000
=
Settlement
funds_fxtsqo_000000
=
Settlement
funds_fxtsqo_000001
=
远期结售汇交割提示:{0}
funds_fxtsqo_000002
=
The clearing amount has to be positive.
funds_fxtsqo_000003
=
非汇款业务请输入业务编号
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_crtcri_000000
=
Clearing in
isc-funds-business/src/main/java/com/brilliance/isc/funds/common/component/CrToolComponent.java
0 → 100644
View file @
bf59b139
This diff is collapsed.
Click to expand it.
isc-funds-business/src/main/java/com/brilliance/isc/funds/crtcri/check/CrtcriValidator.java
0 → 100644
View file @
bf59b139
package
com
.
brilliance
.
isc
.
funds
.
crtcri
.
check
;
import
com.brilliance.isc.common.transaction.newcheck.AbstractModuleValidator
;
import
com.brilliance.isc.common.transaction.newcheck.ValidResult
;
import
com.brilliance.isc.common.transaction.newcheck.Validate
;
import
com.brilliance.isc.funds.bo.funds.CrtcriStoreBo
;
import
com.brilliance.mda.runtime.mda.util.MdaUtils
;
import
org.springframework.stereotype.Component
;
import
javax.annotation.PostConstruct
;
import
java.util.HashMap
;
import
java.util.Map
;
/**
* @program: isc-funds
* @ClassName: CrtcriValidator
* @description: 汇入清算 Crtcri 校验
* @author: huangshunlin
* @create: 2024-10-16 20:26
*/
@Component
public
class
CrtcriValidator
extends
AbstractModuleValidator
<
CrtcriStoreBo
>
{
@Override
@PostConstruct
public
void
register
()
{
super
.
register
();
}
@Override
public
Map
<
String
,
String
>
validate
(
CrtcriStoreBo
vo
)
{
Map
<
String
,
String
>
maps
=
new
HashMap
<>();
maps
.
putAll
(
super
.
validate
(
vo
));
return
maps
;
}
/**
* source:crtcri.0006.script
*/
@Validate
(
path
=
"crdgrp.rec.rcvobjtyp"
)
public
ValidResult
checkCrdgrpRecRcvobjtypN1000
(
CrtcriStoreBo
vo
)
{
if
(
MdaUtils
.
isEmpty
(
vo
.
getCrdgrp
().
getRec
().
getRcvobjtyp
()))
{
return
errorMandatory
();
}
return
null
;
}
/**
* source:crtcri.0007.script
*/
@Validate
(
path
=
"crdgrp.rec.rcvbchinr"
)
public
ValidResult
checkCrdgrpRecRcvbchinrN1000
(
CrtcriStoreBo
vo
)
{
if
(
MdaUtils
.
isEmpty
(
vo
.
getCrdgrp
().
getRec
().
getRcvbchinr
()))
{
return
errorMandatory
();
}
return
null
;
}
/**
* source:crtcri.0015.script
*/
@Validate
(
path
=
"crdgrp.cbs.max.amt"
)
public
ValidResult
checkCrdgrpCbsMaxAmtN1000
(
CrtcriStoreBo
vo
)
{
if
(
MdaUtils
.
compareTo
(
vo
.
getCrdgrp
().
getCbs
().
getMax
().
getAmt
(),
0
)
<=
0
)
{
return
ValidResult
.
build
(
false
,
getMessage
(
"funds_fxtsqo_000002"
));
}
return
null
;
}
/**
* source:crtcri.0017.script
*/
@Validate
(
path
=
"crdgrp.rec.msgref"
)
public
ValidResult
checkCrdgrpRecMsgrefN1000
(
CrtcriStoreBo
vo
)
{
// 除了汇款交易,其他均要指定业务
if
(
MdaUtils
.
compareTo
(
vo
.
getCrdgrp
().
getRec
().
getRcvobjtyp
(),
"CPD"
)
!=
0
&&
MdaUtils
.
isEmpty
(
vo
.
getCrdgrp
().
getRec
().
getRcvobjinr
()))
{
return
ValidResult
.
build
(
false
,
getMessage
(
"funds_fxtsqo_000003"
));
}
return
null
;
}
/**
* source:crtcri.0023.script
*/
@Validate
(
path
=
"crdgrp.rec.errmsg"
)
public
ValidResult
checkCrdgrpRecErrmsgN1000
(
CrtcriStoreBo
vo
)
{
if
(
MdaUtils
.
compareTo
(
vo
.
getCrdgrp
().
getRec
().
getSta
(),
"E"
)
==
0
)
{
return
ValidResult
.
build
(
false
,
getMessage
(
"funds_fxtsqo_000004"
,
vo
.
getCrdgrp
().
getRec
().
getErrmsg
()));
}
return
null
;
}
}
isc-funds-business/src/main/java/com/brilliance/isc/funds/crtcri/document/CrtcriDocSet.java
0 → 100644
View file @
bf59b139
package
com
.
brilliance
.
isc
.
funds
.
crtcri
.
document
;
import
com.brilliance.isc.doc.handle.impl.AbstractTransactionDocSet
;
import
com.brilliance.isc.funds.bo.funds.CrtcriStoreBo
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.stereotype.Component
;
import
javax.annotation.PostConstruct
;
/**
* @program: isc-funds
* @ClassName: crtcriDocSet
* @description: 汇入清算 crtcri 面函
* @author: huangshunlin
* @create: 2024-10-16 20:27
*/
@Component
(
"crtcri.docset"
)
public
class
CrtcriDocSet
extends
AbstractTransactionDocSet
<
CrtcriStoreBo
>
{
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
CrtcriDocSet
.
class
);
/**
* 构建需要支持的面函组件
*/
@PostConstruct
public
void
buildMember
()
{
//扫描Cortype支持,必须要执行
scanDocCortypSupport
();
}
}
isc-funds-business/src/main/java/com/brilliance/isc/funds/crtcri/register/doc/CrtcriDocumentRegister.java
0 → 100644
View file @
bf59b139
package
com
.
brilliance
.
isc
.
funds
.
crtcri
.
register
.
doc
;
import
com.brilliance.isc.common.register.document.IDocumentRegister
;
import
com.brilliance.isc.common.trndoc.vo.TrndocVo
;
import
org.springframework.stereotype.Component
;
/**
* @program: isc-funds
* @ClassName: CrtcriDocumentRegister
* @description: 汇入清算 Crtcri 面函注册
* @author: huangshunlin
* @create: 2024-10-16 20:27
*/
@Component
(
"crtcri.documentRegister"
)
public
class
CrtcriDocumentRegister
implements
IDocumentRegister
{
@Override
public
void
registerDocument
(
TrndocVo
trndoc
)
{
doRegister
(
trndoc
);
}
public
void
doRegister
(
TrndocVo
trndoc
)
{
}
}
isc-funds-business/src/main/java/com/brilliance/isc/funds/crtcri/register/fee/CrtcriFeeRegister.java
0 → 100644
View file @
bf59b139
package
com
.
brilliance
.
isc
.
funds
.
crtcri
.
register
.
fee
;
import
com.brilliance.isc.common.register.fee.AbstractFeeRegister
;
import
com.brilliance.isc.common.register.fee.common.SetmodFeeRegister
;
import
com.brilliance.isc.common.setmod.vo.SetmodVo
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Component
;
/**
* @program: isc-funds
* @ClassName: CrtcriFeeRegister
* @description: 汇入清算 Crtcri 费用注册
* @author: huangshunlin
* @create: 2024-10-16 20:27
*/
@Component
(
"crtcri.feeRegister"
)
public
class
CrtcriFeeRegister
extends
AbstractFeeRegister
{
@Autowired
private
SetmodFeeRegister
setmodFeeRegister
;
@Override
public
void
registerSettlement
(
SetmodVo
setmodVo
)
{
transRegister
(
setmodVo
);
setmodFeeRegister
.
registerSettlement
(
setmodVo
);
}
private
void
transRegister
(
SetmodVo
setmodVo
)
{
}
}
isc-funds-business/src/main/java/com/brilliance/isc/funds/crtcri/register/settle/CrtcriSettleRegister.java
0 → 100644
View file @
bf59b139
package
com
.
brilliance
.
isc
.
funds
.
crtcri
.
register
.
settle
;
import
com.brilliance.isc.bo.Act
;
import
com.brilliance.isc.common.component.PtsptaToolComponent
;
import
com.brilliance.isc.common.register.settle.DefaultSettleRegister
;
import
com.brilliance.isc.common.register.settle.ISettleRegister
;
import
com.brilliance.isc.common.setglg.service.SetglgService
;
import
com.brilliance.isc.common.setglg.vo.SetglgVo
;
import
com.brilliance.isc.common.setmod.service.SetmodService
;
import
com.brilliance.isc.common.setmod.vo.SetmodVo
;
import
com.brilliance.isc.common.vo.PtsptaVo
;
import
com.brilliance.isc.funds.crtcri.service.CrtcriTransactionServiceImpl
;
import
com.brilliance.isc.vo.funds.CrdBizInfoVo
;
import
com.brilliance.mda.runtime.mda.util.MdaUtils
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Component
;
import
javax.annotation.Resource
;
import
java.math.BigDecimal
;
import
java.util.List
;
import
static
com
.
brilliance
.
mda
.
runtime
.
mda
.
Constants
.
NULLSTR
;
/**
* @program: isc-funds
* @ClassName: CrtcriSettleRegister
* @description: 汇入清算 Crtcri 结算注册
* @author: huangshunlin
* @create: 2024-10-16 20:27
*/
@Component
(
"crtcri.settleRegister"
)
public
class
CrtcriSettleRegister
implements
ISettleRegister
{
@Autowired
private
SetglgService
setglgService
;
@Autowired
private
DefaultSettleRegister
defaultSettleRegister
;
@Autowired
private
SetmodService
setmodService
;
@Autowired
private
PtsptaToolComponent
ptsptaToolComponent
;
@Resource
(
name
=
"crtcri.transaction"
)
CrtcriTransactionServiceImpl
fxtsssTransactionService
;
@Override
public
void
registerSettlement
(
SetmodVo
setmodVo
)
{
transRegister
(
setmodVo
);
defaultSettleRegister
.
registerSettlement
(
setmodVo
);
}
/**
* source:crtcri.0009.script
*/
private
void
transRegister
(
SetmodVo
setmodVo
)
{
CrdBizInfoVo
rec
=
(
CrdBizInfoVo
)
setmodVo
.
getRec
();
String
maxCur
=
""
;
BigDecimal
maxAmt
=
BigDecimal
.
ZERO
;
if
(
setmodVo
.
getCbsMap
().
get
(
"MAX"
)
!=
null
)
{
maxAmt
=
setmodVo
.
getCbsMap
().
get
(
"MAX"
).
getAmt
();
maxCur
=
setmodVo
.
getCbsMap
().
get
(
"MAX"
).
getCur
();
}
setmodVo
.
setDocamt
(
maxAmt
);
SetglgVo
setglg
=
setmodVo
.
getSetglg
();
setglgService
.
setglgClrAmount
(
setglg
,
"TRN"
);
String
rol
=
NULLSTR
;
List
<
PtsptaVo
>
ptsList
=
setmodVo
.
getPtsList
();
if
(
CollectionUtils
.
isNotEmpty
(
ptsList
))
{
// if (this.getCrdgrp().getAcc().isRolSet()) {
if
(
ptsptaToolComponent
.
ptsIsRolSet
(
ptsList
,
"ACC"
))
{
rol
=
"ACC"
;
}
else
{
rol
=
"SND"
;
}
}
String
dbtKey
=
setmodService
.
setGlgAmt
(
setmodVo
,
"TRN"
,
rol
,
setmodVo
.
getDoccur
(),
maxAmt
,
""
);
if
(!
MdaUtils
.
isEmpty
(
rec
.
getForare
()))
{
// this.getTrnmod().getTrnism().setDefDsp(rol, "D", "NOD" + CR + "VOD" + CR + "ARD");
}
else
{
// this.getTrnmod().getTrnism().setDefDsp(rol, "D", "NOD" + CR + "VOD");
}
Act
rcvact
=
new
Act
();
if
(
MdaUtils
.
isEmpty
(
rec
.
getRcvactInr
())
&&
!
MdaUtils
.
isEmpty
(
rec
.
getRcvbchinr
()))
{
if
(
MdaUtils
.
compareTo
(
rec
.
getCustyp
(),
"1"
)
==
0
)
{
// 对私
rcvact
=
fxtsssTransactionService
.
readClearingAct
(
"SP-RIP"
,
rec
.
getRcvbchinr
(),
maxCur
);
}
else
{
// 对公
rcvact
=
fxtsssTransactionService
.
readClearingAct
(
"SP-RIC"
,
rec
.
getRcvbchinr
(),
maxCur
);
}
}
String
cdtKey
=
setglgService
.
setglgAddAmount
(
setglg
,
"TRN"
,
"OWN"
,
setmodVo
.
getDoccur
(),
maxAmt
.
negate
(),
""
,
"SPC"
,
"A"
,
rcvact
.
getExtkey
(),
""
);
setmodVo
.
setFeeclirol
(
rol
);
setmodService
.
setglgAllValDat
(
setmodVo
,
rec
.
getOpndat
(),
"D"
);
}
}
isc-funds-business/src/main/java/com/brilliance/isc/funds/crtcri/resource/CrtcriResource.java
0 → 100644
View file @
bf59b139
package
com
.
brilliance
.
isc
.
funds
.
crtcri
.
resource
;
import
com.brilliance.isc.common.context.SettleContext
;
import
com.brilliance.isc.common.transaction.controller.AbstractTransactionController
;
import
com.brilliance.isc.funds.crtcri.service.CrtcriTransactionServiceImpl
;
import
com.brilliance.isc.funds.transfer.transaction.CrtcriStructMapper
;
import
com.brilliance.isc.funds.vo.funds.CrtcriStoreVo
;
import
com.brilliance.isc.transfer.IStructMapper
;
import
com.brilliance.isc.vo.ResponseSet
;
import
io.swagger.annotations.Api
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
javax.annotation.Resource
;
/**
* @program: isc-funds
* @ClassName: CrtcriResource
* @description: 汇入清算 Crtcri 请求入口
* @author: huangshunlin
* @create: 2024-10-08 15:34
*/
@RestController
@RequestMapping
(
"/crtcri"
)
@Api
(
"汇入清算"
)
public
class
CrtcriResource
extends
AbstractTransactionController
<
CrtcriStoreVo
>
{
@Resource
private
CrtcriStructMapper
crtcriStructMapper
;
public
IStructMapper
getStructMapper
()
{
return
crtcriStructMapper
;
}
@Resource
(
name
=
"crtcri.transaction"
)
CrtcriTransactionServiceImpl
crtcriTransactionService
;
@Autowired
private
SettleContext
settleContext
;
/**
* 获取业务参号
*
* @param crtcriStoreVo
* @return
*/
@PostMapping
(
"/getRef"
)
public
ResponseSet
<
String
>
getRef
(
@RequestBody
CrtcriStoreVo
crtcriStoreVo
)
{
String
ref
=
crtcriTransactionService
.
getRef
(
crtcriStoreVo
);
return
ResponseSet
.
simpleSuccess
(
ref
);
}
}
isc-funds-business/src/main/java/com/brilliance/isc/funds/crtcri/service/CrtcriTransactionServiceImpl.java
0 → 100644
View file @
bf59b139
This diff is collapsed.
Click to expand it.
isc-funds-business/src/main/java/com/brilliance/isc/funds/crtcro/check/CrtcroValidator.java
0 → 100644
View file @
bf59b139
package
com
.
brilliance
.
isc
.
funds
.
crtcro
.
check
;
import
com.brilliance.isc.common.transaction.newcheck.AbstractModuleValidator
;
import
com.brilliance.isc.funds.bo.funds.CrtcroStoreBo
;
import
org.springframework.stereotype.Component
;
import
javax.annotation.PostConstruct
;
import
java.util.HashMap
;
import
java.util.Map
;
/**
* @program: isc-funds
* @ClassName: CrtcroValidator
* @description: 汇出清算 Crtcro 校验
* @author: huangshunlin
* @create: 2024-10-17 22:38
*/
@Component
public
class
CrtcroValidator
extends
AbstractModuleValidator
<
CrtcroStoreBo
>
{
@Override
@PostConstruct
public
void
register
()
{
super
.
register
();
}
@Override
public
Map
<
String
,
String
>
validate
(
CrtcroStoreBo
vo
)
{
Map
<
String
,
String
>
maps
=
new
HashMap
<>();
maps
.
putAll
(
super
.
validate
(
vo
));
return
maps
;
}
}
isc-funds-business/src/main/java/com/brilliance/isc/funds/crtcro/document/CrtcroDocSet.java
0 → 100644
View file @
bf59b139
package
com
.
brilliance
.
isc
.
funds
.
crtcro
.
document
;
import
com.brilliance.isc.doc.handle.impl.AbstractTransactionDocSet
;
import
com.brilliance.isc.funds.bo.funds.CrtcroStoreBo
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.stereotype.Component
;
import
javax.annotation.PostConstruct
;
/**
* @program: isc-funds
* @ClassName: CrtcroDocSet
* @description: 汇出清算 Crtcro 面函
* @author: huangshunlin
* @create: 2024-10-17 22:39
*/
@Component
(
"crtcro.docset"
)
public
class
CrtcroDocSet
extends
AbstractTransactionDocSet
<
CrtcroStoreBo
>
{
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
CrtcroDocSet
.
class
);
/**
* 构建需要支持的面函组件
*/
@PostConstruct
public
void
buildMember
()
{
//扫描Cortype支持,必须要执行
scanDocCortypSupport
();
}
}
isc-funds-business/src/main/java/com/brilliance/isc/funds/crtcro/register/doc/CrtcroDocumentRegister.java
0 → 100644
View file @
bf59b139
package
com
.
brilliance
.
isc
.
funds
.
crtcro
.
register
.
doc
;
import
com.brilliance.isc.common.register.document.IDocumentRegister
;
import
com.brilliance.isc.common.trndoc.vo.TrndocVo
;
import
org.springframework.stereotype.Component
;
/**
* @program: isc-funds
* @ClassName: CrtcroDocumentRegister
* @description: 汇出清算 Crtcro 面函注册
* @author: huangshunlin
* @create: 2024-10-17 22:39
*/
@Component
(
"crtcro.documentRegister"
)
public
class
CrtcroDocumentRegister
implements
IDocumentRegister
{
@Override
public
void
registerDocument
(
TrndocVo
trndoc
)
{
doRegister
(
trndoc
);
}
public
void
doRegister
(
TrndocVo
trndoc
)
{
}
}
isc-funds-business/src/main/java/com/brilliance/isc/funds/crtcro/register/fee/CrtcroFeeRegister.java
0 → 100644
View file @
bf59b139
package
com
.
brilliance
.
isc
.
funds
.
crtcro
.
register
.
fee
;
import
com.brilliance.isc.common.register.fee.AbstractFeeRegister
;
import
com.brilliance.isc.common.register.fee.common.SetmodFeeRegister
;
import
com.brilliance.isc.common.setmod.vo.SetmodVo
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Component
;
/**
* @program: isc-funds
* @ClassName: CrtcroFeeRegister
* @description: 汇入清算 Crtcro 费用注册
* @author: huangshunlin
* @create: 2024-10-17 22:40
*/
@Component
(
"crtcro.feeRegister"
)
public
class
CrtcroFeeRegister
extends
AbstractFeeRegister
{
@Autowired
private
SetmodFeeRegister
setmodFeeRegister
;
@Override
public
void
registerSettlement
(
SetmodVo
setmodVo
)
{
transRegister
(
setmodVo
);
setmodFeeRegister
.
registerSettlement
(
setmodVo
);
}
private
void
transRegister
(
SetmodVo
setmodVo
)
{
}
}
isc-funds-business/src/main/java/com/brilliance/isc/funds/crtcro/register/settle/CrtcroSettleRegister.java
0 → 100644
View file @
bf59b139
package
com
.
brilliance
.
isc
.
funds
.
crtcro
.
register
.
settle
;
import
com.brilliance.isc.bo.Act
;
import
com.brilliance.isc.common.component.PtsptaToolComponent
;
import
com.brilliance.isc.common.register.settle.DefaultSettleRegister
;
import
com.brilliance.isc.common.register.settle.ISettleRegister
;
import
com.brilliance.isc.common.setglg.service.SetglgService
;
import
com.brilliance.isc.common.setglg.vo.SetglgVo
;
import
com.brilliance.isc.common.setmod.service.SetmodService
;
import
com.brilliance.isc.common.setmod.vo.SetmodVo
;
import
com.brilliance.isc.common.vo.PtsptaVo
;
import
com.brilliance.isc.funds.crtcro.service.CrtcroTransactionServiceImpl
;
import
com.brilliance.isc.vo.funds.CrdBizInfoVo
;
import
com.brilliance.mda.runtime.mda.util.MdaUtils
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Component
;
import
javax.annotation.Resource
;
import
java.math.BigDecimal
;
import
java.util.List
;
import
static
com
.
brilliance
.
mda
.
runtime
.
mda
.
Constants
.
NULLSTR
;
/**
* @program: isc-funds
* @ClassName: CrtcroSettleRegister
* @description: 汇入清算 Crtcro 结算注册
* @author: huangshunlin
* @create: 2024-10-16 20:27
*/
@Component
(
"crtcro.settleRegister"
)
public
class
CrtcroSettleRegister
implements
ISettleRegister
{
@Autowired
private
SetglgService
setglgService
;
@Autowired
private
DefaultSettleRegister
defaultSettleRegister
;
@Autowired
private
SetmodService
setmodService
;
@Autowired
private
PtsptaToolComponent
ptsptaToolComponent
;
@Resource
(
name
=
"crtcro.transaction"
)
CrtcroTransactionServiceImpl
fxtsssTransactionService
;
@Override
public
void
registerSettlement
(
SetmodVo
setmodVo
)
{
transRegister
(
setmodVo
);
defaultSettleRegister
.
registerSettlement
(
setmodVo
);
}
/**
* source:crtcro.0009.script
*/
private
void
transRegister
(
SetmodVo
setmodVo
)
{
}
}
isc-funds-business/src/main/java/com/brilliance/isc/funds/crtcro/resource/CrtcroResource.java
0 → 100644
View file @
bf59b139
package
com
.
brilliance
.
isc
.
funds
.
crtcro
.
resource
;
import
com.brilliance.isc.common.context.SettleContext
;
import
com.brilliance.isc.common.transaction.controller.AbstractTransactionController
;
import
com.brilliance.isc.funds.crtcro.service.CrtcroTransactionServiceImpl
;
import
com.brilliance.isc.funds.transfer.transaction.CrtcroStructMapper
;
import
com.brilliance.isc.funds.vo.funds.CrtcroStoreVo
;
import
com.brilliance.isc.transfer.IStructMapper
;
import
com.brilliance.isc.vo.ResponseSet
;
import
io.swagger.annotations.Api
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
javax.annotation.Resource
;
/**
* @program: isc-funds
* @ClassName: CrtcroResource
* @description: 汇出清算 Crtcro 请求入口
* @author: huangshunlin
* @create: 2024-10-17 22:41
*/
@RestController
@RequestMapping
(
"/crtcro"
)
@Api
(
"汇入清算"
)
public
class
CrtcroResource
extends
AbstractTransactionController
<
CrtcroStoreVo
>
{
@Resource
private
CrtcroStructMapper
crtcroStructMapper
;
public
IStructMapper
getStructMapper
()
{
return
crtcroStructMapper
;
}
@Resource
(
name
=
"crtcro.transaction"
)
CrtcroTransactionServiceImpl
crtcroTransactionService
;
@Autowired
private
SettleContext
settleContext
;
/**
* 获取业务参号
*
* @param crtcroStoreVo
* @return
*/
@PostMapping
(
"/getRef"
)
public
ResponseSet
<
String
>
getRef
(
@RequestBody
CrtcroStoreVo
crtcroStoreVo
)
{
String
ref
=
crtcroTransactionService
.
getRef
(
crtcroStoreVo
);
return
ResponseSet
.
simpleSuccess
(
ref
);
}
}
isc-funds-business/src/main/java/com/brilliance/isc/funds/crtcro/service/CrtcroTransactionServiceImpl.java
0 → 100644
View file @
bf59b139
package
com
.
brilliance
.
isc
.
funds
.
crtcro
.
service
;
import
com.brilliance.isc.bo.Bch
;
import
com.brilliance.isc.bo.Pta
;
import
com.brilliance.isc.bo.model.Crdgrp
;
import
com.brilliance.isc.common.api.bch.service.BchService
;
import
com.brilliance.isc.common.cache.pta.PtaCacheService
;
import
com.brilliance.isc.common.cbsmod.service.CbsmodService
;
import
com.brilliance.isc.common.cbsmod.service.XrtmodService
;
import
com.brilliance.isc.common.contants.CommonContants
;
import
com.brilliance.isc.common.context.SettleContext
;
import
com.brilliance.isc.common.glemod.service.GlemodService
;
import
com.brilliance.isc.common.setmod.service.SetmodService
;
import
com.brilliance.isc.common.setmod.vo.SetmodVo
;
import
com.brilliance.isc.common.sysmod.SysmodService
;
import
com.brilliance.isc.common.transaction.AbstractTransactionService
;
import
com.brilliance.isc.common.transaction.help.TransactionHelpService
;
import
com.brilliance.isc.common.transaction.help.TransactionServiceSet
;
import
com.brilliance.isc.common.trnmod.service.TrnmodService
;
import
com.brilliance.isc.common.trnmod.vo.TrnmodVo
;
import
com.brilliance.isc.common.util.StringUtils
;
import
com.brilliance.isc.common.vo.BizAmdInfoVo
;
import
com.brilliance.isc.common.vo.BizInfoVo
;
import
com.brilliance.isc.common.vo.PtsptaVo
;
import
com.brilliance.isc.funds.bo.funds.CrtcroStoreBo
;
import
com.brilliance.isc.funds.common.component.CrToolComponent
;
import
com.brilliance.isc.funds.crtcro.check.CrtcroValidator
;
import
com.brilliance.isc.funds.vo.funds.CrtcroStoreVo
;
import
com.brilliance.isc.mda.dao.ActMapper
;
import
com.brilliance.isc.mda.dao.PtyratMapper
;
import
com.brilliance.isc.vo.funds.FxdBizInfoVo
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.PostConstruct
;
import
javax.annotation.Resource
;
import
java.util.Map
;
import
java.util.Objects
;
import
static
com
.
brilliance
.
mda
.
runtime
.
mda
.
Constants
.
NULLSTR
;
/**
* @program: isc-funds
* @ClassName: CrtcroTransactionServiceImpl
* @description: 汇出清算 Crtcro 业务处理
* @author: huangshunlin
* @create: 2024-10-17 22:42
*/
@Service
(
"crtcro.transaction"
)
public
class
CrtcroTransactionServiceImpl
extends
AbstractTransactionService
<
CrtcroStoreBo
>
{
@Resource
private
CrtcroValidator
crtcroValidator
;
@Resource
private
XrtmodService
xrtmodService
;
@Resource
private
SysmodService
sysmodService
;
@Resource
private
CrToolComponent
crToolComponent
;
@Resource
private
TransactionHelpService
transactionHelpService
;
@Resource
private
SettleContext
settleContext
;
@Resource
private
CbsmodService
cbsmodService
;
@Resource
private
TrnmodService
trnmodService
;
@Resource
private
GlemodService
glemodService
;
@Autowired
private
PtaCacheService
ptaCacheService
;
@Resource
private
BchService
bchService
;
@Resource
private
PtyratMapper
ptyratMapper
;
@Resource
private
SetmodService
setmodService
;
@Resource
private
ActMapper
actMapper
;
@PostConstruct
public
void
regisertService
()
{
serviceRegisterMaps
.
put
(
CommonContants
.
SETMOD_SERVICE
,
"Y"
);
serviceRegisterMaps
.
put
(
CommonContants
.
TRNDOC_SERVICE
,
"N"
);
serviceRegisterMaps
.
put
(
CommonContants
.
GLEMOD_SERVICE
,
"Y"
);
serviceRegisterMaps
.
put
(
CommonContants
.
TRNMOD_SERVICE
,
"Y"
);
serviceRegisterMaps
.
put
(
CommonContants
.
BOPSET_JSH_SERVICE
,
"Y"
);
}
@Override
protected
void
txnSave
(
CrtcroStoreBo
transactionVo
)
{
ruleMtabutSavN500
(
transactionVo
);
}
public
void
ruleMtabutSavN500
(
CrtcroStoreBo
bo
)
{
}
private
void
cbsSav
(
CrtcroStoreBo
bo
,
TrnmodVo
trnmodVo
)
{
}
@Override
protected
Map
<
String
,
String
>
txnCheck
(
CrtcroStoreBo
transactionVo
)
{
return
crtcroValidator
.
validate
(
transactionVo
);
}
@Override
protected
BizInfoVo
buildBizInfo
(
CrtcroStoreBo
transactionVo
)
{
FxdBizInfoVo
bizInfoVo
=
new
FxdBizInfoVo
();
return
bizInfoVo
;
}
@Override
protected
BizAmdInfoVo
buildBizAmdInfo
(
CrtcroStoreBo
transactionVo
)
{
return
null
;
}
@Override
public
CrtcroStoreBo
init
(
CrtcroStoreBo
crtcroStoreBo
)
{
crtcroStoreBo
.
reset
();
init1000
(
crtcroStoreBo
);
return
crtcroStoreBo
;
}
/**
* source:crtcro.0001.script
*/
public
void
init1000
(
CrtcroStoreBo
bo
)
{
}
private
void
init950
(
CrtcroStoreBo
crtcroStoreBo
)
{
}
@Override
public
void
beforeSave
(
CrtcroStoreBo
transactionVo
)
{
transactionVo
.
reset
();
transactionVo
.
reset
();
Crdgrp
crdgrp
=
transactionVo
.
getCrdgrp
();
TransactionServiceSet
transactionServiceSet
=
transactionHelpService
.
getTransactionStoreSet
();
transactionServiceSet
.
setRec
(
crdgrp
.
getRec
());
transactionServiceSet
.
setTransactionVo
(
transactionVo
);
crToolComponent
.
collectCbsMap
(
transactionServiceSet
,
""
,
crdgrp
.
getCbs
(),
"max"
);
crToolComponent
.
collectPtsList
(
transactionServiceSet
,
crdgrp
,
null
);
settleContext
.
loadSettleSession
(
transactionVo
.
getTransName
(),
transactionVo
.
getUserId
(),
buildBizInfo
(
transactionVo
),
transactionServiceSet
.
getPtsList
());
}
@Override
protected
void
updateBizInfoVo
(
BizInfoVo
bizInfoVo
,
CrtcroStoreBo
transactionVo
)
{
bizInfoVo
.
setObjinr
(
transactionVo
.
getCrdgrp
().
getRec
().
getInr
());
}
public
String
getRef
(
CrtcroStoreVo
crtcroStoreVo
)
{
crtcroStoreVo
.
reset
();
PtsptaVo
ptsptaVo
=
crtcroStoreVo
.
getCrdgrp
().
getApl
();
if
(
ptsptaVo
==
null
||
StringUtils
.
isEmpty
(
ptsptaVo
.
getPtainr
()))
{
return
NULLSTR
;
}
Pta
pta
=
ptaCacheService
.
getPtaByInr
(
ptsptaVo
.
getPtainr
());
Bch
wrkbch
=
new
Bch
();
wrkbch
.
setInr
(
pta
.
getBranchinr
());
wrkbch
=
bchService
.
selectByPrimaryKey
(
wrkbch
);
if
(
Objects
.
isNull
(
wrkbch
))
{
return
NULLSTR
;
}
SettleContext
.
getUserSession
().
setWrkbch
(
wrkbch
);
Crdgrp
crdgrp
=
crtcroStoreVo
.
getCrdgrp
();
crToolComponent
.
getref
(
crdgrp
);
return
crdgrp
.
getRec
().
getOwnref
();
}
private
SetmodVo
buildSetmodVo
(
CrtcroStoreVo
vo
)
{
SetmodVo
setmodVo
=
new
SetmodVo
();
return
setmodVo
;
}
}
isc-funds-business/src/main/java/com/brilliance/isc/funds/fxtsqo/check/FxtsqoValidator.java
0 → 100644
View file @
bf59b139
package
com
.
brilliance
.
isc
.
funds
.
fxtsqo
.
check
;
import
com.brilliance.isc.common.transaction.newcheck.AbstractModuleValidator
;
import
com.brilliance.isc.funds.bo.funds.FxtsqoStoreBo
;
import
org.springframework.stereotype.Component
;
import
javax.annotation.PostConstruct
;
import
java.util.HashMap
;
import
java.util.Map
;
/**
* @program: isc-funds
* @ClassName: FxtsqoValidator
* @description: 即期结售汇报价 Fxtsqo 校验
* @author: huangshunlin
* @create: 2024-10-18 15:38
*/
@Component
public
class
FxtsqoValidator
extends
AbstractModuleValidator
<
FxtsqoStoreBo
>
{
@Override
@PostConstruct
public
void
register
()
{
super
.
register
();
}
@Override
public
Map
<
String
,
String
>
validate
(
FxtsqoStoreBo
vo
)
{
Map
<
String
,
String
>
maps
=
new
HashMap
<>();
maps
.
putAll
(
super
.
validate
(
vo
));
return
maps
;
}
}
isc-funds-business/src/main/java/com/brilliance/isc/funds/fxtsqo/document/FxtsqoDocSet.java
0 → 100644
View file @
bf59b139
package
com
.
brilliance
.
isc
.
funds
.
fxtsqo
.
document
;
import
com.brilliance.isc.doc.handle.impl.AbstractTransactionDocSet
;
import
com.brilliance.isc.funds.bo.funds.FxtsqoStoreBo
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.stereotype.Component
;
import
javax.annotation.PostConstruct
;
/**
* @program: isc-funds
* @ClassName: FxtsqoDocSet
* @description: 即期结售汇报价 Fxtsqo 面函
* @author: huangshunlin
* @create: 2024-10-08 15:39
*/
@Component
(
"fxtsqo.docset"
)
public
class
FxtsqoDocSet
extends
AbstractTransactionDocSet
<
FxtsqoStoreBo
>
{
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
FxtsqoDocSet
.
class
);
/**
* 构建需要支持的面函组件
*/
@PostConstruct
public
void
buildMember
()
{
//扫描Cortype支持,必须要执行
scanDocCortypSupport
();
}
}
isc-funds-business/src/main/java/com/brilliance/isc/funds/fxtsqo/register/diasav/FxtsqoDiasavRegister.java
0 → 100644
View file @
bf59b139
package
com
.
brilliance
.
isc
.
funds
.
fxtsqo
.
register
.
diasav
;
import
com.brilliance.isc.common.register.diasav.CommonDiasavRegister
;
import
com.brilliance.isc.common.register.diasav.IDiasavRegister
;
import
com.brilliance.isc.common.trndia.service.TrndiaService
;
import
com.brilliance.isc.common.trndia.vo.TrndiaVo
;
import
com.brilliance.isc.common.util.I18nUtil
;
import
com.brilliance.isc.vo.funds.FxdBizInfoVo
;
import
com.brilliance.mda.runtime.mda.util.MdaUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Component
;
import
static
com
.
brilliance
.
mda
.
runtime
.
mda
.
Constants
.
DiaToReplace
;
@Component
(
"fxtsqo.diasavRegister"
)
public
class
FxtsqoDiasavRegister
implements
IDiasavRegister
{
@Autowired
private
CommonDiasavRegister
commonDiasavRegister
;
@Autowired
private
TrndiaService
trndiaService
;
@Override
public
void
diasav
(
TrndiaVo
trndia
)
{
this
.
trnDiasav
(
trndia
);
commonDiasavRegister
.
diasav
(
trndia
);
}
/**
* source:fxtsqo.0006.script
*/
private
void
trnDiasav
(
TrndiaVo
trndiaVo
)
{
FxdBizInfoVo
rec
=
(
FxdBizInfoVo
)
trndiaVo
.
getRec
();
if
(!
MdaUtils
.
isEmpty
(
rec
.
getSetdat
()))
{
trndiaService
.
trnDiaSet
(
trndiaVo
,
"FXDSET"
,
rec
.
getSetdat
(),
"EXP"
,
I18nUtil
.
getMessage
(
"funds_fxtsqo_000001"
,
rec
.
getOwnref
()),
"FXTSST"
,
DiaToReplace
);
}
trndiaService
.
trnDiaSetDone
(
trndiaVo
,
"QUOTE"
);
}
}
isc-funds-business/src/main/java/com/brilliance/isc/funds/fxtsqo/register/doc/FxtsqoDocumentRegister.java
0 → 100644
View file @
bf59b139
package
com
.
brilliance
.
isc
.
funds
.
fxtsqo
.
register
.
doc
;
import
com.brilliance.isc.common.register.document.IDocumentRegister
;
import
com.brilliance.isc.common.trndoc.vo.TrndocVo
;
import
org.springframework.stereotype.Component
;
/**
* @program: isc-funds
* @ClassName: FxtsqoDocumentRegister
* @description: 即期结售汇报价 Fxtsqo 面函注册
* @author: huangshunlin
* @create: 2024-10-08 15:39
*/
@Component
(
"fxtsqo.documentRegister"
)
public
class
FxtsqoDocumentRegister
implements
IDocumentRegister
{
@Override
public
void
registerDocument
(
TrndocVo
trndoc
)
{
doRegister
(
trndoc
);
}
public
void
doRegister
(
TrndocVo
trndoc
)
{
}
}
isc-funds-business/src/main/java/com/brilliance/isc/funds/fxtsqo/register/fee/FxtsqoFeeRegister.java
0 → 100644
View file @
bf59b139
package
com
.
brilliance
.
isc
.
funds
.
fxtsqo
.
register
.
fee
;
import
com.brilliance.isc.common.register.fee.AbstractFeeRegister
;
import
com.brilliance.isc.common.register.fee.common.SetmodFeeRegister
;
import
com.brilliance.isc.common.setmod.vo.SetmodVo
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Component
;
@Component
(
"fxtsqo.feeRegister"
)
public
class
FxtsqoFeeRegister
extends
AbstractFeeRegister
{
@Autowired
private
SetmodFeeRegister
setmodFeeRegister
;
@Override
public
void
registerSettlement
(
SetmodVo
setmodVo
)
{
transRegister
(
setmodVo
);
setmodFeeRegister
.
registerSettlement
(
setmodVo
);
}
private
void
transRegister
(
SetmodVo
setmodVo
)
{
}
}
isc-funds-business/src/main/java/com/brilliance/isc/funds/fxtsqo/register/settle/FxtsqoSettleRegister.java
0 → 100644
View file @
bf59b139
package
com
.
brilliance
.
isc
.
funds
.
fxtsqo
.
register
.
settle
;
import
com.brilliance.isc.bo.Cbb
;
import
com.brilliance.isc.common.register.settle.DefaultSettleRegister
;
import
com.brilliance.isc.common.register.settle.ISettleRegister
;
import
com.brilliance.isc.common.setglg.service.SetglgService
;
import
com.brilliance.isc.common.setglg.vo.SetglgVo
;
import
com.brilliance.isc.common.setmod.vo.SetmodVo
;
import
com.brilliance.isc.vo.funds.FxdBizInfoVo
;
import
com.brilliance.mda.runtime.mda.util.MdaUtils
;
import
com.brilliance.mda.runtime.mda.util.Strings
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Component
;
import
java.math.BigDecimal
;
import
java.util.Map
;
import
static
com
.
brilliance
.
mda
.
runtime
.
mda
.
Constants
.
NULLSTR
;
@Component
(
"fxtsqo.settleRegister"
)
public
class
FxtsqoSettleRegister
implements
ISettleRegister
{
@Autowired
private
SetglgService
setglgService
;
@Autowired
private
DefaultSettleRegister
defaultSettleRegister
;
@Override
public
void
registerSettlement
(
SetmodVo
setmodVo
)
{
transRegister
(
setmodVo
);
defaultSettleRegister
.
registerSettlement
(
setmodVo
);
}
/**
* source:fxtsqo.0005.script
*/
private
void
transRegister
(
SetmodVo
setmodVo
)
{
FxdBizInfoVo
rec
=
(
FxdBizInfoVo
)
setmodVo
.
getRec
();
Map
<
String
,
Cbb
>
cbsMap
=
setmodVo
.
getCbsMap
();
BigDecimal
maxAmt
=
BigDecimal
.
ZERO
;
if
(
setmodVo
.
getCbsMap
().
get
(
"MAX"
)
!=
null
)
{
maxAmt
=
setmodVo
.
getCbsMap
().
get
(
"MAX"
).
getAmt
();
}
String
nom1Cur
=
NULLSTR
;
if
(
setmodVo
.
getCbsMap
().
get
(
"NOM1"
)
!=
null
)
{
nom1Cur
=
setmodVo
.
getCbsMap
().
get
(
"NOM1"
).
getCur
();
}
setmodVo
.
setDocamt
(
maxAmt
);
setmodVo
.
setOpnamt
(
maxAmt
);
SetglgVo
setglg
=
setmodVo
.
getSetglg
();
setglgService
.
setglgClrAmount
(
setglg
,
"TRN"
);
setglgService
.
setglgClrAmount
(
setglg
,
"SET"
);
String
dsp1
=
NULLSTR
;
String
dsp2
=
NULLSTR
;
String
acc
=
NULLSTR
;
String
acc2
=
NULLSTR
;
String
dbtKey
=
NULLSTR
;
String
cdtKey
=
NULLSTR
;
if
(!
MdaUtils
.
isEmpty
(
rec
.
getRat
()))
{
if
(
MdaUtils
.
compareTo
(
Strings
.
mid
(
rec
.
getFxtyp
(),
1
,
1
),
"S"
)
==
0
)
{
if
(
MdaUtils
.
compareTo
(
rec
.
getDsp
(),
"CA"
)
==
0
)
{
dsp1
=
"LO"
;
}
else
{
dsp1
=
rec
.
getDsp
();
}
if
(
MdaUtils
.
compareTo
(
rec
.
getDsp2
(),
"CA"
)
==
0
)
{
dsp2
=
"LO"
;
}
else
{
dsp2
=
rec
.
getDsp2
();
}
acc
=
rec
.
getAcc
();
acc2
=
rec
.
getAcc2
();
}
else
{
dsp1
=
"RP"
;
dsp2
=
"RP"
;
acc
=
""
;
acc2
=
""
;
}
if
(
MdaUtils
.
compareTo
(
Strings
.
mid
(
rec
.
getFxtyp
(),
2
,
1
),
"B"
)
==
0
)
{
dbtKey
=
setglgService
.
setglgAddAmount
(
setglg
,
"TRN"
,
"APL"
,
setmodVo
.
getDoccur
(),
setmodVo
.
getSetamt
(),
""
,
dsp1
+
"D"
,
"F"
,
acc
,
""
);
cdtKey
=
setglgService
.
setglgAddAmount
(
setglg
,
"SET"
,
"APL"
,
setmodVo
.
getDoccur
(),
setmodVo
.
getSetamt
().
negate
(),
"SET"
,
dsp2
+
"C"
,
"F"
,
acc2
,
"SET"
);
setglgService
.
setglgAddAmtFldAccCur
(
setglg
,
"SET"
,
cdtKey
,
nom1Cur
);
setglgService
.
setglgAddAmtFldExtRat
(
setglg
,
"SET"
,
cdtKey
,
BigDecimal
.
ONE
,
rec
.
getRat
());
setglgService
.
setSettlementDetails
(
setglg
,
"B"
,
"APL"
,
rec
.
getTrnman
(),
rec
.
getTrdint
());
}
else
{
cdtKey
=
setglgService
.
setglgAddAmount
(
setglg
,
"TRN"
,
"APL"
,
setmodVo
.
getDoccur
(),
setmodVo
.
getSetamt
().
negate
(),
""
,
dsp1
+
"C"
,
"F"
,
acc
,
""
);
dbtKey
=
setglgService
.
setglgAddAmount
(
setglg
,
"SET"
,
"APL"
,
setmodVo
.
getDoccur
(),
setmodVo
.
getSetamt
(),
"SET"
,
dsp2
+
"D"
,
"F"
,
acc2
,
"SET"
);
setglgService
.
setglgAddAmtFldAccCur
(
setglg
,
"SET"
,
dbtKey
,
nom1Cur
);
setglgService
.
setglgAddAmtFldExtRat
(
setglg
,
"SET"
,
dbtKey
,
BigDecimal
.
ONE
,
rec
.
getRat
());
setglgService
.
setSettlementDetails
(
setglg
,
"S"
,
"APL"
,
rec
.
getTrnman
(),
rec
.
getTrdout
());
}
}
}
}
isc-funds-business/src/main/java/com/brilliance/isc/funds/fxtsqo/resource/FxtsqoResource.java
0 → 100644
View file @
bf59b139
package
com
.
brilliance
.
isc
.
funds
.
fxtsqo
.
resource
;
import
com.brilliance.isc.common.context.SettleContext
;
import
com.brilliance.isc.common.transaction.controller.AbstractTransactionController
;
import
com.brilliance.isc.funds.fxtsqo.service.FxtsqoTransactionServiceImpl
;
import
com.brilliance.isc.funds.transfer.transaction.FxtsqoStructMapper
;
import
com.brilliance.isc.funds.vo.funds.FxtsqoStoreVo
;
import
com.brilliance.isc.transfer.IStructMapper
;
import
io.swagger.annotations.Api
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
javax.annotation.Resource
;
/**
* @program: isc-funds
* @ClassName: FxtsqoResource
* @description: 即期结售汇报价 Fxtsqo 请求入口
* @author: huangshunlin
* @create: 2024-10-18 15:34
*/
@RestController
@RequestMapping
(
"/fxtsqo"
)
@Api
(
"即期结售汇报价"
)
public
class
FxtsqoResource
extends
AbstractTransactionController
<
FxtsqoStoreVo
>
{
@Resource
private
FxtsqoStructMapper
fxtsqoStructMapper
;
public
IStructMapper
getStructMapper
()
{
return
fxtsqoStructMapper
;
}
@Resource
(
name
=
"fxtsqo.transaction"
)
FxtsqoTransactionServiceImpl
fxtsqoTransactionService
;
@Autowired
private
SettleContext
settleContext
;
}
isc-funds-business/src/main/java/com/brilliance/isc/funds/fxtsqo/service/FxtsqoTransactionServiceImpl.java
0 → 100644
View file @
bf59b139
package
com
.
brilliance
.
isc
.
funds
.
fxtsqo
.
service
;
import
com.brilliance.isc.bo.Bch
;
import
com.brilliance.isc.bo.Fxd
;
import
com.brilliance.isc.bo.model.Fxdgrp
;
import
com.brilliance.isc.common.api.bch.service.BchService
;
import
com.brilliance.isc.common.cache.pta.PtaCacheService
;
import
com.brilliance.isc.common.cbsmod.service.CbsmodService
;
import
com.brilliance.isc.common.cbsmod.service.XrtmodService
;
import
com.brilliance.isc.common.contants.CommonContants
;
import
com.brilliance.isc.common.context.SettleContext
;
import
com.brilliance.isc.common.glemod.service.GlemodService
;
import
com.brilliance.isc.common.setmod.service.SetmodService
;
import
com.brilliance.isc.common.sysmod.SysmodService
;
import
com.brilliance.isc.common.transaction.AbstractTransactionService
;
import
com.brilliance.isc.common.transaction.help.TransactionHelpService
;
import
com.brilliance.isc.common.transaction.help.TransactionServiceSet
;
import
com.brilliance.isc.common.trnmod.service.TrnmodService
;
import
com.brilliance.isc.common.trnmod.vo.TrnmodVo
;
import
com.brilliance.isc.common.util.I18nUtil
;
import
com.brilliance.isc.common.vo.BizAmdInfoVo
;
import
com.brilliance.isc.common.vo.BizInfoVo
;
import
com.brilliance.isc.funds.bo.funds.FxtsqoStoreBo
;
import
com.brilliance.isc.funds.common.component.FxToolComponent
;
import
com.brilliance.isc.funds.fxtlop.service.FxtpService
;
import
com.brilliance.isc.funds.fxtsqo.check.FxtsqoValidator
;
import
com.brilliance.isc.mda.dao.PtyratMapper
;
import
com.brilliance.isc.vo.funds.FxdBizInfoVo
;
import
com.brilliance.mda.runtime.mda.util.Dates
;
import
com.brilliance.mda.runtime.mda.util.MdaUtils
;
import
com.brilliance.mda.runtime.mda.util.Strings
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.PostConstruct
;
import
javax.annotation.Resource
;
import
java.math.BigDecimal
;
import
java.util.Map
;
/**
* @program: isc-funds
* @ClassName: fxtsqoTransactionServiceImpl
* @description: 即期售汇报价 fxtsqo 业务处理
* @author: huangshunlin
* @create: 2024-10-18 15:35
*/
@Service
(
"fxtsqo.transaction"
)
public
class
FxtsqoTransactionServiceImpl
extends
AbstractTransactionService
<
FxtsqoStoreBo
>
{
@Resource
private
FxtsqoValidator
fxtsqoValidator
;
@Resource
private
XrtmodService
xrtmodService
;
@Resource
private
SysmodService
sysmodService
;
@Resource
private
FxToolComponent
fxToolComponent
;
@Resource
private
TransactionHelpService
transactionHelpService
;
@Resource
private
SettleContext
settleContext
;
@Resource
private
CbsmodService
cbsmodService
;
@Resource
private
TrnmodService
trnmodService
;
@Resource
private
GlemodService
glemodService
;
@Autowired
private
PtaCacheService
ptaCacheService
;
@Resource
private
BchService
bchService
;
@Resource
private
PtyratMapper
ptyratMapper
;
@Resource
private
SetmodService
setmodService
;
@Resource
private
FxtpService
fxtpService
;
@PostConstruct
public
void
regisertService
()
{
serviceRegisterMaps
.
put
(
CommonContants
.
SETMOD_SERVICE
,
"Y"
);
serviceRegisterMaps
.
put
(
CommonContants
.
TRNDIA_SERVICE
,
"Y"
);
serviceRegisterMaps
.
put
(
CommonContants
.
GLEMOD_SERVICE
,
"Y"
);
serviceRegisterMaps
.
put
(
CommonContants
.
TRNMOD_SERVICE
,
"Y"
);
}
@Override
protected
void
txnSave
(
FxtsqoStoreBo
transactionVo
)
{
ruleMtabutSavN500
(
transactionVo
);
}
/**
* source:fxtsqo.0002.script
*/
public
void
ruleMtabutSavN500
(
FxtsqoStoreBo
bo
)
{
TrnmodVo
trnmodVo
=
transactionHelpService
.
getTransactionStoreSet
().
getTrnmodVo
();
fxToolComponent
.
getref
(
bo
.
getFxdgrp
());
// 1. Create (rsp. update) Contract (incl. Texts)
fxToolComponent
.
sav
(
bo
.
getFxdgrp
(),
BigDecimal
.
ZERO
);
// 2. Build Transaction from FTDGRP
trnmodService
.
trnSetFromContract
(
trnmodVo
);
cbsSav
(
bo
);
// save documents
}
/**
* source:fxtsqo.0003.script
*/
private
void
cbsSav
(
FxtsqoStoreBo
bo
)
{
String
trninr
=
transactionHelpService
.
getTrninr
();
cbsmodService
.
cbsTrnSetNew
(
"TRN"
,
trninr
);
trnmodService
.
cbsTrnStore
(
"NOMAMT"
,
"AMT1"
,
Dates
.
today
(),
bo
.
getFxdgrp
().
getCbs
().
getNom1
().
getCur
(),
bo
.
getFxdgrp
().
getCbs
().
getNom1
().
getAmt
(),
I18nUtil
.
getMessage
(
"funds_fxtsqo_000000"
),
bo
.
getFxdgrp
().
getRec
(),
trninr
);
if
(
MdaUtils
.
compareTo
(
Strings
.
mid
(
bo
.
getFxdgrp
().
getRec
().
getFxtyp
(),
1
,
1
),
"S"
)
==
0
)
{
trnmodService
.
cbsTrnStore
(
"UTLAMT"
,
"AMT1"
,
Dates
.
today
(),
bo
.
getFxdgrp
().
getCbs
().
getMax
().
getCur
(),
bo
.
getFxdgrp
().
getCbs
().
getMax
().
getAmt
(),
I18nUtil
.
getMessage
(
"funds_fxtsqo_000000"
),
bo
.
getFxdgrp
().
getRec
(),
trninr
);
}
}
@Override
protected
Map
<
String
,
String
>
txnCheck
(
FxtsqoStoreBo
transactionVo
)
{
return
fxtsqoValidator
.
validate
(
transactionVo
);
}
@Override
protected
BizInfoVo
buildBizInfo
(
FxtsqoStoreBo
transactionVo
)
{
FxdBizInfoVo
bizInfoVo
=
new
FxdBizInfoVo
();
bizInfoVo
.
setObjtyp
(
"FXD"
);
Fxd
rec
=
transactionVo
.
getFxdgrp
().
getRec
();
bizInfoVo
.
setObjinr
(
rec
.
getInr
());
bizInfoVo
.
setOwnref
(
rec
.
getOwnref
());
bizInfoVo
.
setFxtyp
(
rec
.
getFxtyp
());
bizInfoVo
.
setAcc
(
rec
.
getAcc
());
bizInfoVo
.
setAcc2
(
rec
.
getAcc2
());
bizInfoVo
.
setDsp
(
rec
.
getDsp
());
bizInfoVo
.
setDsp2
(
rec
.
getDsp2
());
bizInfoVo
.
setTrdint
(
rec
.
getTrdint
());
bizInfoVo
.
setTrdout
(
rec
.
getTrdout
());
bizInfoVo
.
setTrnman
(
rec
.
getTrnman
());
bizInfoVo
.
setRat
(
rec
.
getRat
());
bizInfoVo
.
setSetdat
(
rec
.
getSetdat
());
return
bizInfoVo
;
}
@Override
protected
BizAmdInfoVo
buildBizAmdInfo
(
FxtsqoStoreBo
transactionVo
)
{
return
null
;
}
@Override
public
FxtsqoStoreBo
init
(
FxtsqoStoreBo
FxtsqoStoreBo
)
{
FxtsqoStoreBo
.
reset
();
init1000
(
FxtsqoStoreBo
);
return
FxtsqoStoreBo
;
}
/**
* source:fxtsqo.0001.script
*/
public
void
init1000
(
FxtsqoStoreBo
bo
)
{
bo
.
getFxdgrp
().
getCbs
().
getNom1
().
setCur
(
xrtmodService
.
sysiso
());
Bch
bch
=
bchService
.
getByBchInr
(
bo
.
getFxdgrp
().
getRec
().
getBchkeyinr
());
Bch
wrkbch
=
bchService
.
getByBchInr
(
bo
.
getFxdgrp
().
getRec
().
getBranchinr
());
SettleContext
.
getUserSession
().
setBch
(
bch
);
SettleContext
.
getUserSession
().
setWrkbch
(
wrkbch
);
// ctx.getDaoSession().dbRead(this.getSysmod().getBch(),this.getFxdgrp().getRec().getBchkeyinr(),"INR");
// ctx.getDaoSession().dbRead(this.getSysmod().getWrkbch(),this.getFxdgrp().getRec().getBranchinr(),"INR");
}
/**
* source:fxtsqo.0000.script
*/
private
void
init950
(
FxtsqoStoreBo
bo
)
{
// this.getTrnmod().troLockExistingContract ( this.getFxdgrp());
String
inr
=
bo
.
getFxdgrp
().
getRec
().
getInr
();
Fxdgrp
dbFxdgrp
=
fxToolComponent
.
getFxdgrpByInr
(
inr
);
bo
.
setFxdgrp
(
dbFxdgrp
);
}
@Override
public
void
beforeSave
(
FxtsqoStoreBo
transactionVo
)
{
transactionVo
.
reset
();
transactionVo
.
reset
();
Fxdgrp
fxdgrp
=
transactionVo
.
getFxdgrp
();
TransactionServiceSet
transactionServiceSet
=
transactionHelpService
.
getTransactionStoreSet
();
transactionServiceSet
.
setRec
(
fxdgrp
.
getRec
());
transactionServiceSet
.
setBlk
(
fxdgrp
.
getBlk
());
transactionServiceSet
.
setTransactionVo
(
transactionVo
);
fxToolComponent
.
collectCbsMap
(
transactionServiceSet
,
""
,
fxdgrp
.
getCbs
(),
"max"
,
"nom1"
,
"opn1"
,
"opn2"
);
fxToolComponent
.
collectPtsList
(
transactionServiceSet
,
fxdgrp
,
null
);
settleContext
.
loadSettleSession
(
transactionVo
.
getTransName
(),
transactionVo
.
getUserId
(),
buildBizInfo
(
transactionVo
),
transactionServiceSet
.
getPtsList
());
}
@Override
protected
void
updateBizInfoVo
(
BizInfoVo
bizInfoVo
,
FxtsqoStoreBo
transactionVo
)
{
bizInfoVo
.
setObjinr
(
transactionVo
.
getFxdgrp
().
getRec
().
getInr
());
}
}
isc-funds-entity/src/main/java/com/brilliance/isc/funds/bo/funds/CrtcriStoreBo.java
0 → 100644
View file @
bf59b139
package
com
.
brilliance
.
isc
.
funds
.
bo
.
funds
;
import
com.brilliance.isc.bo.Act
;
import
com.brilliance.isc.bo.Smh
;
import
com.brilliance.isc.bo.Spt
;
import
com.brilliance.isc.bo.model.*
;
import
com.brilliance.isc.common.nosmod.vo.Nosmod
;
import
com.brilliance.isc.common.transaction.vo.BaseTransactionVo
;
import
com.fasterxml.jackson.annotation.JsonIgnoreProperties
;
import
lombok.Data
;
import
static
com
.
brilliance
.
mda
.
runtime
.
mda
.
Constants
.
NULLSTR
;
/**
* @program: isc-funds
* @ClassName: CrtcriStoreBo
* @description: 汇入清算 bo
* @author: huangshunlin
* @create: 2024-10-16 20:24
*/
@Data
@JsonIgnoreProperties
(
ignoreUnknown
=
true
)
public
class
CrtcriStoreBo
extends
BaseTransactionVo
{
//Status I-INCOMING, O-OUTGOING, N-NOTNEED (max=1)
private
String
clrsta
=
NULLSTR
;
//Object Type of Associated Contract Optional (max=6)
private
String
rcvobjtyp
=
NULLSTR
;
private
Crdgrp
crdgrp
;
private
Crtp
crtp
;
private
Smh
smh
;
private
Smh
corsmh
;
private
Act
sndact
;
private
Act
aplact
;
private
Act
rcvact
;
private
Spt
crtspt
;
private
Bodgrp
bodgrp
;
private
Ccdgrp
ccdgrp
;
private
Bedgrp
bedgrp
;
private
Ledgrp
ledgrp
;
private
Btdgrp
btdgrp
;
private
Ltdgrp
ltdgrp
;
private
Gidgrp
gidgrp
;
// private Cldgrp cldgrp;
private
Cpdgrp
cpdgrp
;
private
Nosmod
nosmod
;
@Override
public
void
reset
()
{
super
.
reset
();
if
(
crdgrp
==
null
)
{
crdgrp
=
new
Crdgrp
();
}
crdgrp
.
reset
();
if
(
crtp
==
null
)
{
crtp
=
new
Crtp
();
}
crtp
.
reset
();
if
(
smh
==
null
)
{
smh
=
new
Smh
();
}
if
(
corsmh
==
null
)
{
corsmh
=
new
Smh
();
}
if
(
sndact
==
null
)
{
sndact
=
new
Act
();
}
if
(
aplact
==
null
)
{
aplact
=
new
Act
();
}
if
(
rcvact
==
null
)
{
rcvact
=
new
Act
();
}
if
(
crtspt
==
null
)
{
crtspt
=
new
Spt
();
}
if
(
bodgrp
==
null
)
{
bodgrp
=
new
Bodgrp
();
}
bodgrp
.
reset
();
if
(
ccdgrp
==
null
)
{
ccdgrp
=
new
Ccdgrp
();
}
ccdgrp
.
reset
();
if
(
bedgrp
==
null
)
{
bedgrp
=
new
Bedgrp
();
}
bedgrp
.
reset
();
if
(
ledgrp
==
null
)
{
ledgrp
=
new
Ledgrp
();
}
ledgrp
.
reset
();
if
(
btdgrp
==
null
)
{
btdgrp
=
new
Btdgrp
();
}
btdgrp
.
reset
();
if
(
ltdgrp
==
null
)
{
ltdgrp
=
new
Ltdgrp
();
}
ltdgrp
.
reset
();
if
(
gidgrp
==
null
)
{
gidgrp
=
new
Gidgrp
();
}
gidgrp
.
reset
();
if
(
cpdgrp
==
null
)
{
cpdgrp
=
new
Cpdgrp
();
}
cpdgrp
.
reset
();
if
(
nosmod
==
null
)
{
nosmod
=
new
Nosmod
();
}
nosmod
.
reset
();
}
}
isc-funds-entity/src/main/java/com/brilliance/isc/funds/bo/funds/CrtcroStoreBo.java
0 → 100644
View file @
bf59b139
package
com
.
brilliance
.
isc
.
funds
.
bo
.
funds
;
import
com.brilliance.isc.bo.Act
;
import
com.brilliance.isc.bo.Gle
;
import
com.brilliance.isc.bo.Smh
;
import
com.brilliance.isc.bo.Trn
;
import
com.brilliance.isc.bo.model.Crdgrp
;
import
com.brilliance.isc.bo.model.Crtmod
;
import
com.brilliance.isc.common.transaction.vo.BaseTransactionVo
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.fasterxml.jackson.annotation.JsonIgnoreProperties
;
import
lombok.Data
;
import
java.math.BigDecimal
;
import
java.util.Date
;
import
static
com
.
brilliance
.
mda
.
runtime
.
mda
.
Constants
.
NULLSTR
;
/**
* @program: isc-funds
* @ClassName: CrtcroStoreBo
* @description: 汇出清算 bo
* @author: huangshunlin
* @create: 2024-10-17 22:37
*/
@Data
@JsonIgnoreProperties
(
ignoreUnknown
=
true
)
public
class
CrtcroStoreBo
extends
BaseTransactionVo
{
//Direct payment one message (max=1)
private
String
dirindflg
=
NULLSTR
;
//Which MT to beneficiary institution (max=3)
private
String
sftmt
=
NULLSTR
;
//Message Init Flag (max=1)
private
String
msgflg
=
NULLSTR
;
//21 TAG for MTs (max=16)
private
String
tag21
=
NULLSTR
;
//Amount (scale=3)
private
BigDecimal
amt32
=
new
BigDecimal
(
"0.00"
);
//Amount (scale=3)
private
BigDecimal
amt33
=
new
BigDecimal
(
"0.00"
);
//Currency (max=3)
private
String
cur32
=
NULLSTR
;
//Currency (max=3)
private
String
cur33
=
NULLSTR
;
//valdat in tag 32
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
,
timezone
=
"GMT+8"
)
private
Date
dat32
;
//valdat in tag 33
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
,
timezone
=
"GMT+8"
)
private
Date
dat33
;
//swift tag 71B (max=35)
private
String
tag71b
=
NULLSTR
;
//II_BIC in MTs (max=12)
private
String
ownbic
=
NULLSTR
;
//Tag 999 (max=65)
private
String
tag999
=
NULLSTR
;
//Status I-INCOMING, O-OUTGOING, N-NOTNEED (max=1)
private
String
clrsta
=
NULLSTR
;
private
Crdgrp
crdgrp
;
private
Crtmod
crtmod
;
private
Trn
cretrn
;
private
Smh
cresmh
;
private
Smh
bndsmh
;
private
Gle
spcgle
;
private
Act
pacact
;
@Override
public
void
reset
()
{
super
.
reset
();
if
(
crdgrp
==
null
)
{
crdgrp
=
new
Crdgrp
();
}
crdgrp
.
reset
();
if
(
crtmod
==
null
)
{
crtmod
=
new
Crtmod
();
}
crtmod
.
reset
();
if
(
cretrn
==
null
)
{
cretrn
=
new
Trn
();
}
if
(
cresmh
==
null
)
{
cresmh
=
new
Smh
();
}
if
(
bndsmh
==
null
)
{
bndsmh
=
new
Smh
();
}
if
(
spcgle
==
null
)
{
spcgle
=
new
Gle
();
}
if
(
pacact
==
null
)
{
pacact
=
new
Act
();
}
}
}
isc-funds-entity/src/main/java/com/brilliance/isc/funds/bo/funds/CrtctfStoreBo.java
0 → 100644
View file @
bf59b139
package
com
.
brilliance
.
isc
.
funds
.
bo
.
funds
;
import
com.brilliance.isc.bo.model.Crdgrp
;
import
com.brilliance.isc.common.transaction.vo.BaseTransactionVo
;
import
com.fasterxml.jackson.annotation.JsonIgnoreProperties
;
import
lombok.Data
;
/**
* @program: isc-funds
* @ClassName: CrtctfStoreBo
* @description: 转汇清算 bo
* @author: huangshunlin
* @create: 2024-10-16 21:44
*/
@Data
@JsonIgnoreProperties
(
ignoreUnknown
=
true
)
public
class
CrtctfStoreBo
extends
BaseTransactionVo
{
private
Crdgrp
crdgrp
;
@Override
public
void
reset
()
{
super
.
reset
();
if
(
crdgrp
==
null
)
{
crdgrp
=
new
Crdgrp
();
}
crdgrp
.
reset
();
}
}
isc-funds-entity/src/main/java/com/brilliance/isc/funds/bo/funds/FxtsqoStoreBo.java
0 → 100644
View file @
bf59b139
package
com
.
brilliance
.
isc
.
funds
.
bo
.
funds
;
import
com.brilliance.isc.bo.model.Fxdgrp
;
import
com.brilliance.isc.bo.model.Fxtp
;
import
com.brilliance.isc.common.transaction.vo.BaseTransactionVo
;
import
com.fasterxml.jackson.annotation.JsonIgnoreProperties
;
import
lombok.Data
;
/**
* @program: isc-funds
* @ClassName: FxtsqoStoreBo
* @description: 即期结售汇报价bo
* @author: huangshunlin
* @create: 2024-10-18 15:51
*/
@Data
@JsonIgnoreProperties
(
ignoreUnknown
=
true
)
public
class
FxtsqoStoreBo
extends
BaseTransactionVo
{
private
Fxdgrp
fxdgrp
;
private
Fxtp
fxtp
;
@Override
public
void
reset
()
{
super
.
reset
();
if
(
fxdgrp
==
null
)
{
fxdgrp
=
new
Fxdgrp
();
}
fxdgrp
.
reset
();
if
(
fxtp
==
null
)
{
fxtp
=
new
Fxtp
();
}
fxtp
.
reset
();
}
}
isc-funds-entity/src/main/java/com/brilliance/isc/funds/transfer/transaction/CrtcriStructMapper.java
0 → 100644
View file @
bf59b139
package
com
.
brilliance
.
isc
.
funds
.
transfer
.
transaction
;
import
com.brilliance.isc.funds.bo.funds.CrtcriStoreBo
;
import
com.brilliance.isc.funds.vo.funds.CrtcriStoreVo
;
import
com.brilliance.isc.transfer.IBaseStructMapper
;
import
org.mapstruct.Mapper
;
import
org.mapstruct.MappingTarget
;
import
org.mapstruct.Mappings
;
import
org.mapstruct.factory.Mappers
;
/**
* @program: isc-funds
* @ClassName: CrtcriStructMapper
* @description: 汇入清算 Crtcri Bo、Vo之间的转换处理类。如果有很复杂的函数,则可以用适配器模式重写
* @author: huangshunlin
* @create: 2024-10-16 20:30
*/
@Mapper
(
componentModel
=
"spring"
)
public
interface
CrtcriStructMapper
extends
IBaseStructMapper
<
CrtcriStoreBo
,
CrtcriStoreVo
>
{
/**
* 此行语句一定要写,StructMapper需要
*/
CrtcriStructMapper
INSTANCE
=
Mappers
.
getMapper
(
CrtcriStructMapper
.
class
);
/**
* Vo转为Bo
*
* @param vo
* @return 返回业务Bo
*/
@Override
CrtcriStoreBo
voTransferToBo
(
CrtcriStoreVo
vo
);
/**
* Vo追加更新至Bo
*
* @param vo
* @param bo
*/
@Override
@Mappings
({
})
void
voUpdateToBo
(
CrtcriStoreVo
vo
,
@MappingTarget
CrtcriStoreBo
bo
);
/**
* Bo转为Vo
*
* @param bo
* @return 返回Vo
*/
@Override
CrtcriStoreVo
boTransferToVo
(
CrtcriStoreBo
bo
);
/**
* bo追加更新至Bo
*
* @param bo
* @param vo
*/
@Override
void
boUpdateToVo
(
CrtcriStoreBo
bo
,
@MappingTarget
CrtcriStoreVo
vo
);
}
isc-funds-entity/src/main/java/com/brilliance/isc/funds/transfer/transaction/CrtcroStructMapper.java
0 → 100644
View file @
bf59b139
package
com
.
brilliance
.
isc
.
funds
.
transfer
.
transaction
;
import
com.brilliance.isc.funds.bo.funds.CrtcroStoreBo
;
import
com.brilliance.isc.funds.vo.funds.CrtcroStoreVo
;
import
com.brilliance.isc.transfer.IBaseStructMapper
;
import
org.mapstruct.Mapper
;
import
org.mapstruct.MappingTarget
;
import
org.mapstruct.Mappings
;
import
org.mapstruct.factory.Mappers
;
/**
* @program: isc-funds
* @ClassName: CrtcroStructMapper
* @description: 汇出清算 Crtcro Bo、Vo之间的转换处理类。如果有很复杂的函数,则可以用适配器模式重写
* @author: huangshunlin
* @create: 2024-10-16 20:30
*/
@Mapper
(
componentModel
=
"spring"
)
public
interface
CrtcroStructMapper
extends
IBaseStructMapper
<
CrtcroStoreBo
,
CrtcroStoreVo
>
{
/**
* 此行语句一定要写,StructMapper需要
*/
CrtcroStructMapper
INSTANCE
=
Mappers
.
getMapper
(
CrtcroStructMapper
.
class
);
/**
* Vo转为Bo
*
* @param vo
* @return 返回业务Bo
*/
@Override
CrtcroStoreBo
voTransferToBo
(
CrtcroStoreVo
vo
);
/**
* Vo追加更新至Bo
*
* @param vo
* @param bo
*/
@Override
@Mappings
({
})
void
voUpdateToBo
(
CrtcroStoreVo
vo
,
@MappingTarget
CrtcroStoreBo
bo
);
/**
* Bo转为Vo
*
* @param bo
* @return 返回Vo
*/
@Override
CrtcroStoreVo
boTransferToVo
(
CrtcroStoreBo
bo
);
/**
* bo追加更新至Bo
*
* @param bo
* @param vo
*/
@Override
void
boUpdateToVo
(
CrtcroStoreBo
bo
,
@MappingTarget
CrtcroStoreVo
vo
);
}
isc-funds-entity/src/main/java/com/brilliance/isc/funds/transfer/transaction/CrtctfStructMapper.java
0 → 100644
View file @
bf59b139
package
com
.
brilliance
.
isc
.
funds
.
transfer
.
transaction
;
import
com.brilliance.isc.funds.bo.funds.CrtctfStoreBo
;
import
com.brilliance.isc.funds.vo.funds.CrtctfStoreVo
;
import
com.brilliance.isc.transfer.IBaseStructMapper
;
import
org.mapstruct.Mapper
;
import
org.mapstruct.MappingTarget
;
import
org.mapstruct.Mappings
;
import
org.mapstruct.factory.Mappers
;
/**
* @program: isc-funds
* @ClassName: CrtctfStructMapper
* @description: 转汇清算 Crtctf Bo、Vo之间的转换处理类。如果有很复杂的函数,则可以用适配器模式重写
* @author: huangshunlin
* @create: 2024-10-16 21:44
*/
@Mapper
(
componentModel
=
"spring"
)
public
interface
CrtctfStructMapper
extends
IBaseStructMapper
<
CrtctfStoreBo
,
CrtctfStoreVo
>
{
/**
* 此行语句一定要写,StructMapper需要
*/
CrtctfStructMapper
INSTANCE
=
Mappers
.
getMapper
(
CrtctfStructMapper
.
class
);
/**
* Vo转为Bo
*
* @param vo
* @return 返回业务Bo
*/
@Override
CrtctfStoreBo
voTransferToBo
(
CrtctfStoreVo
vo
);
/**
* Vo追加更新至Bo
*
* @param vo
* @param bo
*/
@Override
@Mappings
({
})
void
voUpdateToBo
(
CrtctfStoreVo
vo
,
@MappingTarget
CrtctfStoreBo
bo
);
/**
* Bo转为Vo
*
* @param bo
* @return 返回Vo
*/
@Override
CrtctfStoreVo
boTransferToVo
(
CrtctfStoreBo
bo
);
/**
* bo追加更新至Bo
*
* @param bo
* @param vo
*/
@Override
void
boUpdateToVo
(
CrtctfStoreBo
bo
,
@MappingTarget
CrtctfStoreVo
vo
);
}
isc-funds-entity/src/main/java/com/brilliance/isc/funds/transfer/transaction/FxtsqoStructMapper.java
0 → 100644
View file @
bf59b139
package
com
.
brilliance
.
isc
.
funds
.
transfer
.
transaction
;
import
com.brilliance.isc.funds.bo.funds.FxtsqoStoreBo
;
import
com.brilliance.isc.funds.vo.funds.FxtsqoStoreVo
;
import
com.brilliance.isc.transfer.IBaseStructMapper
;
import
org.mapstruct.Mapper
;
import
org.mapstruct.MappingTarget
;
import
org.mapstruct.factory.Mappers
;
/**
* @program: isc-funds
* @ClassName: FxtsqoStructMapper
* @description: 即期结售汇报价 转换Fxtsqo Bo、Vo之间的转换处理类。如果有很复杂的函数,则可以用适配器模式重写
* @author: huangshunlin
* @create: 2024-10-18 15:27
*/
@Mapper
(
componentModel
=
"spring"
)
public
interface
FxtsqoStructMapper
extends
IBaseStructMapper
<
FxtsqoStoreBo
,
FxtsqoStoreVo
>
{
/**
* 此行语句一定要写,StructMapper需要
*/
FxtsqoStructMapper
INSTANCE
=
Mappers
.
getMapper
(
FxtsqoStructMapper
.
class
);
/**
* Vo转为Bo
*
* @param vo
* @return 返回业务Bo
*/
@Override
FxtsqoStoreBo
voTransferToBo
(
FxtsqoStoreVo
vo
);
/**
* Vo追加更新至Bo
*
* @param vo
* @param bo
*/
@Override
void
voUpdateToBo
(
FxtsqoStoreVo
vo
,
@MappingTarget
FxtsqoStoreBo
bo
);
/**
* Bo转为Vo
*
* @param bo
* @return 返回Vo
*/
@Override
FxtsqoStoreVo
boTransferToVo
(
FxtsqoStoreBo
bo
);
/**
* bo追加更新至Bo
*
* @param bo
* @param vo
*/
@Override
void
boUpdateToVo
(
FxtsqoStoreBo
bo
,
@MappingTarget
FxtsqoStoreVo
vo
);
}
isc-funds-entity/src/main/java/com/brilliance/isc/funds/vo/funds/CrtcriStoreVo.java
0 → 100644
View file @
bf59b139
package
com
.
brilliance
.
isc
.
funds
.
vo
.
funds
;
import
com.brilliance.isc.bo.Act
;
import
com.brilliance.isc.bo.Smh
;
import
com.brilliance.isc.bo.Spt
;
import
com.brilliance.isc.bo.model.Cpdgrp
;
import
com.brilliance.isc.bo.model.Crdgrp
;
import
com.brilliance.isc.bo.model.Crtp
;
import
com.brilliance.isc.common.nosmod.vo.Nosmod
;
import
com.brilliance.isc.common.transaction.vo.BaseTransactionVo
;
import
com.brilliance.isc.vo.model.*
;
import
com.fasterxml.jackson.annotation.JsonIgnoreProperties
;
import
lombok.Data
;
import
static
com
.
brilliance
.
mda
.
runtime
.
mda
.
Constants
.
NULLSTR
;
/**
* @program: isc-funds
* @ClassName: CrtcriStoreVo
* @description: 汇入清算 bo
* @author: huangshunlin
* @create: 2024-10-16 20:26
*/
@Data
@JsonIgnoreProperties
(
ignoreUnknown
=
true
)
public
class
CrtcriStoreVo
extends
BaseTransactionVo
{
//Status I-INCOMING, O-OUTGOING, N-NOTNEED (max=1)
private
String
clrsta
=
NULLSTR
;
//Object Type of Associated Contract Optional (max=6)
private
String
rcvobjtyp
=
NULLSTR
;
private
Crdgrp
crdgrp
;
private
Crtp
crtp
;
private
Smh
smh
;
private
Smh
corsmh
;
private
Act
sndact
;
private
Act
aplact
;
private
Act
rcvact
;
private
Spt
crtspt
;
private
Bodgrp
bodgrp
;
private
Ccdgrp
ccdgrp
;
private
Bedgrp
bedgrp
;
private
Ledgrp
ledgrp
;
private
Btdgrp
btdgrp
;
private
Ltdgrp
ltdgrp
;
private
Gidgrp
gidgrp
;
// private Cldgrp cldgrp;
private
Cpdgrp
cpdgrp
;
private
Nosmod
nosmod
;
@Override
public
void
reset
()
{
super
.
reset
();
if
(
crdgrp
==
null
)
{
crdgrp
=
new
Crdgrp
();
}
crdgrp
.
reset
();
if
(
crtp
==
null
)
{
crtp
=
new
Crtp
();
}
crtp
.
reset
();
if
(
smh
==
null
)
{
smh
=
new
Smh
();
}
if
(
corsmh
==
null
)
{
corsmh
=
new
Smh
();
}
if
(
sndact
==
null
)
{
sndact
=
new
Act
();
}
if
(
aplact
==
null
)
{
aplact
=
new
Act
();
}
if
(
rcvact
==
null
)
{
rcvact
=
new
Act
();
}
if
(
crtspt
==
null
)
{
crtspt
=
new
Spt
();
}
if
(
bodgrp
==
null
)
{
bodgrp
=
new
Bodgrp
();
}
bodgrp
.
reset
();
if
(
ccdgrp
==
null
)
{
ccdgrp
=
new
Ccdgrp
();
}
ccdgrp
.
reset
();
if
(
bedgrp
==
null
)
{
bedgrp
=
new
Bedgrp
();
}
bedgrp
.
reset
();
if
(
ledgrp
==
null
)
{
ledgrp
=
new
Ledgrp
();
}
ledgrp
.
reset
();
if
(
btdgrp
==
null
)
{
btdgrp
=
new
Btdgrp
();
}
btdgrp
.
reset
();
if
(
ltdgrp
==
null
)
{
ltdgrp
=
new
Ltdgrp
();
}
ltdgrp
.
reset
();
if
(
gidgrp
==
null
)
{
gidgrp
=
new
Gidgrp
();
}
gidgrp
.
reset
();
if
(
cpdgrp
==
null
)
{
cpdgrp
=
new
Cpdgrp
();
}
cpdgrp
.
reset
();
// private Cldgrp cldgrp;
if
(
nosmod
==
null
)
{
nosmod
=
new
Nosmod
();
}
nosmod
.
reset
();
}
}
isc-funds-entity/src/main/java/com/brilliance/isc/funds/vo/funds/CrtcroStoreVo.java
0 → 100644
View file @
bf59b139
package
com
.
brilliance
.
isc
.
funds
.
vo
.
funds
;
import
com.brilliance.isc.bo.Act
;
import
com.brilliance.isc.bo.Gle
;
import
com.brilliance.isc.bo.Smh
;
import
com.brilliance.isc.bo.Trn
;
import
com.brilliance.isc.bo.model.Crdgrp
;
import
com.brilliance.isc.bo.model.Crtmod
;
import
com.brilliance.isc.common.transaction.vo.BaseTransactionVo
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.fasterxml.jackson.annotation.JsonIgnoreProperties
;
import
lombok.Data
;
import
java.math.BigDecimal
;
import
java.util.Date
;
import
static
com
.
brilliance
.
mda
.
runtime
.
mda
.
Constants
.
NULLSTR
;
/**
* @program: isc-funds
* @ClassName: CrtcriStoreVo
* @description: 汇出清算 bo
* @author: huangshunlin
* @create: 2024-10-17 22:33
*/
@Data
@JsonIgnoreProperties
(
ignoreUnknown
=
true
)
public
class
CrtcroStoreVo
extends
BaseTransactionVo
{
//Direct payment one message (max=1)
private
String
dirindflg
=
NULLSTR
;
//Which MT to beneficiary institution (max=3)
private
String
sftmt
=
NULLSTR
;
//Message Init Flag (max=1)
private
String
msgflg
=
NULLSTR
;
//21 TAG for MTs (max=16)
private
String
tag21
=
NULLSTR
;
//Amount (scale=3)
private
BigDecimal
amt32
=
new
BigDecimal
(
"0.00"
);
//Amount (scale=3)
private
BigDecimal
amt33
=
new
BigDecimal
(
"0.00"
);
//Currency (max=3)
private
String
cur32
=
NULLSTR
;
//Currency (max=3)
private
String
cur33
=
NULLSTR
;
//valdat in tag 32
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
,
timezone
=
"GMT+8"
)
private
Date
dat32
;
//valdat in tag 33
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
,
timezone
=
"GMT+8"
)
private
Date
dat33
;
//swift tag 71B (max=35)
private
String
tag71b
=
NULLSTR
;
//II_BIC in MTs (max=12)
private
String
ownbic
=
NULLSTR
;
//Tag 999 (max=65)
private
String
tag999
=
NULLSTR
;
//Status I-INCOMING, O-OUTGOING, N-NOTNEED (max=1)
private
String
clrsta
=
NULLSTR
;
private
Crdgrp
crdgrp
;
private
Crtmod
crtmod
;
private
Trn
cretrn
;
private
Smh
cresmh
;
private
Smh
bndsmh
;
private
Gle
spcgle
;
private
Act
pacact
;
@Override
public
void
reset
()
{
super
.
reset
();
if
(
crdgrp
==
null
)
{
crdgrp
=
new
Crdgrp
();
}
crdgrp
.
reset
();
if
(
crtmod
==
null
)
{
crtmod
=
new
Crtmod
();
}
crtmod
.
reset
();
if
(
cretrn
==
null
)
{
cretrn
=
new
Trn
();
}
if
(
cresmh
==
null
)
{
cresmh
=
new
Smh
();
}
if
(
bndsmh
==
null
)
{
bndsmh
=
new
Smh
();
}
if
(
spcgle
==
null
)
{
spcgle
=
new
Gle
();
}
if
(
pacact
==
null
)
{
pacact
=
new
Act
();
}
}
}
isc-funds-entity/src/main/java/com/brilliance/isc/funds/vo/funds/CrtctfStoreVo.java
0 → 100644
View file @
bf59b139
package
com
.
brilliance
.
isc
.
funds
.
vo
.
funds
;
import
com.brilliance.isc.bo.model.Crdgrp
;
import
com.brilliance.isc.common.transaction.vo.BaseTransactionVo
;
import
com.fasterxml.jackson.annotation.JsonIgnoreProperties
;
import
lombok.Data
;
/**
* @program: isc-funds
* @ClassName: CrtctfStoreVo
* @description: 转汇清算 bo
* @author: huangshunlin
* @create: 2024-10-16 21:43
*/
@Data
@JsonIgnoreProperties
(
ignoreUnknown
=
true
)
public
class
CrtctfStoreVo
extends
BaseTransactionVo
{
private
Crdgrp
crdgrp
;
@Override
public
void
reset
()
{
super
.
reset
();
if
(
crdgrp
==
null
)
{
crdgrp
=
new
Crdgrp
();
}
crdgrp
.
reset
();
}
}
isc-funds-entity/src/main/java/com/brilliance/isc/funds/vo/funds/FxtsqoStoreVo.java
0 → 100644
View file @
bf59b139
package
com
.
brilliance
.
isc
.
funds
.
vo
.
funds
;
import
com.brilliance.isc.bo.model.Fxdgrp
;
import
com.brilliance.isc.bo.model.Fxtp
;
import
com.brilliance.isc.common.transaction.vo.BaseTransactionVo
;
import
com.fasterxml.jackson.annotation.JsonIgnoreProperties
;
import
lombok.Data
;
/**
* @program: isc-funds
* @ClassName: FxtsqoStoreVo
* @description: 即期结售汇 报价 bo
* @author: huangshunlin
* @create: 2024-10-18 15:26
*/
@Data
@JsonIgnoreProperties
(
ignoreUnknown
=
true
)
public
class
FxtsqoStoreVo
extends
BaseTransactionVo
{
private
Fxdgrp
fxdgrp
;
private
Fxtp
fxtp
;
@Override
public
void
reset
()
{
super
.
reset
();
if
(
fxdgrp
==
null
)
{
fxdgrp
=
new
Fxdgrp
();
}
fxdgrp
.
reset
();
if
(
fxtp
==
null
)
{
fxtp
=
new
Fxtp
();
}
fxtp
.
reset
();
}
}
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