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
bee1ec8e
Commit
bee1ec8e
authored
Oct 23, 2024
by
jianglong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增FTTFCN代码
parent
9ebe054b
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
817 additions
and
1 deletions
+817
-1
FttfcnValidator.java
...om/brilliance/isc/funds/fttfcn/check/FttfcnValidator.java
+61
-0
FttfcnDocset.java
...om/brilliance/isc/funds/fttfcn/document/FttfcnDocset.java
+19
-0
FttfcnDiasavRegister.java
...sc/funds/fttfcn/register/dissav/FttfcnDiasavRegister.java
+56
-0
FttfcnDocumentRegister.java
...isc/funds/fttfcn/register/doc/FttfcnDocumentRegister.java
+48
-0
FttfcnFeeRegister.java
...ance/isc/funds/fttfcn/register/fee/FttfcnFeeRegister.java
+39
-0
FttfcnLiaallRegister.java
...sc/funds/fttfcn/register/liaall/FttfcnLiaallRegister.java
+27
-0
FttfcnSettleRegister.java
...sc/funds/fttfcn/register/settle/FttfcnSettleRegister.java
+86
-0
FttfcnWfeRegister.java
...ance/isc/funds/fttfcn/register/wfe/FttfcnWfeRegister.java
+14
-0
FttfcnResource.java
.../brilliance/isc/funds/fttfcn/resource/FttfcnResource.java
+42
-0
FttfcnTransactionServiceImpl.java
...sc/funds/fttfcn/service/FttfcnTransactionServiceImpl.java
+289
-0
FttfcnStoreBo.java
...java/com/brilliance/isc/funds/bo/funds/FttfcnStoreBo.java
+37
-0
FttfcmStructMapper.java
...ce/isc/funds/transfer/transaction/FttfcmStructMapper.java
+1
-1
FttfcnStructMapper.java
...ce/isc/funds/transfer/transaction/FttfcnStructMapper.java
+57
-0
FttfcnStoreVo.java
...java/com/brilliance/isc/funds/vo/funds/FttfcnStoreVo.java
+41
-0
No files found.
isc-funds-business/src/main/java/com/brilliance/isc/funds/fttfcn/check/FttfcnValidator.java
0 → 100644
View file @
bee1ec8e
package
com
.
brilliance
.
isc
.
funds
.
fttfcn
.
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.FttfcnStoreBo
;
import
com.brilliance.mda.runtime.mda.util.Dates
;
import
com.brilliance.mda.runtime.mda.util.MdaUtils
;
import
org.springframework.stereotype.Component
;
import
javax.annotation.PostConstruct
;
import
java.math.BigDecimal
;
import
java.util.HashMap
;
import
java.util.Map
;
import
static
com
.
brilliance
.
mda
.
runtime
.
mda
.
Constants
.
PanStaAdd
;
import
static
com
.
brilliance
.
mda
.
runtime
.
mda
.
Constants
.
PanStaEdit
;
/**
* @program: isc-funds
* @ClassName: FttfcnValidator
* @description: 结售汇平盘确认 fttfcn 校验
* @author: 肖桐
* @create: 2024-10-11 11:28
*/
@Component
public
class
FttfcnValidator
extends
AbstractModuleValidator
<
FttfcnStoreBo
>{
@Override
@PostConstruct
public
void
register
(){
super
.
register
();;
}
@Override
public
Map
<
String
,
String
>
validate
(
FttfcnStoreBo
vo
)
{
Map
<
String
,
String
>
maps
=
new
HashMap
<>();
maps
.
putAll
(
super
.
validate
(
vo
));
return
maps
;
}
/**
* source:fttfcn.0022.script
*/
@Validate
(
path
=
"canamt"
)
public
ValidResult
checkFtdgrpCbsInsAmtN1000
(
FttfcnStoreBo
bo
){
if
(
bo
.
getCanamt
().
compareTo
(
bo
.
getFtdgrp
().
getCbs
().
getOpn2
().
getAmt
())>
0
)
{
return
ValidResult
.
build
(
false
,
"实际销账金额不能大于待销账金额!"
);
}
return
null
;
}
}
isc-funds-business/src/main/java/com/brilliance/isc/funds/fttfcn/document/FttfcnDocset.java
0 → 100644
View file @
bee1ec8e
package
com
.
brilliance
.
isc
.
funds
.
fttfcn
.
document
;
import
com.brilliance.isc.common.trndoc.vo.DoceotVo
;
import
com.brilliance.isc.doc.handle.impl.AbstractTransactionDocSet
;
import
com.brilliance.isc.funds.bo.funds.FttfcnStoreBo
;
import
com.brilliance.mda.runtime.mda.util.MdaUtils
;
import
org.springframework.stereotype.Component
;
import
javax.annotation.PostConstruct
;
import
javax.annotation.Resource
;
import
java.util.HashMap
;
import
java.util.Map
;
@Component
(
"fttfcn.docset"
)
public
class
FttfcnDocset
extends
AbstractTransactionDocSet
<
FttfcnStoreBo
>
{
}
isc-funds-business/src/main/java/com/brilliance/isc/funds/fttfcn/register/dissav/FttfcnDiasavRegister.java
0 → 100644
View file @
bee1ec8e
package
com
.
brilliance
.
isc
.
funds
.
fttfcn
.
register
.
dissav
;
import
com.brilliance.isc.common.register.diasav.IDiasavRegister
;
import
com.brilliance.isc.common.register.diasav.common.DftcreDiasavRegister
;
import
com.brilliance.isc.common.register.diasav.common.LiaallDiasavRegister
;
import
com.brilliance.isc.common.register.diasav.common.LiaallDiasavZZZRegister
;
import
com.brilliance.isc.common.register.diasav.common.TrtcreDiasavRegister
;
import
com.brilliance.isc.common.trndia.service.TrndiaService
;
import
com.brilliance.isc.common.trndia.vo.TrndiaVo
;
import
com.brilliance.isc.vo.funds.FtdBizInfoVo
;
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.Component
;
import
java.util.Date
;
import
static
com
.
brilliance
.
mda
.
runtime
.
mda
.
Constants
.
DiaToReplace
;
import
static
com
.
brilliance
.
mda
.
runtime
.
mda
.
Constants
.
NULLDATE
;
/**
* @program: isc-funds
* @ClassName: FttfcnDiasavRegister
* @description: 结售汇平盘确认 fttfcn 备忘录注册
* @author: Lenovo
* @create: 2024-10-11 17:30
*/
@Component
(
"fttfcn.diasavRegister"
)
public
class
FttfcnDiasavRegister
implements
IDiasavRegister
{
@Autowired
private
TrndiaService
trndiaService
;
@Autowired
private
LiaallDiasavRegister
liaallDiasavRegister
;
@Autowired
private
LiaallDiasavZZZRegister
liaallDiasavZZZRegister
;
@Autowired
private
TrtcreDiasavRegister
trtcreDiasavRegister
;
@Autowired
private
DftcreDiasavRegister
dftcreDiasavRegister
;
@Override
public
void
diasav
(
TrndiaVo
trndia
)
{
trnDiasav
(
trndia
);
liaallDiasavRegister
.
diasav
(
trndia
);
liaallDiasavZZZRegister
.
diasav
(
trndia
);
trtcreDiasavRegister
.
diasav
(
trndia
);
dftcreDiasavRegister
.
diasav
(
trndia
);
}
private
void
trnDiasav
(
TrndiaVo
trndiaVo
)
{
}
}
\ No newline at end of file
isc-funds-business/src/main/java/com/brilliance/isc/funds/fttfcn/register/doc/FttfcnDocumentRegister.java
0 → 100644
View file @
bee1ec8e
package
com
.
brilliance
.
isc
.
funds
.
fttfcn
.
register
.
doc
;
import
com.brilliance.isc.common.component.PtsptaToolComponent
;
import
com.brilliance.isc.common.register.document.IDocumentRegister
;
import
com.brilliance.isc.common.register.document.common.SetmodDocumentRegister
;
import
com.brilliance.isc.common.trndoc.service.TrndocService
;
import
com.brilliance.isc.common.trndoc.vo.TrndocVo
;
import
com.brilliance.isc.common.vo.PtsptaVo
;
import
com.brilliance.isc.funds.common.component.FtToolComponent
;
import
com.brilliance.isc.vo.funds.FtdBizInfoVo
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Component
;
import
javax.annotation.Resource
;
/**
* @program: isc-funds
* @ClassName: FttfcnDocumentRegister
* @description: 结售汇平盘确认 fttfcn 报文注册
* @author: Lenovo
* @create: 2024-10-11 17:47
*/
@Component
(
"fttfcn.documentRegister"
)
public
class
FttfcnDocumentRegister
implements
IDocumentRegister
{
@Autowired
TrndocService
trndocService
;
@Resource
PtsptaToolComponent
ptsptaToolComponent
;
@Autowired
private
SetmodDocumentRegister
setmodDocumentRegister
;
@Resource
FtToolComponent
ftToolComponent
;
@Override
public
void
registerDocument
(
TrndocVo
trndoc
)
{
doRegister
(
trndoc
);
setmodDocumentRegister
.
registerDocument
(
trndoc
);
//entmodDocumentRegister.registerDocument(trndoc);
}
public
void
doRegister
(
TrndocVo
trndoc
){
}
}
isc-funds-business/src/main/java/com/brilliance/isc/funds/fttfcn/register/fee/FttfcnFeeRegister.java
0 → 100644
View file @
bee1ec8e
package
com
.
brilliance
.
isc
.
funds
.
fttfcn
.
register
.
fee
;
import
com.brilliance.isc.common.register.fee.AbstractFeeRegister
;
import
com.brilliance.isc.common.register.fee.common.DocumentFeeRegister
;
import
com.brilliance.isc.common.register.fee.common.LiaallFeeRegister
;
import
com.brilliance.isc.common.register.fee.common.SetmodFeeRegister
;
import
com.brilliance.isc.common.setfeg.service.SetfegService
;
import
com.brilliance.isc.common.setmod.vo.SetmodVo
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Component
;
/**
* @program: isc-funds
* @ClassName: FttfcnFeeRegister
* @description: 结售汇平盘确认 fttfcn 费用注册
* @author: Lenovo
* @create: 2024-10-11 17:36
*/
@Component
(
"fttfcn.feeRegister"
)
public
class
FttfcnFeeRegister
extends
AbstractFeeRegister
{
@Autowired
private
SetfegService
setfegService
;
@Autowired
private
DocumentFeeRegister
documentFeeRegister
;
@Autowired
private
LiaallFeeRegister
liaallFeeRegister
;
@Autowired
private
SetmodFeeRegister
setmodFeeRegister
;
@Override
public
void
registerSettlement
(
SetmodVo
setmodVo
)
{
setmodFeeRegister
.
registerSettlement
(
setmodVo
);
documentFeeRegister
.
registerSettlement
(
setmodVo
);
liaallFeeRegister
.
registerSettlement
(
setmodVo
);
}
}
isc-funds-business/src/main/java/com/brilliance/isc/funds/fttfcn/register/liaall/FttfcnLiaallRegister.java
0 → 100644
View file @
bee1ec8e
package
com
.
brilliance
.
isc
.
funds
.
fttfcn
.
register
.
liaall
;
import
com.brilliance.isc.common.liaall.vo.LiaallVo
;
import
com.brilliance.isc.common.register.liaall.ILiaallRegister
;
import
com.brilliance.isc.common.register.liaall.common.LiaallRegister
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Component
;
/**
* @program: isc-funds
* @ClassName: FttfcnLiaallRegister
* @description: 结售汇平盘确认 fttfcn 表外注册
* @author: Lenovo
* @create: 2024-10-11 17:41
*/
@Component
(
"fttfcn.liaallSetTransaction"
)
public
class
FttfcnLiaallRegister
implements
ILiaallRegister
{
@Autowired
private
LiaallRegister
liaallRegister
;
@Override
public
void
liaallSetTransaction
(
LiaallVo
liaallVo
)
{
liaallRegister
.
liaallSetTransaction
(
liaallVo
);
}
}
isc-funds-business/src/main/java/com/brilliance/isc/funds/fttfcn/register/settle/FttfcnSettleRegister.java
0 → 100644
View file @
bee1ec8e
package
com
.
brilliance
.
isc
.
funds
.
fttfcn
.
register
.
settle
;
import
com.brilliance.isc.bo.model.Ftdgrp
;
import
com.brilliance.isc.bo.model.Fxdgrp
;
import
com.brilliance.isc.common.cbsmod.service.XrtmodService
;
import
com.brilliance.isc.common.component.PtsptaToolComponent
;
import
com.brilliance.isc.common.glemod.service.GlemodService
;
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.common.component.FtToolComponent
;
import
com.brilliance.isc.vo.funds.FtdBizInfoVo
;
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
javax.annotation.Resource
;
import
java.math.BigDecimal
;
import
static
com
.
brilliance
.
mda
.
runtime
.
mda
.
Constants
.
NO_ERROR
;
import
static
com
.
brilliance
.
mda
.
runtime
.
mda
.
Constants
.
NULLSTR
;
@Component
(
"fttfcn.settleRegister"
)
public
class
FttfcnSettleRegister
implements
ISettleRegister
{
@Autowired
private
SetmodService
setmodService
;
@Autowired
private
SetglgService
setglgService
;
@Autowired
private
DefaultSettleRegister
defaultSettleRegister
;
@Autowired
private
GlemodService
glemodService
;
@Resource
private
XrtmodService
xrtmodService
;
@Resource
private
FtToolComponent
ftToolComponent
;
@Resource
private
PtsptaToolComponent
ptsptaToolComponent
;
@Override
public
void
registerSettlement
(
SetmodVo
setmodVo
)
{
transRegister
(
setmodVo
);
defaultSettleRegister
.
registerSettlement
(
setmodVo
);
}
private
void
transRegister
(
SetmodVo
setmodVo
)
{
FtdBizInfoVo
rec
=
(
FtdBizInfoVo
)
setmodVo
.
getRec
();
Ftdgrp
ftdgrp
=
ftToolComponent
.
getFtdgrpByInr
(
rec
.
getObjinr
());
setmodVo
.
setDoccur
(
ftdgrp
.
getCbs
().
getMax
().
getCur
());
setmodVo
.
setDocamt
(
rec
.
getCanamt
());
SetglgVo
setglg
=
setmodVo
.
getSetglg
();
setglgService
.
setglgClrAmount
(
setglg
,
"TRN"
);
String
cact
=
glemodService
.
getAvailAcc
(
"FT-FXR"
,
setmodVo
.
getDoccur
(),
""
,
ftdgrp
.
getCbs
().
getMax
().
getAmt
()
);
String
cdtKey
=
setglgService
.
setglgAddAmount
(
setglg
,
"TRN"
,
"OWN"
,
setmodVo
.
getDoccur
(),
rec
.
getCanamt
().
negate
(),
""
,
"FTC"
,
"C"
,
cact
,
""
);
String
dbtKey
=
NULLSTR
;
if
(
MdaUtils
.
compareTo
(
ftdgrp
.
getRec
().
getFttyp
(),
"LI"
)
==
0
||
MdaUtils
.
compareTo
(
ftdgrp
.
getRec
().
getFttyp
(),
"DI"
)
==
0
)
{
dbtKey
=
setglgService
.
setglgAddAmount
(
setglg
,
"TRN"
,
"TRO"
,
setmodVo
.
getDoccur
(),
rec
.
getCanamt
(),
""
,
"DBD"
,
"C"
,
""
,
""
);
}
else
{
dbtKey
=
setglgService
.
setglgAddAmount
(
setglg
,
"TRN"
,
"TRI"
,
setmodVo
.
getDoccur
(),
rec
.
getCanamt
(),
""
,
"DBD"
,
"C"
,
""
,
""
);
}
}
}
isc-funds-business/src/main/java/com/brilliance/isc/funds/fttfcn/register/wfe/FttfcnWfeRegister.java
0 → 100644
View file @
bee1ec8e
package
com
.
brilliance
.
isc
.
funds
.
fttfcn
.
register
.
wfe
;
import
com.brilliance.isc.common.trnism.service.IWfeRegister
;
import
com.brilliance.isc.common.trnmod.vo.TrnmodVo
;
import
org.springframework.stereotype.Component
;
@Component
(
"fttfcn"
+
"."
+
IWfeRegister
.
REGISTER_NAME
)
public
class
FttfcnWfeRegister
implements
IWfeRegister
{
@Override
public
void
wfeRegister
(
TrnmodVo
trnmodVo
){
}
}
isc-funds-business/src/main/java/com/brilliance/isc/funds/fttfcn/resource/FttfcnResource.java
0 → 100644
View file @
bee1ec8e
package
com
.
brilliance
.
isc
.
funds
.
fttfcn
.
resource
;
import
com.brilliance.isc.common.transaction.controller.AbstractTransactionController
;
import
com.brilliance.isc.funds.fttfcn.service.FttfcnTransactionServiceImpl
;
import
com.brilliance.isc.funds.transfer.transaction.FttfcnStructMapper
;
import
com.brilliance.isc.funds.vo.funds.FttfcnStoreVo
;
import
com.brilliance.isc.transfer.IStructMapper
;
import
com.brilliance.isc.vo.ResponseSet
;
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: FttfcnResource
* @description: 结售汇平盘确认 fttfcn 请求入口
* @author: xiaotong
* @create: 2024-10-11 17:09
*/
@RestController
@RequestMapping
(
"/fttfcn"
)
public
class
FttfcnResource
extends
AbstractTransactionController
<
FttfcnStoreVo
>
{
@Resource
private
FttfcnStructMapper
fttfcnStructMapper
;
public
IStructMapper
getStructMapper
()
{
return
fttfcnStructMapper
;
}
@Resource
FttfcnTransactionServiceImpl
fttfcnTransactionService
;
}
isc-funds-business/src/main/java/com/brilliance/isc/funds/fttfcn/service/FttfcnTransactionServiceImpl.java
0 → 100644
View file @
bee1ec8e
package
com
.
brilliance
.
isc
.
funds
.
fttfcn
.
service
;
import
com.brilliance.isc.bo.Bch
;
import
com.brilliance.isc.bo.Ftd
;
import
com.brilliance.isc.bo.Pta
;
import
com.brilliance.isc.bo.model.Ftdgrp
;
import
com.brilliance.isc.bo.model.Fttp
;
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.component.SptDataComponent
;
import
com.brilliance.isc.common.contants.CommonContants
;
import
com.brilliance.isc.common.context.SettleContext
;
import
com.brilliance.isc.common.liaall.service.LiaallService
;
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.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.FttfcnStoreBo
;
import
com.brilliance.isc.funds.common.component.FtToolComponent
;
import
com.brilliance.isc.funds.fttfcn.check.FttfcnValidator
;
import
com.brilliance.isc.funds.transfer.transaction.FttfcnStructMapper
;
import
com.brilliance.isc.funds.vo.funds.FttfcnStoreVo
;
import
com.brilliance.isc.funds.vo.funds.FxtfcnStoreVo
;
import
com.brilliance.isc.mda.dao.ActMapper
;
import
com.brilliance.isc.mda.dao.PtyratMapper
;
import
com.brilliance.isc.vo.funds.FtdBizInfoVo
;
import
com.brilliance.mda.runtime.mda.util.*
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
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.ArrayList
;
import
java.util.List
;
import
java.util.Map
;
import
static
com
.
brilliance
.
mda
.
runtime
.
mda
.
Constants
.*;
/**
* @program: isc-funds
* @ClassName: FttfcnTransactionServiceImpl
* @description: 结售汇平盘确认 fttfcn 业务处理
* @author: xiaotong
* @create: 2024-10-11 15:20
*/
@Service
(
"fttfcn.transaction"
)
public
class
FttfcnTransactionServiceImpl
extends
AbstractTransactionService
<
FttfcnStoreBo
>
{
@Resource
private
FttfcnValidator
fttfcnValidator
;
// @Autowired
// private FttfcnService fttfcnService;
@Resource
private
FtToolComponent
ftToolComponent
;
@Resource
private
TrnmodService
trnmodService
;
@Resource
private
XrtmodService
xrtmodService
;
@Resource
private
TransactionHelpService
transactionHelpService
;
@Resource
private
CbsmodService
cbsmodService
;
@Resource
private
LiaallService
liaallService
;
@Resource
private
SettleContext
settleContext
;
@Autowired
private
PtaCacheService
ptaCacheService
;
@Resource
private
BchService
bchService
;
@Resource
private
SysmodService
sysmodService
;
@Resource
private
PtyratMapper
ptyratMapper
;
@Resource
private
ActMapper
actMapper
;
@Resource
private
SetmodService
setmodService
;
@Autowired
private
FttfcnStructMapper
fttfcnStructMapper
;
@Autowired
SptDataComponent
sptDataComponent
;
@PostConstruct
public
void
regisertService
()
{
serviceRegisterMaps
.
put
(
CommonContants
.
SETMOD_SERVICE
,
"Y"
);
serviceRegisterMaps
.
put
(
CommonContants
.
TRNDOC_SERVICE
,
"Y"
);
serviceRegisterMaps
.
put
(
CommonContants
.
GLEMOD_SERVICE
,
"Y"
);
serviceRegisterMaps
.
put
(
CommonContants
.
TRNDIA_SERVICE
,
"Y"
);
serviceRegisterMaps
.
put
(
CommonContants
.
TRNMOD_SERVICE
,
"Y"
);
// serviceRegisterMaps.put(CommonContants.UMDMOD_SERVICE, "N");
// serviceRegisterMaps.put(CommonContants.LIMMOD_SERVICE, "Y");
// serviceRegisterMaps.put(CommonContants.BOPSET_RMB_SERVICE, "Y");
// serviceRegisterMaps.put(CommonContants.BOPSET_SZSB_BOPREM_SERVICE, "Y");
// serviceRegisterMaps.put(CommonContants.BOPSET_CFABOP_SERVICE, "Y");
// serviceRegisterMaps.put(CommonContants.FANXIQIAN_SERVICE, "Y");
}
@Override
protected
void
txnSave
(
FttfcnStoreBo
transactionVo
)
{
ruleMtabutSavN500
(
transactionVo
);
}
@Override
protected
Map
<
String
,
String
>
txnCheck
(
FttfcnStoreBo
transactionVo
)
{
return
fttfcnValidator
.
validate
(
transactionVo
);
}
@Override
protected
BizInfoVo
buildBizInfo
(
FttfcnStoreBo
transactionVo
)
{
FtdBizInfoVo
bizInfoVo
=
new
FtdBizInfoVo
();
bizInfoVo
.
setObjtyp
(
"FTD"
);
Ftd
rec
=
transactionVo
.
getFtdgrp
().
getRec
();
bizInfoVo
.
setObjinr
(
rec
.
getInr
());
bizInfoVo
.
setOwnref
(
rec
.
getOwnref
());
bizInfoVo
.
setFttyp
(
rec
.
getFttyp
());
bizInfoVo
.
setCanamt
(
transactionVo
.
getCanamt
());
return
bizInfoVo
;
}
@Override
protected
BizAmdInfoVo
buildBizAmdInfo
(
FttfcnStoreBo
transactionVo
)
{
return
null
;
}
@Override
public
FttfcnStoreBo
init
(
FttfcnStoreBo
fttfcnStoreBo
)
{
fttfcnStoreBo
.
reset
();
init950
(
fttfcnStoreBo
);
init1000
(
fttfcnStoreBo
);
if
(
MdaUtils
.
isEmpty
(
fttfcnStoreBo
.
getFtdgrp
().
getRec
().
getOpndat
())
)
{
fttfcnStoreBo
.
getFtdgrp
().
getRec
().
setOpndat
(
Dates
.
today
());
}
return
fttfcnStoreBo
;
}
private
void
init950
(
FttfcnStoreBo
fttfcnStoreBo
)
{
}
private
void
init1000
(
FttfcnStoreBo
bo
)
{
}
@Override
public
void
beforeSave
(
FttfcnStoreBo
transactionVo
)
{
transactionVo
.
reset
();
Ftdgrp
ftdgrp
=
transactionVo
.
getFtdgrp
();
TransactionServiceSet
transactionServiceSet
=
transactionHelpService
.
getTransactionStoreSet
();
transactionServiceSet
.
setRec
(
ftdgrp
.
getRec
());
transactionServiceSet
.
setBlk
(
ftdgrp
.
getBlk
());
transactionServiceSet
.
setTransactionVo
(
transactionVo
);
ftToolComponent
.
collectCbsMap
(
transactionServiceSet
,
""
,
ftdgrp
.
getCbs
(),
"max"
,
"ins"
,
"opn1"
,
"opn2"
);
ftToolComponent
.
collectPtsList
(
transactionServiceSet
,
ftdgrp
,
null
);
settleContext
.
loadSettleSession
(
transactionVo
.
getTransName
(),
transactionVo
.
getUserId
(),
buildBizInfo
(
transactionVo
),
transactionServiceSet
.
getPtsList
());
}
@Override
protected
void
updateBizInfoVo
(
BizInfoVo
bizInfoVo
,
FttfcnStoreBo
transactionVo
)
{
bizInfoVo
.
setObjinr
(
transactionVo
.
getFtdgrp
().
getRec
().
getInr
());
}
public
void
ruleMtabutSavN500
(
FttfcnStoreBo
bo
)
{
TrnmodVo
trnmodVo
=
transactionHelpService
.
getTransactionStoreSet
().
getTrnmodVo
();
ftToolComponent
.
getref
(
bo
.
getFtdgrp
());
// 1. Create (rsp. update) Contract (incl. Texts)
ftToolComponent
.
sav
(
bo
.
getFtdgrp
());
// 2. Build Transaction from FTDGRP
trnmodService
.
trnSetFromContract
(
trnmodVo
);
cbsSav
(
bo
,
trnmodVo
);
// save documents
//TODO
//记录116台账
//transactionVo.getNosmod().savNostro();
}
public
String
getRef
(
FttfcnStoreVo
fttfcnStorevo
)
{
FttfcnStoreBo
fttfcnStoreBo
=
fttfcnStructMapper
.
voTransferToBo
(
fttfcnStorevo
);
return
getRef
(
fttfcnStoreBo
);
}
public
String
getRef
(
FttfcnStoreBo
fttfcnStoreBo
)
{
fttfcnStoreBo
.
reset
();
PtsptaVo
ptsptaVo
=
fttfcnStoreBo
.
getFtdgrp
().
getTro
();
if
(
ptsptaVo
==
null
||
StringUtils
.
isEmpty
(
ptsptaVo
.
getPtainr
()))
{
SettleContext
.
getUserSession
().
setWrkbch
(
SettleContext
.
getUserSession
().
getBch
());
}
else
{
Pta
pta
=
ptaCacheService
.
getPtaByInr
(
ptsptaVo
.
getPtainr
());
Bch
wrkbch
=
new
Bch
();
wrkbch
.
setInr
(
pta
.
getBranchinr
());
wrkbch
=
bchService
.
selectByPrimaryKey
(
wrkbch
);
SettleContext
.
getUserSession
().
setWrkbch
(
wrkbch
);
}
Ftdgrp
ftdgrp
=
fttfcnStoreBo
.
getFtdgrp
();
ftToolComponent
.
getref
(
ftdgrp
);
return
ftdgrp
.
getRec
().
getOwnref
();
}
public
void
cbsSav
(
FttfcnStoreBo
transactionVo
,
TrnmodVo
trnmodVo
)
{
String
trninr
=
transactionHelpService
.
getTrninr
();
SetmodVo
setmodVo
=
transactionHelpService
.
getTransactionStoreSet
().
getSetmodVo
();
cbsmodService
.
cbsTrnSetNew
(
"TRN"
,
trninr
);
trnmodService
.
cbsTrnStore
(
"OPNAMT"
,
"AMT1"
,
Dates
.
today
(),
setmodVo
.
getDoccur
(),
transactionVo
.
getCanamt
().
negate
(),
"Funds Transfer"
,
transactionVo
.
getFtdgrp
().
getRec
(),
trninr
);
cbsmodService
.
cbsTrnCommit
();
}
//@Default(target="mtabut.clsflg",order=5000)
// public boolean defaultMtabutclsflgN5000(FttfcnStoreBo fttfcnStoreBo){
// Ftdgrp ftdgrp = fttfcnStoreBo.getFtdgrp();
// SetmodVo setmodVo = transactionHelpService.getTransactionStoreSet().getSetmodVo();
// // Close Flag is defaulted with X, if the conditions for setting close date like in MTABUT\\SAV are fulfilled
// boolean clsflg = true;
// if( ! MdaUtils.isEmpty(ftdgrp.getRec().getCnfdat()) )
// {
// if( MdaUtils.compareTo(ftdgrp.getCbs().getOpn1().getAmt(),0)>0 )
// {
// clsflg = false;
// }
// if( MdaUtils.compareTo(ftdgrp.getCbs().getOpn2().getAmt(),fttfcnStoreBo.getCanamt()) != 0 )
// {
// clsflg = false;
// }
// if( clsflg )
// {
// if( ! Systems.isModified(this.getMtabut(),"clsflg") )
// {
// this.getMtabut().setclsflg("C");
// }
// Systems.setEnabled(this.getMtabut(),"clsflg");
// }
// else
// {
// Dynamic.disableAndClearField( MdaDriver.getDatafield(this.getMtabut(),"clsflg") );
// this.getMtabut().setclsflg("O");
// }
// }
// else
// {
// Dynamic.disableAndClearField( MdaDriver.getDatafield(this.getMtabut(),"clsflg") );
// this.getMtabut().setclsflg("O");
// }
//
//
// return true;
// }
}
isc-funds-entity/src/main/java/com/brilliance/isc/funds/bo/funds/FttfcnStoreBo.java
0 → 100644
View file @
bee1ec8e
package
com
.
brilliance
.
isc
.
funds
.
bo
.
funds
;
import
com.brilliance.isc.bo.model.Ftdgrp
;
import
com.brilliance.isc.bo.model.Fttp
;
import
com.brilliance.isc.common.transaction.vo.BaseTransactionVo
;
import
com.brilliance.mda.runtime.mda.util.Decimals
;
import
com.fasterxml.jackson.annotation.JsonIgnoreProperties
;
import
lombok.Data
;
import
java.math.BigDecimal
;
import
static
com
.
brilliance
.
mda
.
runtime
.
mda
.
Constants
.
NULLSTR
;
@Data
@JsonIgnoreProperties
(
ignoreUnknown
=
true
)
public
class
FttfcnStoreBo
extends
BaseTransactionVo
{
private
BigDecimal
canamt
=
Decimals
.
ZERO_SCALE2
;
boolean
clsflg
=
true
;
private
Ftdgrp
ftdgrp
;
private
Fttp
fttp
;
@Override
public
void
reset
(){
super
.
reset
();
if
(
ftdgrp
==
null
){
ftdgrp
=
new
Ftdgrp
();
}
ftdgrp
.
reset
();
if
(
fttp
==
null
){
fttp
=
new
Fttp
();
}
fttp
.
reset
();
}
}
isc-funds-entity/src/main/java/com/brilliance/isc/funds/transfer/transaction/FttfcmStructMapper.java
View file @
bee1ec8e
...
@@ -14,7 +14,7 @@ public interface FttfcmStructMapper extends IBaseStructMapper<FttfcmStoreBo, Ftt
...
@@ -14,7 +14,7 @@ public interface FttfcmStructMapper extends IBaseStructMapper<FttfcmStoreBo, Ftt
/**
/**
* 此行语句一定要写,StructMapper需要
* 此行语句一定要写,StructMapper需要
*/
*/
F
xtfcmStructMapper
INSTANCE
=
Mappers
.
getMapper
(
Fx
tfcmStructMapper
.
class
);
F
ttfcmStructMapper
INSTANCE
=
Mappers
.
getMapper
(
Ft
tfcmStructMapper
.
class
);
/**
/**
* Vo转为Bo
* Vo转为Bo
...
...
isc-funds-entity/src/main/java/com/brilliance/isc/funds/transfer/transaction/FttfcnStructMapper.java
0 → 100644
View file @
bee1ec8e
package
com
.
brilliance
.
isc
.
funds
.
transfer
.
transaction
;
import
com.brilliance.isc.funds.bo.funds.FttfcnStoreBo
;
import
com.brilliance.isc.funds.vo.funds.FttfcnStoreVo
;
import
com.brilliance.isc.transfer.IBaseStructMapper
;
import
org.mapstruct.Mapper
;
import
org.mapstruct.MappingTarget
;
import
org.mapstruct.Mappings
;
import
org.mapstruct.factory.Mappers
;
@Mapper
(
componentModel
=
"spring"
)
public
interface
FttfcnStructMapper
extends
IBaseStructMapper
<
FttfcnStoreBo
,
FttfcnStoreVo
>
{
/**
* 此行语句一定要写,StructMapper需要
*/
FttfcnStructMapper
INSTANCE
=
Mappers
.
getMapper
(
FttfcnStructMapper
.
class
);
/**
* Vo转为Bo
*
* @param vo
* @return 返回业务Bo
*/
@Override
FttfcnStoreBo
voTransferToBo
(
FttfcnStoreVo
vo
);
/**
* Vo追加更新至Bo
*
* @param vo
* @param bo
*/
@Override
@Mappings
({
})
void
voUpdateToBo
(
FttfcnStoreVo
vo
,
@MappingTarget
FttfcnStoreBo
bo
);
/**
* Bo转为Vo
*
* @param bo
* @return 返回Vo
*/
@Override
FttfcnStoreVo
boTransferToVo
(
FttfcnStoreBo
bo
);
/**
* bo追加更新至Bo
*
* @param bo
* @param vo
*/
@Override
void
boUpdateToVo
(
FttfcnStoreBo
bo
,
@MappingTarget
FttfcnStoreVo
vo
);
}
isc-funds-entity/src/main/java/com/brilliance/isc/funds/vo/funds/FttfcnStoreVo.java
0 → 100644
View file @
bee1ec8e
package
com
.
brilliance
.
isc
.
funds
.
vo
.
funds
;
import
com.brilliance.isc.common.transaction.vo.BaseTransactionVo
;
import
com.brilliance.isc.vo.model.FtdgrpVo
;
import
com.brilliance.isc.vo.model.FttpVo
;
import
com.brilliance.mda.runtime.mda.util.Decimals
;
import
com.fasterxml.jackson.annotation.JsonIgnoreProperties
;
import
lombok.Data
;
import
java.math.BigDecimal
;
import
static
com
.
brilliance
.
mda
.
runtime
.
mda
.
Constants
.
NULLSTR
;
@Data
@JsonIgnoreProperties
(
ignoreUnknown
=
true
)
public
class
FttfcnStoreVo
extends
BaseTransactionVo
{
BigDecimal
canamt
=
Decimals
.
ZERO_SCALE2
;
boolean
clsflg
=
true
;
private
FtdgrpVo
ftdgrp
;
private
FttpVo
fttp
;
@Override
public
void
reset
()
{
super
.
reset
();
if
(
ftdgrp
==
null
)
{
ftdgrp
=
new
FtdgrpVo
();
}
ftdgrp
.
reset
();
if
(
fttp
==
null
)
{
fttp
=
new
FttpVo
();
}
fttp
.
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