Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
isc-core
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-core
Commits
0a1c9258
Commit
0a1c9258
authored
Oct 18, 2024
by
huangshunlin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
清算smh 新增收报行rcvkey ,清算新增nosmod模块
parent
b06d3cf0
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
335 additions
and
16 deletions
+335
-16
Smh.java
isc-common-core/src/main/java/com/brilliance/isc/bo/Smh.java
+12
-11
Crtp.java
...-core/src/main/java/com/brilliance/isc/bo/model/Crtp.java
+37
-0
Noscbs.java
...main/java/com/brilliance/isc/common/nosmod/vo/Noscbs.java
+30
-0
Nosmod.java
...main/java/com/brilliance/isc/common/nosmod/vo/Nosmod.java
+43
-0
FxdBizInfoVo.java
...c/main/java/com/brilliance/isc/vo/funds/FxdBizInfoVo.java
+5
-1
smhmapper.xml
isc-common-core/src/main/resources/mapper/smhmapper.xml
+9
-1
PtsptaToolComponent.java
.../brilliance/isc/common/component/PtsptaToolComponent.java
+36
-3
NosmodService.java
.../java/com/brilliance/isc/common/nosmod/NosmodService.java
+27
-0
NosmodServiceImpl.java
.../brilliance/isc/common/nosmod/impl/NosmodServiceImpl.java
+136
-0
No files found.
isc-common-core/src/main/java/com/brilliance/isc/bo/Smh.java
View file @
0a1c9258
...
@@ -13,8 +13,6 @@ import static com.brilliance.mda.runtime.mda.Constants.NULLDATE;
...
@@ -13,8 +13,6 @@ import static com.brilliance.mda.runtime.mda.Constants.NULLDATE;
import
static
com
.
brilliance
.
mda
.
runtime
.
mda
.
Constants
.
NULLSTR
;
import
static
com
.
brilliance
.
mda
.
runtime
.
mda
.
Constants
.
NULLSTR
;
/**
/**
* TABLE:smh:SMH - Structured Message Header
* TABLE:smh:SMH - Structured Message Header
*/
*/
...
@@ -38,7 +36,7 @@ public class Smh implements Serializable {
...
@@ -38,7 +36,7 @@ public class Smh implements Serializable {
private
String
trninr
=
NULLSTR
;
private
String
trninr
=
NULLSTR
;
//Counter within TRN
//Counter within TRN
private
int
trnsub
;
private
int
trnsub
;
//External Key
//External Key
private
String
extkey
=
NULLSTR
;
private
String
extkey
=
NULLSTR
;
...
@@ -53,7 +51,7 @@ public class Smh implements Serializable {
...
@@ -53,7 +51,7 @@ public class Smh implements Serializable {
private
String
crefrm
=
NULLSTR
;
private
String
crefrm
=
NULLSTR
;
//Timestamp Created
//Timestamp Created
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
private
Date
credattim
=
NULLDATE
;
private
Date
credattim
=
NULLDATE
;
//Direction '>'=Outgoing, '<'=Incoming
//Direction '>'=Outgoing, '<'=Incoming
...
@@ -72,16 +70,16 @@ public class Smh implements Serializable {
...
@@ -72,16 +70,16 @@ public class Smh implements Serializable {
private
String
docmac
=
NULLSTR
;
private
String
docmac
=
NULLSTR
;
//Position of Message in Document 1=Begin of Document, 0=Whole Document
//Position of Message in Document 1=Begin of Document, 0=Whole Document
private
long
msgpos
;
private
long
msgpos
;
//Length of Message in Document 0=Rest of Document
//Length of Message in Document 0=Rest of Document
private
long
msglen
;
private
long
msglen
;
//INR of the First Message of Split Messages/Secondary Messages
//INR of the First Message of Split Messages/Secondary Messages
private
String
grpinr
=
NULLSTR
;
private
String
grpinr
=
NULLSTR
;
//Sequence Number of Split Messages
//Sequence Number of Split Messages
private
int
grpseq
;
private
int
grpseq
;
//Structure/Syntax of Message SWT, LET, TLX, TCO
//Structure/Syntax of Message SWT, LET, TLX, TCO
private
String
cortyp
=
NULLSTR
;
private
String
cortyp
=
NULLSTR
;
...
@@ -132,7 +130,7 @@ public class Smh implements Serializable {
...
@@ -132,7 +130,7 @@ public class Smh implements Serializable {
private
String
staflg
=
NULLSTR
;
private
String
staflg
=
NULLSTR
;
//文件清理日期
//文件清理日期
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
private
Date
clndat
=
NULLDATE
;
private
Date
clndat
=
NULLDATE
;
//ReferenceDZT
//ReferenceDZT
...
@@ -144,12 +142,15 @@ public class Smh implements Serializable {
...
@@ -144,12 +142,15 @@ public class Smh implements Serializable {
//原ISO报文类型
//原ISO报文类型
private
String
orimsgtyp
=
NULLSTR
;
private
String
orimsgtyp
=
NULLSTR
;
private
String
mpiinr
=
NULLSTR
;
private
String
mpiinr
=
NULLSTR
;
private
String
docmd5
=
NULLSTR
;
private
String
docmd5
=
NULLSTR
;
private
long
doclen
;
private
long
doclen
;
private
int
xxxcnt
;
private
int
xxxcnt
;
//清算模块用刀的 收报行
private
String
rcvkey
=
NULLSTR
;
}
}
isc-common-core/src/main/java/com/brilliance/isc/bo/model/Crtp.java
0 → 100644
View file @
0a1c9258
package
com
.
brilliance
.
isc
.
bo
.
model
;
import
com.brilliance.isc.bo.Usr
;
import
com.brilliance.isc.common.vo.AbstractCommonVo
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.fasterxml.jackson.annotation.JsonIgnoreProperties
;
import
lombok.Data
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
java.util.Date
;
/**
*
*/
@Data
@JsonIgnoreProperties
(
ignoreUnknown
=
true
)
public
class
Crtp
extends
AbstractCommonVo
{
private
static
Logger
log
=
LoggerFactory
.
getLogger
(
Crtp
.
class
);
//Value Date
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
,
timezone
=
"GMT+8"
)
private
Date
valdat
;
//USE FOR ARE AMTOUNT (max=1)
private
Usr
usr
;
@Override
public
void
reset
()
{
super
.
reset
();
if
(
usr
==
null
)
{
usr
=
new
Usr
();
}
}
}
\ No newline at end of file
isc-common-core/src/main/java/com/brilliance/isc/common/nosmod/vo/Noscbs.java
0 → 100644
View file @
0a1c9258
package
com
.
brilliance
.
isc
.
common
.
nosmod
.
vo
;
import
com.brilliance.isc.bo.Cbb
;
import
com.brilliance.isc.common.vo.AbstractCommonVo
;
import
com.fasterxml.jackson.annotation.JsonIgnoreProperties
;
import
lombok.Data
;
import
java.io.Serializable
;
/**
* @program: isc-core
* @ClassName: Noscbs
* @description:
* @author: huangshunlin
* @create: 2024-10-18 20:34
*/
@Data
@JsonIgnoreProperties
(
ignoreUnknown
=
true
)
public
class
Noscbs
extends
AbstractCommonVo
implements
Serializable
{
private
Cbb
nos
;
@Override
public
void
reset
()
{
super
.
reset
();
if
(
nos
==
null
)
{
nos
=
new
Cbb
();
}
nos
.
reset
();
}
}
isc-common-core/src/main/java/com/brilliance/isc/common/nosmod/vo/Nosmod.java
0 → 100644
View file @
0a1c9258
package
com
.
brilliance
.
isc
.
common
.
nosmod
.
vo
;
import
com.brilliance.isc.bo.Act
;
import
com.brilliance.isc.bo.Cbe
;
import
com.brilliance.isc.common.vo.AbstractCommonVo
;
import
com.fasterxml.jackson.annotation.JsonIgnoreProperties
;
import
lombok.Data
;
import
java.io.Serializable
;
/**
* @program: isc-funds
* @ClassName: Nosmod
* @description:
* @author:huangshunlin
* @create:2024-10-18 20:30
*/
@Data
@JsonIgnoreProperties
(
ignoreUnknown
=
true
)
public
class
Nosmod
extends
AbstractCommonVo
implements
Serializable
{
private
Noscbs
cbs
;
private
Cbe
wrkcbe
;
private
Act
rec
;
@Override
public
void
reset
()
{
super
.
reset
();
if
(
cbs
==
null
)
{
cbs
=
new
Noscbs
();
}
cbs
.
reset
();
if
(
wrkcbe
==
null
)
{
wrkcbe
=
new
Cbe
();
}
if
(
rec
==
null
)
{
rec
=
new
Act
();
}
}
}
isc-common-core/src/main/java/com/brilliance/isc/vo/funds/FxdBizInfoVo.java
View file @
0a1c9258
...
@@ -5,7 +5,9 @@ import com.brilliance.mda.runtime.mda.util.Decimals;
...
@@ -5,7 +5,9 @@ import com.brilliance.mda.runtime.mda.util.Decimals;
import
lombok.Data
;
import
lombok.Data
;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
import
java.util.Date
;
import
static
com
.
brilliance
.
mda
.
runtime
.
mda
.
Constants
.
NULLDATE
;
import
static
com
.
brilliance
.
mda
.
runtime
.
mda
.
Constants
.
NULLSTR
;
import
static
com
.
brilliance
.
mda
.
runtime
.
mda
.
Constants
.
NULLSTR
;
/**
/**
...
@@ -31,7 +33,6 @@ public class FxdBizInfoVo extends BizInfoVo {
...
@@ -31,7 +33,6 @@ public class FxdBizInfoVo extends BizInfoVo {
//fxdgrp.rec.dsp2
//fxdgrp.rec.dsp2
private
String
dsp2
=
NULLSTR
;
private
String
dsp2
=
NULLSTR
;
;
//结售汇业务的本币的记账账号 fxdgrp.rec.acc2
//结售汇业务的本币的记账账号 fxdgrp.rec.acc2
private
String
acc2
=
NULLSTR
;
private
String
acc2
=
NULLSTR
;
...
@@ -52,4 +53,7 @@ public class FxdBizInfoVo extends BizInfoVo {
...
@@ -52,4 +53,7 @@ public class FxdBizInfoVo extends BizInfoVo {
private
String
cancur
=
NULLSTR
;
private
String
cancur
=
NULLSTR
;
private
BigDecimal
canamt
=
BigDecimal
.
ZERO
;
private
BigDecimal
canamt
=
BigDecimal
.
ZERO
;
//fxdgrp.rec.setdat
private
Date
setdat
=
NULLDATE
;
}
}
isc-common-core/src/main/resources/mapper/smhmapper.xml
View file @
0a1c9258
...
@@ -48,6 +48,7 @@
...
@@ -48,6 +48,7 @@
<result
property=
"xxxcnt"
column=
"xxxcnt"
jdbcType=
"INTEGER"
/>
<result
property=
"xxxcnt"
column=
"xxxcnt"
jdbcType=
"INTEGER"
/>
<result
property=
"docmd5"
column=
"docmd5"
jdbcType=
"VARCHAR"
/>
<result
property=
"docmd5"
column=
"docmd5"
jdbcType=
"VARCHAR"
/>
<result
property=
"doclen"
column=
"doclen"
jdbcType=
"NUMERIC"
/>
<result
property=
"doclen"
column=
"doclen"
jdbcType=
"NUMERIC"
/>
<result
property=
"rcvkey"
column=
"rcvkey"
jdbcType=
"VARCHAR"
/>
</resultMap>
</resultMap>
...
@@ -64,7 +65,7 @@
...
@@ -64,7 +65,7 @@
<!-- </resultMap>-->
<!-- </resultMap>-->
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
inr,objtyp,objinr,trntyp,trninr,trnsub,extkey,nam,creusr,crefrm,credattim,dir,docpth,docfil,docfxt,docmac,msgpos,msglen,grpinr,grpseq,cortyp,cortypsub,apf,sndkey,apfcnt,ptainr,oriflg,orismhinr,partflg,msgtyp,relcur,relamt,stp,etyextkey,sysno,staflg,clndat,f20,chlflg,orimsgtyp,mpiinr,xxxcnt,docmd5,doclen
inr,objtyp,objinr,trntyp,trninr,trnsub,extkey,nam,creusr,crefrm,credattim,dir,docpth,docfil,docfxt,docmac,msgpos,msglen,grpinr,grpseq,cortyp,cortypsub,apf,sndkey,apfcnt,ptainr,oriflg,orismhinr,partflg,msgtyp,relcur,relamt,stp,etyextkey,sysno,staflg,clndat,f20,chlflg,orimsgtyp,mpiinr,xxxcnt,docmd5,doclen
,rcvkey
</sql>
</sql>
<select
id=
"selectByPrimaryKey"
resultMap=
"BaseResultMap"
>
<select
id=
"selectByPrimaryKey"
resultMap=
"BaseResultMap"
>
...
@@ -127,6 +128,7 @@
...
@@ -127,6 +128,7 @@
#{xxxcnt,jdbcType=INTEGER},
#{xxxcnt,jdbcType=INTEGER},
#{docmd5,jdbcType=VARCHAR},
#{docmd5,jdbcType=VARCHAR},
#{doclen,jdbcType=NUMERIC},
#{doclen,jdbcType=NUMERIC},
#{rcvkey,jdbcType=VARCHAR},
</trim>
</trim>
</insert>
</insert>
...
@@ -177,6 +179,7 @@
...
@@ -177,6 +179,7 @@
<if
test=
"xxxcnt != null"
>
xxxcnt,
</if>
<if
test=
"xxxcnt != null"
>
xxxcnt,
</if>
<if
test=
"docmd5 != null"
>
docmd5,
</if>
<if
test=
"docmd5 != null"
>
docmd5,
</if>
<if
test=
"doclen != null"
>
doclen,
</if>
<if
test=
"doclen != null"
>
doclen,
</if>
<if
test=
"rcvkey != null"
>
rcvkey,
</if>
</trim>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"inr != null"
>
#{inr,jdbcType=VARCHAR},
</if>
<if
test=
"inr != null"
>
#{inr,jdbcType=VARCHAR},
</if>
...
@@ -223,6 +226,7 @@
...
@@ -223,6 +226,7 @@
<if
test=
"xxxcnt != null"
>
#{xxxcnt,jdbcType=INTEGER},
</if>
<if
test=
"xxxcnt != null"
>
#{xxxcnt,jdbcType=INTEGER},
</if>
<if
test=
"docmd5 != null"
>
#{docmd5,jdbcType=VARCHAR},
</if>
<if
test=
"docmd5 != null"
>
#{docmd5,jdbcType=VARCHAR},
</if>
<if
test=
"doclen != null"
>
#{doclen,jdbcType=NUMERIC},
</if>
<if
test=
"doclen != null"
>
#{doclen,jdbcType=NUMERIC},
</if>
<if
test=
"rcvkey != null"
>
#{rcvkey,jdbcType=VARCHAR},
</if>
</trim>
</trim>
</insert>
</insert>
...
@@ -272,6 +276,7 @@
...
@@ -272,6 +276,7 @@
<if
test=
"xxxcnt != null"
>
xxxcnt = #{xxxcnt,jdbcType=INTEGER},
</if>
<if
test=
"xxxcnt != null"
>
xxxcnt = #{xxxcnt,jdbcType=INTEGER},
</if>
<if
test=
"docmd5 != null"
>
docmd5 = #{docmd5,jdbcType=VARCHAR},
</if>
<if
test=
"docmd5 != null"
>
docmd5 = #{docmd5,jdbcType=VARCHAR},
</if>
<if
test=
"doclen != null"
>
doclen = #{doclen,jdbcType=NUMERIC},
</if>
<if
test=
"doclen != null"
>
doclen = #{doclen,jdbcType=NUMERIC},
</if>
<if
test=
"rcvkey != null"
>
rcvkey = #{rcvkey,jdbcType=VARCHAR},
</if>
</set>
</set>
where inr = #{inr,jdbcType=VARCHAR}
where inr = #{inr,jdbcType=VARCHAR}
</update>
</update>
...
@@ -322,6 +327,7 @@
...
@@ -322,6 +327,7 @@
xxxcnt = #{xxxcnt,jdbcType=INTEGER},
xxxcnt = #{xxxcnt,jdbcType=INTEGER},
docmd5 = #{docmd5,jdbcType=VARCHAR},
docmd5 = #{docmd5,jdbcType=VARCHAR},
doclen = #{doclen,jdbcType=NUMERIC},
doclen = #{doclen,jdbcType=NUMERIC},
rcvkey = #{rcvkey,jdbcType=VARCHAR},
</set>
</set>
where inr = #{inr,jdbcType=VARCHAR}
where inr = #{inr,jdbcType=VARCHAR}
</update>
</update>
...
@@ -379,6 +385,7 @@
...
@@ -379,6 +385,7 @@
<if
test=
"module.xxxcnt != null"
>
xxxcnt = #{module.xxxcnt,jdbcType=INTEGER},
</if>
<if
test=
"module.xxxcnt != null"
>
xxxcnt = #{module.xxxcnt,jdbcType=INTEGER},
</if>
<if
test=
"module.docmd5 != null"
>
docmd5 = #{module.docmd5,jdbcType=VARCHAR},
</if>
<if
test=
"module.docmd5 != null"
>
docmd5 = #{module.docmd5,jdbcType=VARCHAR},
</if>
<if
test=
"module.doclen != null"
>
doclen = #{module.doclen,jdbcType=NUMERIC},
</if>
<if
test=
"module.doclen != null"
>
doclen = #{module.doclen,jdbcType=NUMERIC},
</if>
<if
test=
"module.rcvkey != null"
>
rcvkey = #{module.rcvkey,jdbcType=VARCHAR},
</if>
</set>
</set>
${conditions}
${conditions}
</update>
</update>
...
@@ -466,6 +473,7 @@
...
@@ -466,6 +473,7 @@
<if
test=
"xxxcnt != null"
>
and xxxcnt = #{xxxcnt,jdbcType=INTEGER}
</if>
<if
test=
"xxxcnt != null"
>
and xxxcnt = #{xxxcnt,jdbcType=INTEGER}
</if>
<if
test=
"docmd5 != null"
>
and docmd5 = #{docmd5,jdbcType=VARCHAR}
</if>
<if
test=
"docmd5 != null"
>
and docmd5 = #{docmd5,jdbcType=VARCHAR}
</if>
<if
test=
"doclen != null"
>
and doclen = #{doclen,jdbcType=NUMERIC}
</if>
<if
test=
"doclen != null"
>
and doclen = #{doclen,jdbcType=NUMERIC}
</if>
<if
test=
"rcvkey != null"
>
and rcvkey = #{rcvkey,jdbcType=VARCHAR}
</if>
</select>
</select>
<select
id=
"selectRelationSmh"
resultMap=
"BaseResultMap"
>
<select
id=
"selectRelationSmh"
resultMap=
"BaseResultMap"
>
...
...
isc-common-service/src/main/java/com/brilliance/isc/common/component/PtsptaToolComponent.java
View file @
0a1c9258
package
com
.
brilliance
.
isc
.
common
.
component
;
package
com
.
brilliance
.
isc
.
common
.
component
;
import
cn.hutool.core.bean.BeanUtil
;
import
com.brilliance.isc.bo.*
;
import
com.brilliance.isc.bo.*
;
import
com.brilliance.isc.common.cache.adr.AdrCacheService
;
import
com.brilliance.isc.common.cache.adr.AdrCacheService
;
import
com.brilliance.isc.common.cache.pta.PtaCacheService
;
import
com.brilliance.isc.common.cache.pta.PtaCacheService
;
...
@@ -61,10 +62,10 @@ public class PtsptaToolComponent {
...
@@ -61,10 +62,10 @@ public class PtsptaToolComponent {
@Autowired
@Autowired
private
PtsptaMapper
ptsptaMapper
;
private
PtsptaMapper
ptsptaMapper
;
public
boolean
IsDemestic
(
PtsptaVo
ptsptaVo
){
public
boolean
IsDemestic
(
PtsptaVo
ptsptaVo
)
{
if
(
ptsptaVo
.
getAdr
()
!=
null
&&
"CN"
.
equals
(
ptsptaVo
.
getAdr
().
getLoccty
()))
{
if
(
ptsptaVo
.
getAdr
()
!=
null
&&
"CN"
.
equals
(
ptsptaVo
.
getAdr
().
getLoccty
()))
{
return
true
;
return
true
;
}
else
{
}
else
{
return
false
;
return
false
;
}
}
}
}
...
@@ -1005,6 +1006,7 @@ public class PtsptaToolComponent {
...
@@ -1005,6 +1006,7 @@ public class PtsptaToolComponent {
/**
/**
* 根据objinr和objtyp补录缺失的role
* 根据objinr和objtyp补录缺失的role
*
* @param ptsptaList
* @param ptsptaList
* @param objinr
* @param objinr
* @param objtyp
* @param objtyp
...
@@ -1025,6 +1027,7 @@ public class PtsptaToolComponent {
...
@@ -1025,6 +1027,7 @@ public class PtsptaToolComponent {
/**
/**
* 清掉ptspta层的值,通过ptainr重复赋值
* 清掉ptspta层的值,通过ptainr重复赋值
*
* @param ptsptaVo
* @param ptsptaVo
*/
*/
private
void
clearPtspta
(
PtsptaVo
ptsptaVo
)
{
private
void
clearPtspta
(
PtsptaVo
ptsptaVo
)
{
...
@@ -1034,4 +1037,34 @@ public class PtsptaToolComponent {
...
@@ -1034,4 +1037,34 @@ public class PtsptaToolComponent {
ptsptaVo
.
setAdrblk
(
""
);
ptsptaVo
.
setAdrblk
(
""
);
ptsptaVo
.
setDbfadrblk
(
""
);
ptsptaVo
.
setDbfadrblk
(
""
);
}
}
/**
* source:ptsmod.0003.script
*/
public
void
ptsmodGetPtsptaFromPtyINR
(
PtsptaVo
argPtspta
,
String
argPtyInr
)
{
//! Sets Argptspta based on ArgptyInr
//! that means the main address of party ARGPTYINR is read and based on this PTA argPtspta is filled completely
// if no ArgPtaInr is empty, clear argptspta
if
(
MdaUtils
.
isEmpty
(
argPtyInr
))
{
// MdaUtils.clear(argPtspta);
PtsptaVo
ptspta
=
new
PtsptaVo
();
BeanUtil
.
copyProperties
(
ptspta
,
argPtspta
);
}
else
{
// else read PTA
Pta
maa
=
ptaCacheService
.
selectByPtyInrAndUsg
(
argPtyInr
,
"MAA"
);
// cacheDbRead2(argPtspta.getPta(), argPtyInr, "PTYINR", "MAA", "USG");
if
(
Objects
.
isNull
(
maa
))
{
// MdaUtils.clear(argPtspta);
PtsptaVo
ptspta
=
new
PtsptaVo
();
BeanUtil
.
copyProperties
(
ptspta
,
argPtspta
);
}
else
{
// if found, get remaining fields
argPtspta
.
setPta
(
maa
);
// ptsmodGetPtsptaFromPta(argPtspta);
PtsptaVo
ptspta
=
getPtsptaFromPtaINR
(
maa
.
getInr
());
BeanUtil
.
copyProperties
(
ptspta
,
argPtspta
);
}
}
}
}
}
isc-common-service/src/main/java/com/brilliance/isc/common/nosmod/NosmodService.java
0 → 100644
View file @
0a1c9258
package
com
.
brilliance
.
isc
.
common
.
nosmod
;
import
com.brilliance.isc.common.nosmod.vo.Nosmod
;
import
com.brilliance.isc.common.setmod.vo.SetmodVo
;
import
com.brilliance.isc.common.trnmod.vo.TrnmodVo
;
import
java.math.BigDecimal
;
import
java.util.Date
;
/**
* @program: isc-core
* @ClassName: NosmodService
* @description:
* @author: huangshunlin
* @create: 2024-10-18 20:42
*/
public
interface
NosmodService
{
void
cbsNostroStore
(
Nosmod
nosmod
,
String
cbt
,
String
extid
,
String
trninr
,
Date
dat
,
String
actcur
,
BigDecimal
amt
,
String
nam
,
String
acc
,
Object
obj
);
boolean
isSavNostroCbs
(
SetmodVo
setmodVo
);
int
getNosRowInSetgll
(
SetmodVo
setmodVo
);
void
savNostroCbs
(
Nosmod
nosmod
,
String
trninr
,
String
actcur
,
BigDecimal
amt
,
String
acc
,
Date
dat
,
String
nam
,
Object
obj
);
void
savNostro
(
Nosmod
nosmod
,
SetmodVo
setmodVo
,
TrnmodVo
trnmodVo
);
}
isc-common-service/src/main/java/com/brilliance/isc/common/nosmod/impl/NosmodServiceImpl.java
0 → 100644
View file @
0a1c9258
package
com
.
brilliance
.
isc
.
common
.
nosmod
.
impl
;
import
com.brilliance.isc.bo.Act
;
import
com.brilliance.isc.common.cbsmod.service.CbsmodService
;
import
com.brilliance.isc.common.context.SettleContext
;
import
com.brilliance.isc.common.nosmod.NosmodService
;
import
com.brilliance.isc.common.nosmod.vo.Nosmod
;
import
com.brilliance.isc.common.setgll.vo.SetgllVo
;
import
com.brilliance.isc.common.setmod.vo.SetmodVo
;
import
com.brilliance.isc.common.trnmod.vo.TrnmodVo
;
import
com.brilliance.isc.mda.dao.ActMapper
;
import
com.brilliance.isc.utils.StringUtils
;
import
com.brilliance.mda.runtime.mda.util.Dates
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
import
java.math.BigDecimal
;
import
java.util.Date
;
import
java.util.List
;
import
static
com
.
brilliance
.
mda
.
runtime
.
mda
.
Constants
.
NULLSTR
;
/**
* @program: isc-core
* @ClassName: NosmodServiceImpl
* @description:
* @author: huangshunlin
* @create: 2024-10-18 20:43
*/
@Service
public
class
NosmodServiceImpl
implements
NosmodService
{
@Resource
private
CbsmodService
cbsmodService
;
@Resource
private
ActMapper
actMapper
;
/**
* source:nosmod.0000.script
*/
public
void
cbsNostroStore
(
Nosmod
nosmod
,
String
cbt
,
String
extid
,
String
trninr
,
Date
dat
,
String
actcur
,
BigDecimal
amt
,
String
nam
,
String
acc
,
Object
obj
)
{
//!保存存放同业台账
nosmod
.
getWrkcbe
().
setCbt
(
cbt
);
nosmod
.
getWrkcbe
().
setExtid
(
extid
);
nosmod
.
getWrkcbe
().
setTrntyp
(
"TRN"
);
nosmod
.
getWrkcbe
().
setTrninr
(
trninr
);
nosmod
.
getWrkcbe
().
setDat
(
dat
);
nosmod
.
getWrkcbe
().
setCur
(
actcur
);
nosmod
.
getWrkcbe
().
setAmt
(
amt
);
nosmod
.
getWrkcbe
().
setNam
(
nam
);
nosmod
.
getWrkcbe
().
setAcc
(
acc
);
cbsmodService
.
cbsStoreEntry
(
nosmod
.
getWrkcbe
(),
obj
);
}
/**
* source:nosmod.0001.script
*/
public
boolean
isSavNostroCbs
(
SetmodVo
setmodVo
)
{
//!判断是否需要保存存放同业的台账
return
getNosRowInSetgll
(
setmodVo
)
>=
0
;
}
/**
* source:nosmod.0002.script
*/
public
int
getNosRowInSetgll
(
SetmodVo
setmodVo
)
{
//!取存放同业分录在settlement的位置
int
row
=
-
1
;
// int size = Grids.gridCount(MdaDriver.getModuleList("\\SETMOD\\SETGLG\\SETGLL"));
List
<
SetgllVo
>
setgll
=
setmodVo
.
getSetglg
().
getSetgll
();
if
(
CollectionUtils
.
isEmpty
(
setgll
))
{
return
row
;
}
String
dsp
=
NULLSTR
;
for
(
int
i
=
0
,
size
=
setgll
.
size
();
i
<
size
;
i
++)
{
// dsp = Datas.getContent(this, "\\SETMOD\\SETGLG\\SETGLL(" + MdaUtils.toString(i) + ")\\DSP");
dsp
=
setgll
.
get
(
i
).
getDsp
();
switch
(
StringUtils
.
trimToEmpty
(
dsp
))
{
case
"NOD"
:
case
"PAC"
:
case
"DBD"
:
case
"DBC"
:
row
=
i
;
break
;
}
}
return
row
;
}
/**
* source:nosmod.0003.script
*/
public
void
savNostroCbs
(
Nosmod
nosmod
,
String
trninr
,
String
actcur
,
BigDecimal
amt
,
String
acc
,
Date
dat
,
String
nam
,
Object
obj
)
{
//!保存存放同业台账
cbsmodService
.
cbsTrnSetNew
(
"TRN"
,
trninr
);
cbsNostroStore
(
nosmod
,
"NOSAMT"
,
"AMT1"
,
trninr
,
dat
,
actcur
,
amt
,
nam
,
acc
,
obj
);
}
/**
* source:nosmod.0004.script
*/
public
void
savNostro
(
Nosmod
nosmod
,
SetmodVo
setmodVo
,
TrnmodVo
trnmodVo
)
{
//! 保存存放同业台账
int
row
=
getNosRowInSetgll
(
setmodVo
);
String
trninr
=
NULLSTR
;
int
err
=
0
;
String
actcur
=
NULLSTR
;
BigDecimal
amt
=
null
;
String
act
=
NULLSTR
;
List
<
SetgllVo
>
setgll
=
setmodVo
.
getSetglg
().
getSetgll
();
if
(
row
>=
0
)
{
// trninr = Datas.getContent(this, "\\TRNMOD\\TRN\\INR");
trninr
=
trnmodVo
.
getTrn
().
getInr
();
// actcur = Datas.getContent(this, "\\SETMOD\\SETGLG\\SETGLL(" + MdaUtils.toString(row) + ")\\CUR");
// amt = Datas.getContentNumeric(this, "\\SETMOD\\SETGLG\\SETGLL(" + MdaUtils.toString(row) + ")\\AMT");
// act = Datas.getContent(this, "\\SETMOD\\SETGLG\\SETGLL(" + MdaUtils.toString(row) + ")\\ACT");
// actcur = Datas.getContent(this, "\\SETMOD\\SETGLG\\SETGLL(" + MdaUtils.toString(row) + ")\\CUR");
amt
=
setgll
.
get
(
row
).
getAmt
();
act
=
setgll
.
get
(
row
).
getAct
();
actcur
=
setgll
.
get
(
row
).
getCur
();
List
<
Act
>
actList
=
actMapper
.
getActListByExtkey
(
act
);
// modify for hzbank,only save when act exist
if
(
CollectionUtils
.
isNotEmpty
(
actList
))
{
nosmod
.
setRec
(
actList
.
get
(
0
));
savNostroCbs
(
nosmod
,
trninr
,
actcur
,
amt
,
act
,
Dates
.
today
(),
SettleContext
.
getTransName
(),
nosmod
.
getRec
());
}
}
}
}
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