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
94ea56e9
Commit
94ea56e9
authored
Sep 28, 2024
by
wangweidong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fxd
parent
7c5e4eff
Hide whitespace changes
Inline
Side-by-side
Showing
31 changed files
with
825 additions
and
761 deletions
+825
-761
pom.xml
isc-funds-boot/pom.xml
+54
-0
App.java
isc-funds-boot/src/main/java/com/brilliance/isc/App.java
+1
-1
AuthInterceptor.java
.../main/java/com/brilliance/isc/filter/AuthInterceptor.java
+14
-0
WebMvcConfig.java
...src/main/java/com/brilliance/isc/filter/WebMvcConfig.java
+30
-0
AuthInterceptorReqFilter.java
.../brilliance/isc/support/web/AuthInterceptorReqFilter.java
+0
-21
AuthInterceptorRespFilter.java
...brilliance/isc/support/web/AuthInterceptorRespFilter.java
+0
-30
application.yml
isc-funds-boot/src/main/resources/application.yml
+15
-8
FxdselMapper.xml
isc-funds-boot/src/main/resources/mapper/FxdselMapper.xml
+121
-0
pom.xml
isc-funds-business/pom.xml
+28
-32
CpdBopctyController.java
...com/brilliance/common/controller/CpdBopctyController.java
+0
-30
CpdBopgatController.java
...com/brilliance/common/controller/CpdBopgatController.java
+0
-34
CpdBopremController.java
...com/brilliance/common/controller/CpdBopremController.java
+0
-31
CpdCfabopController.java
...com/brilliance/common/controller/CpdCfabopController.java
+0
-35
CpdRmbController.java
...va/com/brilliance/common/controller/CpdRmbController.java
+0
-31
TxmController.java
.../java/com/brilliance/common/controller/TxmController.java
+0
-96
CpdBopctyService.java
.../java/com/brilliance/common/service/CpdBopctyService.java
+0
-22
FxtselController.java
...lliance/isc/basesel/cptsel/resource/FxtselController.java
+0
-54
FttselController.java
...lliance/isc/basesel/fttsel/resource/FttselController.java
+43
-0
FttselService.java
.../brilliance/isc/basesel/fttsel/service/FttselService.java
+4
-5
FttselServiceImpl.java
...ce/isc/basesel/fttsel/service/impl/FttselServiceImpl.java
+7
-14
FxdselController.java
...lliance/isc/basesel/fxtsel/resource/FxdselController.java
+36
-0
FxdselService.java
.../brilliance/isc/basesel/fxtsel/service/FxdselService.java
+10
-0
FxdselServiceImpl.java
...ce/isc/basesel/fxtsel/service/impl/FxdselServiceImpl.java
+59
-0
ErrorPrompt.java
...com/brilliance/isc/basesel/trncod/consts/ErrorPrompt.java
+0
-13
TrncodService.java
.../brilliance/isc/basesel/trncod/service/TrncodService.java
+0
-17
TrncodServiceImpl.java
...ce/isc/basesel/trncod/service/impl/TrncodServiceImpl.java
+0
-141
FxdselMapper.java
...rc/main/java/com/brilliance/isc/mda/dao/FxdselMapper.java
+17
-0
Fxd.java
...entity/src/main/java/com/brilliance/isc/funds/bo/Fxd.java
+200
-0
FxdVo.java
...tity/src/main/java/com/brilliance/isc/funds/vo/FxdVo.java
+185
-0
FxtselQueryVo.java
.../main/java/com/brilliance/isc/vo/funds/FxtselQueryVo.java
+0
-145
pom.xml
pom.xml
+1
-1
No files found.
isc-funds-boot/pom.xml
View file @
94ea56e9
...
...
@@ -23,6 +23,60 @@
<artifactId>
jasypt-spring-boot-starter
</artifactId>
</dependency>
<dependency>
<groupId>
mysql
</groupId>
<artifactId>
mysql-connector-java
</artifactId>
</dependency>
<dependency>
<groupId>
com.brilliance.isc
</groupId>
<artifactId>
isc-common-service-trnmod
</artifactId>
</dependency>
<dependency>
<groupId>
com.brilliance.isc
</groupId>
<artifactId>
isc-common-service-limmod
</artifactId>
</dependency>
<dependency>
<groupId>
com.brilliance.isc
</groupId>
<artifactId>
isc-common-service-setmod
</artifactId>
</dependency>
<dependency>
<groupId>
com.brilliance.isc
</groupId>
<artifactId>
isc-common-service-bopset
</artifactId>
</dependency>
<dependency>
<groupId>
com.brilliance.isc
</groupId>
<artifactId>
isc-common-service-liaall
</artifactId>
</dependency>
<dependency>
<groupId>
com.brilliance.isc
</groupId>
<artifactId>
isc-common-service-liaccv
</artifactId>
</dependency>
<dependency>
<groupId>
com.brilliance.isc
</groupId>
<artifactId>
isc-common-service-trndoc
</artifactId>
</dependency>
<dependency>
<groupId>
com.brilliance.isc
</groupId>
<artifactId>
isc-common-service-oit
</artifactId>
</dependency>
<dependency>
<groupId>
com.brilliance.isc
</groupId>
<artifactId>
isc-common-service-trndia
</artifactId>
</dependency>
<dependency>
<groupId>
com.brilliance.isc
</groupId>
<artifactId>
isc-common-service-trtcre
</artifactId>
</dependency>
<dependency>
<groupId>
com.brilliance.isc
</groupId>
<artifactId>
isc-common-doc
</artifactId>
</dependency>
<!-- <dependency>-->
<!-- <groupId>com.brilliance.isc</groupId>-->
<!-- <artifactId>isc-remit-entity</artifactId>-->
<!-- </dependency>-->
</dependencies>
<build>
...
...
isc-funds-boot/src/main/java/com/brilliance/isc/App.java
View file @
94ea56e9
...
...
@@ -23,7 +23,7 @@ import java.util.Objects;
@ComponentScan
(
basePackages
=
{
"com.brilliance.isc"
,
"com.brilliance.mda"
})
//扫描mybatisMapper接口类,注意:包需细化到尽可能小的范围
@MapperScan
(
basePackages
=
{
"com.brilliance.isc.**.mapper"
,
"com.brilliance.isc.
core.
mda.dao"
})
@MapperScan
(
basePackages
=
{
"com.brilliance.isc.**.mapper"
,
"com.brilliance.isc.mda.dao"
})
@SpringBootApplication
@EnableFeignClients
@ServletComponentScan
(
basePackages
=
{
"com.brilliance.isc"
})
...
...
isc-funds-boot/src/main/java/com/brilliance/isc/filter/AuthInterceptor.java
0 → 100644
View file @
94ea56e9
package
com
.
brilliance
.
isc
.
filter
;
import
com.brilliance.isc.common.filter.ISCAuthInterceptor
;
import
org.springframework.stereotype.Component
;
/**
* @description:
* @author: hulei
* @create: 2024-09-27 17:11
**/
@Component
public
class
AuthInterceptor
extends
ISCAuthInterceptor
{
}
isc-funds-boot/src/main/java/com/brilliance/isc/filter/WebMvcConfig.java
0 → 100644
View file @
94ea56e9
package
com
.
brilliance
.
isc
.
filter
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.web.servlet.config.annotation.InterceptorRegistry
;
import
org.springframework.web.servlet.config.annotation.WebMvcConfigurer
;
/**
* @Classname InterceptorRegistry
* @Title
* @Description
* @Version 1.0.0
* @Date 2023/12/1 16:10
* @Created by weiguanying
*/
@Configuration
public
class
WebMvcConfig
implements
WebMvcConfigurer
{
// 加入如下代码可解决
@Autowired
AuthInterceptor
authInterceptor
;
@Override
public
void
addInterceptors
(
InterceptorRegistry
registry
)
{
registry
.
addInterceptor
(
authInterceptor
)
.
excludePathPatterns
(
"/logout"
);
}
}
isc-funds-boot/src/main/java/com/brilliance/isc/support/web/AuthInterceptorReqFilter.java
deleted
100644 → 0
View file @
7c5e4eff
//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//
package
com
.
brilliance
.
isc
.
support
.
web
;
import
com.brilliance.isc.common.filter.ISCRequestPreFilter
;
import
org.springframework.stereotype.Component
;
import
javax.annotation.Priority
;
import
javax.ws.rs.container.PreMatching
;
import
javax.ws.rs.ext.Provider
;
@Component
@Provider
@Priority
(
100
)
@PreMatching
public
class
AuthInterceptorReqFilter
extends
ISCRequestPreFilter
{
}
isc-funds-boot/src/main/java/com/brilliance/isc/support/web/AuthInterceptorRespFilter.java
deleted
100644 → 0
View file @
7c5e4eff
package
com
.
brilliance
.
isc
.
support
.
web
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.stereotype.Component
;
import
javax.annotation.Priority
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.ws.rs.container.ContainerRequestContext
;
import
javax.ws.rs.container.ContainerRequestFilter
;
import
javax.ws.rs.core.Context
;
import
javax.ws.rs.ext.Provider
;
import
java.io.IOException
;
@Component
@Provider
@Priority
(
100
)
public
class
AuthInterceptorRespFilter
implements
ContainerRequestFilter
{
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
AuthInterceptorRespFilter
.
class
);
@Context
HttpServletRequest
request
;
public
AuthInterceptorRespFilter
()
{
}
public
void
filter
(
ContainerRequestContext
requestContext
)
throws
IOException
{
logger
.
debug
(
"AuthInterceptorRespFilter"
);
}
}
isc-funds-boot/src/main/resources/application.yml
View file @
94ea56e9
...
...
@@ -5,18 +5,25 @@ database_type: oracle
spring
:
application
:
name
:
isc-funds
name
:
isc-remit
# datasource:
# driver-class-name: oracle.jdbc.OracleDriver
# url: jdbc:oracle:thin:@127.0.0.1:1521:XE
# username: ISCSL
# password: ISCSL
datasource
:
driver-class-name
:
oracle.jdbc.OracleDriver
url
:
jdbc:oracle:thin:@127.0.0.1:1521:XE
username
:
ISCSL
password
:
ISCSL
driver-class-name
:
dm.jdbc.driver.DmDriver
url
:
jdbc:dm://192.168.0.114:5236
username
:
ISCHLJ
password
:
PWDISCHLJ
hikari
:
schema
:
ISC31
jackson
:
#实体类转json时字段为null不参与序列化
default-property-inclusion
:
NON_EMPTY
redis
:
host
:
1
27.0.0.1
port
:
16378
host
:
1
92.168.0.114
port
:
36379
password
:
"
ESFEdlc45^"
database
:
0
#设置数据库数量默认为0
jedis
:
...
...
@@ -102,7 +109,7 @@ eureka:
register-with-eureka
:
true
fetchRegistry
:
true
serviceUrl
:
defaultZone
:
http://1
27.0.0.1:1
8761/eureka
defaultZone
:
http://1
92.168.0.114:3
8761/eureka
feign
:
client
:
...
...
isc-funds-boot/src/main/resources/mapper/FxdselMapper.xml
0 → 100644
View file @
94ea56e9
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.brilliance.isc.mda.dao.FxdselMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.brilliance.isc.funds.bo.Fxd"
>
<result
property=
"inr"
column=
"inr"
jdbcType=
"VARCHAR"
/>
<result
property=
"ownref"
column=
"ownref"
jdbcType=
"VARCHAR"
/>
<result
property=
"nam"
column=
"nam"
jdbcType=
"VARCHAR"
/>
<result
property=
"opndat"
column=
"opndat"
jdbcType=
"DATE"
/>
<result
property=
"ownusr"
column=
"ownusr"
jdbcType=
"VARCHAR"
/>
<result
property=
"fxtyp"
column=
"fxtyp"
jdbcType=
"VARCHAR"
/>
<result
property=
"rat"
column=
"rat"
jdbcType=
"DECIMAL"
/>
<result
property=
"midrat"
column=
"midrat"
jdbcType=
"DECIMAL"
/>
<result
property=
"quoref"
column=
"quoref"
jdbcType=
"VARCHAR"
/>
<result
property=
"fudref"
column=
"fudref"
jdbcType=
"VARCHAR"
/>
<result
property=
"valdat"
column=
"valdat"
jdbcType=
"DATE"
/>
<result
property=
"cnfdat"
column=
"cnfdat"
jdbcType=
"DATE"
/>
<result
property=
"setdat"
column=
"setdat"
jdbcType=
"DATE"
/>
<result
property=
"setdatfrm"
column=
"setdatfrm"
jdbcType=
"DATE"
/>
<result
property=
"setdatto"
column=
"setdatto"
jdbcType=
"DATE"
/>
<result
property=
"clsdat"
column=
"clsdat"
jdbcType=
"DATE"
/>
<result
property=
"ver"
column=
"ver"
jdbcType=
"VARCHAR"
/>
<result
property=
"branchinr"
column=
"branchinr"
jdbcType=
"VARCHAR"
/>
<result
property=
"bchkeyinr"
column=
"bchkeyinr"
jdbcType=
"VARCHAR"
/>
<result
property=
"trdint"
column=
"trdint"
jdbcType=
"VARCHAR"
/>
<result
property=
"trdout"
column=
"trdout"
jdbcType=
"VARCHAR"
/>
<result
property=
"trnman"
column=
"trnman"
jdbcType=
"VARCHAR"
/>
<result
property=
"acc"
column=
"acc"
jdbcType=
"VARCHAR"
/>
<result
property=
"acc2"
column=
"acc2"
jdbcType=
"VARCHAR"
/>
<result
property=
"usr"
column=
"usr"
jdbcType=
"VARCHAR"
/>
<result
property=
"dsp"
column=
"dsp"
jdbcType=
"VARCHAR"
/>
<result
property=
"dsp2"
column=
"dsp2"
jdbcType=
"VARCHAR"
/>
<result
property=
"cshpct"
column=
"cshpct"
jdbcType=
"DECIMAL"
/>
<result
property=
"rat1"
column=
"rat1"
jdbcType=
"DECIMAL"
/>
<result
property=
"accmng"
column=
"accmng"
jdbcType=
"VARCHAR"
/>
<result
property=
"hdbch"
column=
"hdbch"
jdbcType=
"VARCHAR"
/>
<result
property=
"etyextkey"
column=
"etyextkey"
jdbcType=
"VARCHAR"
/>
</resultMap>
<select
id=
"query"
resultMap=
"BaseResultMap"
>
select fxd.OWNREF,fxd.NAM,fxd.OPNDAT
from fxd where
<if
test=
" opndatfrom != null "
>
fxd.OPNDAT>=#{opndatfrom,jdbcType=DATE}
</if>
<if
test=
" opndatto != null "
>
AND fxd.OPNDAT
<
=#{opndatto,jdbcType=DATE}
</if>
<if
test=
" seaownref != null and seaownref != ''"
>
AND fxd.OWNREF=#{ seaownref,jdbcType=VARCHAR}
</if>
<if
test=
" nam != null and nam != ''"
>
AND fxd.NAM=#{ nam,jdbcType=VARCHAR}
</if>
<!-- <if test=" chnipt != null and chnipt != ''">-->
<!-- <choose>-->
<!-- <when test=" chnipt == 'BLK'">-->
<!-- AND M1.nxtchncod=-->
<!-- </when>-->
<!-- <when test=" chnipt == 'wu'">-->
<!-- AND M1.tgtchncod IS NULL-->
<!-- </when>-->
<!-- <otherwise>-->
<!-- AND M1.tgtchncod=-->
<!-- </otherwise>-->
<!-- </choose>-->
<!-- </if>-->
<!-- <if test=" msgtyp != null and msgtyp != ''">-->
<!-- AND M2.msgtyp=#{ msgtyp,jdbcType=VARCHAR}-->
<!-- </if>-->
<!-- <if test=" subtyp != null and subtyp != ''">-->
<!-- AND M2.subtyp=#{ subtyp,jdbcType=VARCHAR}-->
<!-- </if>-->
<!-- <if test=" gpi != null and gpi != ''">-->
<!-- AND M2.gpi=#{ gpi,jdbcType=VARCHAR}-->
<!-- </if>-->
<!-- <if test=" sndbak != null and sndbak != ''">-->
<!-- AND M2.sndbic like '%' || #{sndbak,jdbcType=VARCHAR} || '%'-->
<!-- </if>-->
<!-- <if test=" revbak != null and revbak != ''">-->
<!-- AND M2.rcvbic like '%' || #{revbak,jdbcType=VARCHAR} || '%'-->
<!-- </if>-->
<!-- <if test=" othref != null and othref != ''">-->
<!-- AND M2.othref like '%' || #{othref,jdbcType=VARCHAR} || ''-->
<!-- </if>-->
<!-- <if test=" ownref != null and ownref != ''">-->
<!-- AND M2.ownref like '%' || #{ ownref,jdbcType=VARCHAR} || '%'-->
<!-- </if>-->
<!-- <if test=" act != null and act != ''">-->
<!-- AND M2.act like '%' || #{ act,jdbcType=VARCHAR} || '%'-->
<!-- </if>-->
<!-- <if test=" cur != null and cur != ''">-->
<!-- AND M2.cur=#{ cur,jdbcType=VARCHAR}-->
<!-- </if>-->
<!-- <if test=" dtlchg != null and dtlchg != ''">-->
<!-- AND M2.dtlchg=#{ dtlchg,jdbcType=VARCHAR}-->
<!-- </if>-->
<!-- <if test=" amtmin != null and amtmin != ''">-->
<!-- AND M2.amt >= #{ amtmin,jdbcType=DECIMAL}-->
<!-- </if>-->
<!-- <if test=" amtmax != null and amtmax != ''">-->
<!-- AND M2.amt <= #{ amtmax,jdbcType=DECIMAL}-->
<!-- </if>-->
<!-- <if test=" actbic != null and actbic != ''">-->
<!-- AND (M2.actbic like '%' || #{ actbic,jdbcType=VARCHAR} || '%'-->
<!-- or M2.t53bic LIKE '%' || #{ actbic,jdbcType=VARCHAR} || '%')-->
<!-- </if>-->
<!-- <if test=" sta != null and sta != ''">-->
<!-- AND M1.sta=#{ sta,jdbcType=VARCHAR}-->
<!-- </if>-->
</select>
</mapper>
\ No newline at end of file
isc-funds-business/pom.xml
View file @
94ea56e9
...
...
@@ -21,44 +21,40 @@
<groupId>
com.brilliance.isc
</groupId>
<artifactId>
isc-common-obj2mt
</artifactId>
</dependency>
<dependency>
<groupId>
com.brilliance.isc
</groupId>
<artifactId>
isc-common-service-bopset
</artifactId>
</dependency>
<dependency>
<groupId>
com.brilliance.isc
</groupId>
<artifactId>
isc-common-doc
</artifactId>
</dependency>
<dependency>
<groupId>
com.brilliance.isc
</groupId>
<artifactId>
isc-common-service-limmod
</artifactId>
</dependency>
<dependency>
<groupId>
com.brilliance.isc
</groupId>
<artifactId>
isc-common-service-trnmod
</artifactId>
</dependency>
<dependency>
<groupId>
com.brilliance.isc
</groupId>
<artifactId>
isc-common-service-setmod
</artifactId>
</dependency>
<!-- <dependency>-->
<!-- <groupId>com.brilliance.isc</groupId>-->
<!-- <artifactId>isc-common-doc</artifactId>-->
<!-- </dependency>-->
<!-- <dependency>-->
<!-- <groupId>com.brilliance.isc</groupId>-->
<!-- <artifactId>isc-common-service-limmod</artifactId>-->
<!-- </dependency>-->
<!-- <dependency>-->
<!-- <groupId>com.brilliance.isc</groupId>-->
<!-- <artifactId>isc-common-service-trnmod</artifactId>-->
<!-- </dependency>-->
<!-- <dependency>-->
<!-- <groupId>com.brilliance.isc</groupId>-->
<!-- <artifactId>isc-common-service-setmod</artifactId>-->
<!-- </dependency>-->
<dependency
>
<groupId>
com.xuxueli
</groupId
>
<artifactId>
xxl-job-core
</artifactId
>
</dependency
>
<!-- <dependency>--
>
<!-- <groupId>com.xuxueli</groupId>--
>
<!-- <artifactId>xxl-job-core</artifactId>--
>
<!-- </dependency>--
>
<!-- <dependency>-->
<!-- <groupId>org.jboss.resteasy</groupId>-->
<!-- <artifactId>resteasy-jaxrs</artifactId>-->
<!-- </dependency>-->
<dependency
>
<groupId>
org.jboss.resteasy
</groupId
>
<artifactId>
resteasy-spring-boot-starter
</artifactId
>
</dependency
>
<dependency
>
<groupId>
org.jboss.resteasy
</groupId
>
<artifactId>
resteasy-multipart-provider
</artifactId
>
</dependency
>
<!-- <dependency>--
>
<!-- <groupId>org.jboss.resteasy</groupId>--
>
<!-- <artifactId>resteasy-spring-boot-starter</artifactId>--
>
<!-- </dependency>--
>
<!-- <dependency>--
>
<!-- <groupId>org.jboss.resteasy</groupId>--
>
<!-- <artifactId>resteasy-multipart-provider</artifactId>--
>
<!-- </dependency>--
>
<!-- <dependency>-->
<!-- <groupId>org.jboss.resteasy</groupId>-->
<!-- <artifactId>resteasy-jackson2-provider</artifactId>-->
...
...
isc-funds-business/src/main/java/com/brilliance/common/controller/CpdBopctyController.java
deleted
100644 → 0
View file @
7c5e4eff
package
com
.
brilliance
.
common
.
controller
;
import
com.brilliance.common.service.CpdBopctyService
;
import
com.brilliance.isc.bo.Bopcty
;
import
com.brilliance.isc.vo.ResponseSet
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Component
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
javax.ws.rs.Consumes
;
import
javax.ws.rs.POST
;
import
javax.ws.rs.Path
;
import
javax.ws.rs.Produces
;
import
java.util.List
;
@Slf4j
@Component
@Consumes
(
"application/json"
)
@Produces
(
"application/json"
)
@Path
(
"/bopcty"
)
public
class
CpdBopctyController
{
@Autowired
private
CpdBopctyService
bopctyService
;
@POST
@Path
(
"/loadBopCtyList"
)
public
ResponseSet
<
List
<
Bopcty
>>
payeecountcode
()
{
return
ResponseSet
.
simpleSuccess
(
bopctyService
.
loadBopctyList
());
}
}
isc-funds-business/src/main/java/com/brilliance/common/controller/CpdBopgatController.java
deleted
100644 → 0
View file @
7c5e4eff
package
com
.
brilliance
.
common
.
controller
;
import
com.brilliance.isc.bo.model.Bopgat
;
import
com.brilliance.isc.common.bopset.controller.AbstractBopgatController
;
import
com.brilliance.isc.vo.ResponseSet
;
import
com.brilliance.isc.vo.remit.CpdBizAmdInfoVo
;
import
com.brilliance.isc.vo.remit.CpdBizInfoVo
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.stereotype.Component
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
javax.ws.rs.Consumes
;
import
javax.ws.rs.POST
;
import
javax.ws.rs.Path
;
import
javax.ws.rs.Produces
;
@Slf4j
@Component
@Consumes
(
"application/json"
)
@Produces
(
"application/json"
)
@Path
(
"/bopgat"
)
public
class
CpdBopgatController
extends
AbstractBopgatController
<
CpdBizInfoVo
,
CpdBizAmdInfoVo
>
{
@POST
@Path
(
"/cpd/bopGatMapping"
)
public
ResponseSet
<
Bopgat
>
bopGatMapping
(
@RequestBody
Bopgat
<
CpdBizInfoVo
,
CpdBizAmdInfoVo
>
bopgat
)
{
return
super
.
mappingBopgatData
(
bopgat
);
}
@POST
@Path
(
"/cpd/bopGatSetAcct"
)
public
ResponseSet
<
Bopgat
>
bopGatSetAcct
(
@RequestBody
Bopgat
<
CpdBizInfoVo
,
CpdBizAmdInfoVo
>
bopgat
)
{
return
super
.
bopGatSetAcct
(
bopgat
);
}
}
isc-funds-business/src/main/java/com/brilliance/common/controller/CpdBopremController.java
deleted
100644 → 0
View file @
7c5e4eff
package
com
.
brilliance
.
common
.
controller
;
import
com.brilliance.isc.bo.model.Bopgat
;
import
com.brilliance.isc.bo.model.Boprem
;
import
com.brilliance.isc.common.bopset.controller.AbstractBopgatController
;
import
com.brilliance.isc.common.bopset.controller.AbstractBopremController
;
import
com.brilliance.isc.vo.ResponseSet
;
import
com.brilliance.isc.vo.remit.CpdBizAmdInfoVo
;
import
com.brilliance.isc.vo.remit.CpdBizInfoVo
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.stereotype.Component
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
javax.ws.rs.Consumes
;
import
javax.ws.rs.POST
;
import
javax.ws.rs.Path
;
import
javax.ws.rs.Produces
;
@Slf4j
@Component
@Consumes
(
"application/json"
)
@Produces
(
"application/json"
)
@Path
(
"/boprem"
)
public
class
CpdBopremController
extends
AbstractBopremController
<
CpdBizInfoVo
,
CpdBizAmdInfoVo
>
{
@POST
@Path
(
"/bopRemMapping"
)
public
ResponseSet
<
Boprem
>
bopGatMapping
(
@RequestBody
Boprem
<
CpdBizInfoVo
,
CpdBizAmdInfoVo
>
boprem
)
{
return
super
.
mappingBopgatData
(
boprem
);
}
}
\ No newline at end of file
isc-funds-business/src/main/java/com/brilliance/common/controller/CpdCfabopController.java
deleted
100644 → 0
View file @
7c5e4eff
package
com
.
brilliance
.
common
.
controller
;
import
com.brilliance.isc.bo.model.Cfabop
;
import
com.brilliance.isc.common.bopset.controller.AbstractCfabopController
;
import
com.brilliance.isc.vo.ResponseSet
;
import
com.brilliance.isc.vo.remit.CpdBizAmdInfoVo
;
import
com.brilliance.isc.vo.remit.CpdBizInfoVo
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.stereotype.Component
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
javax.ws.rs.Consumes
;
import
javax.ws.rs.POST
;
import
javax.ws.rs.Path
;
import
javax.ws.rs.Produces
;
@Slf4j
@Component
@Consumes
(
"application/json"
)
@Produces
(
"application/json"
)
@Path
(
"/cpd"
)
public
class
CpdCfabopController
extends
AbstractCfabopController
<
CpdBizInfoVo
,
CpdBizAmdInfoVo
>
{
/**
* 资本项目报送数据试算
* @param cfabop
* @return
*/
@POST
@Path
(
"/calcCfabop"
)
public
ResponseSet
<
Cfabop
>
calCfabop
(
@RequestBody
Cfabop
<
CpdBizInfoVo
,
CpdBizAmdInfoVo
>
cfabop
)
{
return
super
.
calCfabopData
(
cfabop
);
}
}
isc-funds-business/src/main/java/com/brilliance/common/controller/CpdRmbController.java
deleted
100644 → 0
View file @
7c5e4eff
package
com
.
brilliance
.
common
.
controller
;
import
com.brilliance.isc.common.bop.controller.AbstractRmbController
;
import
com.brilliance.isc.common.rmbbop.vo.RmbbopRequest
;
import
com.brilliance.isc.common.rmbbop.vo.RmbbopResponse
;
import
com.brilliance.isc.vo.ResponseSet
;
import
com.brilliance.isc.vo.remit.CpdBizAmdInfoVo
;
import
com.brilliance.isc.vo.remit.CpdBizInfoVo
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.stereotype.Component
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
javax.ws.rs.Consumes
;
import
javax.ws.rs.POST
;
import
javax.ws.rs.Path
;
import
javax.ws.rs.Produces
;
@Slf4j
@Component
@Consumes
(
"application/json"
)
@Produces
(
"application/json"
)
@Path
(
"/cpd"
)
public
class
CpdRmbController
extends
AbstractRmbController
<
CpdBizInfoVo
,
CpdBizAmdInfoVo
>
{
@POST
@Path
(
"/calcRmbbop"
)
public
ResponseSet
<
RmbbopResponse
>
calcRmbbop
(
@RequestBody
RmbbopRequest
<
CpdBizInfoVo
,
CpdBizAmdInfoVo
>
rmbbopRequest
)
{
return
super
.
calcRmbbop
(
rmbbopRequest
);
}
}
isc-funds-business/src/main/java/com/brilliance/common/controller/TxmController.java
deleted
100644 → 0
View file @
7c5e4eff
package
com
.
brilliance
.
common
.
controller
;
import
com.brilliance.mda.runtime.mda.util.MdaUtils
;
import
com.brilliance.isc.bo.Txm
;
import
com.brilliance.isc.mda.dao.TxmMapper
;
import
com.brilliance.isc.vo.ResponseSet
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Component
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
javax.ws.rs.Consumes
;
import
javax.ws.rs.POST
;
import
javax.ws.rs.Path
;
import
javax.ws.rs.Produces
;
import
java.util.List
;
import
java.util.Map
;
@Component
@Consumes
(
"application/json"
)
@Produces
(
"application/json"
)
@Path
(
"/txm"
)
public
class
TxmController
{
@Autowired
private
TxmMapper
txmMapper
;
@POST
@Path
(
"/getTxmBlock"
)
public
ResponseSet
getTxmBlock
(
@RequestBody
Map
<
String
,
Object
>
map
)
{
String
extkey
=
map
.
get
(
"extkey"
).
toString
();
String
trnname
=
map
.
get
(
"trnname"
).
toString
();
String
uil
=
map
.
get
(
"uil"
).
toString
();
if
(
"CPTOPN"
.
equalsIgnoreCase
(
trnname
))
{
extkey
=
extkey
+
"acc"
;
List
<
Txm
>
txms
=
txmMapper
.
selectByExtkeyAndUil
(
extkey
,
uil
);
for
(
int
i
=
0
;
i
<
txms
.
size
();
i
++){
if
(
MdaUtils
.
compareTo
(
txms
.
get
(
i
).
getUil
(),
"CN"
)==
0
){
txms
.
get
(
i
).
setUil
(
"Chinese"
);
}
else
{
txms
.
get
(
i
).
setUil
(
"English"
);
}
}
return
ResponseSet
.
simpleSuccess
(
txms
);
}
else
{
// special process
extkey
=
specialProcessForExtkey
(
extkey
);
List
<
Txm
>
txmList
=
txmMapper
.
selectByExtkeyAndUil
(
extkey
,
"EN"
);
for
(
int
i
=
0
;
i
<
txmList
.
size
();
i
++){
if
(
MdaUtils
.
compareTo
(
txmList
.
get
(
i
).
getUil
(),
"CN"
)==
0
){
txmList
.
get
(
i
).
setUil
(
"Chinese"
);
}
else
{
txmList
.
get
(
i
).
setUil
(
"English"
);
}
}
return
ResponseSet
.
simpleSuccess
(
txmList
);
}
}
/**
* special process for extkey<br>
* eg. :it seems that extkey must be 6 length, dftat need complement with "t"?
*
* @param extkey
* @return
*/
private
String
specialProcessForExtkey
(
String
extkey
)
{
// draft at
if
(
extkey
.
equalsIgnoreCase
(
"dftat."
)){
extkey
=
"dftatt."
;
}
// Details of Charges
if
(
extkey
.
equalsIgnoreCase
(
"feetxt."
)){
extkey
=
"charia."
;
}
// Settlement Instructions for this Document Set, in Litdck Docpre界面
if
(
extkey
.
equalsIgnoreCase
(
"setinsbr."
))
{
extkey
=
"setins."
;
}
// Settlement Instructions for this Document Set, in LETDRV Disins界面
if
(
extkey
.
equalsIgnoreCase
(
"setinsbe."
))
{
extkey
=
"payins."
;
}
// Payment instructions to ISS/AVB, in betrcl rclp界面
if
(
extkey
.
equalsIgnoreCase
(
"payinstxt."
))
{
extkey
=
"payins."
;
}
// brtudp.tag72add
if
(
extkey
.
equalsIgnoreCase
(
"tag72add."
))
{
extkey
=
"acctag."
;
}
return
extkey
;
}
}
isc-funds-business/src/main/java/com/brilliance/common/service/CpdBopctyService.java
deleted
100644 → 0
View file @
7c5e4eff
package
com
.
brilliance
.
common
.
service
;
import
com.brilliance.isc.bo.Bopcty
;
import
com.brilliance.isc.mda.dao.BopctyMapper
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
@Service
public
class
CpdBopctyService
{
@Autowired
private
BopctyMapper
bopctyMapper
;
public
List
<
Bopcty
>
loadBopctyList
()
{
return
bopctyMapper
.
listAll
();
}
public
List
<
Bopcty
>
queryByCod
(
String
cod
){
return
bopctyMapper
.
listByCod
(
cod
);
}
}
isc-funds-business/src/main/java/com/brilliance/isc/basesel/cptsel/resource/FxtselController.java
deleted
100644 → 0
View file @
7c5e4eff
package
com
.
brilliance
.
isc
.
basesel
.
cptsel
.
resource
;
import
com.brilliance.isc.basesel.cptsel.service.FxtselService
;
import
com.brilliance.isc.basesel.trncod.service.TrncodService
;
import
com.brilliance.isc.vo.ResponseSet
;
import
com.brilliance.isc.vo.TrnCodeQueryVo
;
import
com.brilliance.isc.vo.funds.FxtselQueryVo
;
import
org.springframework.stereotype.Component
;
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
;
import
javax.ws.rs.Consumes
;
import
javax.ws.rs.POST
;
import
javax.ws.rs.Path
;
import
javax.ws.rs.Produces
;
import
java.util.Map
;
@RestController
@RequestMapping
(
"/fxtsel"
)
public
class
FxtselController
{
@Resource
private
FxtselService
fxtselService
;
@Resource
private
TrncodService
trncodService
;
/**
* 汇款页签查询
* @param cptselQueryVo
* @return
*/
@RequestMapping
(
"/listfxd"
)
public
ResponseSet
list
(
@RequestBody
FxtselQueryVo
cptselQueryVo
)
{
return
ResponseSet
.
simpleSuccess
(
fxtselService
.
list
(
cptselQueryVo
));
}
/**
* 处理按钮查看能够进行的交易
*/
@RequestMapping
(
"/dealWithByInr"
)
public
ResponseSet
dealWithByInr
(
@RequestBody
TrnCodeQueryVo
trnCodeQueryVo
)
{
return
ResponseSet
.
simpleSuccess
(
trncodService
.
dealWithByInr
(
trnCodeQueryVo
));
}
/**
* 详情页面初始化
*/
@RequestMapping
(
"/selectXxdByPrimaryKey"
)
public
ResponseSet
selectXxdByPrimaryKey
(
Map
<
String
,
String
>
map
){
return
ResponseSet
.
simpleSuccess
(
trncodService
.
selectXxdByPrimaryKey
(
map
));
}
}
isc-funds-business/src/main/java/com/brilliance/isc/basesel/fttsel/resource/FttselController.java
0 → 100644
View file @
94ea56e9
package
com
.
brilliance
.
isc
.
basesel
.
fttsel
.
resource
;
import
com.brilliance.isc.basesel.fttsel.service.FttselService
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
javax.annotation.Resource
;
@RestController
@RequestMapping
(
"/fxtsel"
)
public
class
FttselController
{
@Resource
private
FttselService
fxtselService
;
// @Resource
// private TrncodService trncodService;
/**
* 汇款页签查询
* @param cptselQueryVo
* @return
*/
// @RequestMapping("/listfxd")
// public ResponseSet list(@RequestBody FxtselVo cptselQueryVo) {
// return ResponseSet.simpleSuccess(fxtselService.list(cptselQueryVo));
// }
/**
* 处理按钮查看能够进行的交易
*/
// @RequestMapping("/dealWithByInr")
// public ResponseSet dealWithByInr(@RequestBody TrnCodeQueryVo trnCodeQueryVo) {
// return ResponseSet.simpleSuccess(trncodService.dealWithByInr(trnCodeQueryVo));
// }
/**
* 详情页面初始化
*/
// @RequestMapping("/selectXxdByPrimaryKey")
// public ResponseSet selectXxdByPrimaryKey(Map<String,String> map){
// return ResponseSet.simpleSuccess(trncodService.selectXxdByPrimaryKey(map));
// }
}
isc-funds-business/src/main/java/com/brilliance/isc/basesel/
cptsel/service/Fx
tselService.java
→
isc-funds-business/src/main/java/com/brilliance/isc/basesel/
fttsel/service/Ft
tselService.java
View file @
94ea56e9
package
com
.
brilliance
.
isc
.
basesel
.
cp
tsel
.
service
;
package
com
.
brilliance
.
isc
.
basesel
.
ft
tsel
.
service
;
import
com.brilliance.isc.vo.TrnCodeQueryVo
;
import
com.brilliance.isc.vo.TrncodVo
;
import
com.brilliance.isc.vo.funds.FxtselQueryVo
;
import
com.brilliance.isc.vo.remit.CptselQueryVo
;
import
com.brilliance.isc.funds.vo.FxdVo
;
import
com.github.pagehelper.PageInfo
;
import
java.util.List
;
public
interface
F
x
tselService
{
PageInfo
list
(
Fx
tselQuery
Vo
cptselQueryVo
);
public
interface
F
t
tselService
{
PageInfo
list
(
Fx
d
Vo
cptselQueryVo
);
List
<
TrncodVo
>
dealWithByInr
(
TrnCodeQueryVo
trnCodeQueryVo
);
}
isc-funds-business/src/main/java/com/brilliance/isc/basesel/
cptsel/service/impl/Fx
tselServiceImpl.java
→
isc-funds-business/src/main/java/com/brilliance/isc/basesel/
fttsel/service/impl/Ft
tselServiceImpl.java
View file @
94ea56e9
package
com
.
brilliance
.
isc
.
basesel
.
cp
tsel
.
service
.
impl
;
package
com
.
brilliance
.
isc
.
basesel
.
ft
tsel
.
service
.
impl
;
import
com.brilliance.isc.vo.funds.FxtselQueryVo
;
import
com.brilliance.mda.runtime.mda.util.MdaUtils
;
import
com.brilliance.isc.basesel.cptsel.service.FxtselService
;
import
com.brilliance.isc.bo.Bch
;
import
com.brilliance.isc.basesel.fttsel.service.FttselService
;
import
com.brilliance.isc.bo.Busbtn
;
import
com.brilliance.isc.common.api.bch.service.BchService
;
import
com.brilliance.isc.common.context.SettleContext
;
import
com.brilliance.isc.common.util.SettleExceptionUtils
;
import
com.brilliance.isc.mda.dao.BusbtnMapper
;
import
com.brilliance.isc.mda.dao.CpdMapper
;
import
com.brilliance.isc.vo.TrnCodeQueryVo
;
import
com.brilliance.isc.vo.TrncodVo
;
import
com.brilliance.isc.vo.remit.CpdWithPtsCbbResponseVo
;
import
com.brilliance.isc.vo.remit.CptselQueryVo
;
import
com.github.pagehelper.PageHelper
;
import
com.brilliance.isc.funds.vo.FxdVo
;
import
com.github.pagehelper.PageInfo
;
import
com.google.common.collect.Lists
;
import
org.mapstruct.ap.internal.util.Strings
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
import
java.util.List
;
import
java.util.Objects
;
@Service
public
class
F
xtselServiceImpl
implements
Fx
tselService
{
public
class
F
ttselServiceImpl
implements
Ft
tselService
{
@Resource
private
BchService
bchService
;
@Resource
...
...
@@ -34,7 +25,7 @@ public class FxtselServiceImpl implements FxtselService {
private
BusbtnMapper
busbtnMapper
;
@Override
public
PageInfo
list
(
Fx
tselQueryVo
fxtselQuery
Vo
)
{
public
PageInfo
list
(
Fx
dVo
fxd
Vo
)
{
// String branch = fxtselQueryVo.getBranch();
// if (Strings.isEmpty(branch)) {
// branch = SettleContext.getSessionUserVo().getOwnOrgDepartmentNumber();
...
...
@@ -62,6 +53,8 @@ public class FxtselServiceImpl implements FxtselService {
// }
// }
// return new PageInfo(cpdList);
return
new
PageInfo
();
}
@Override
...
...
isc-funds-business/src/main/java/com/brilliance/isc/basesel/fxtsel/resource/FxdselController.java
0 → 100644
View file @
94ea56e9
package
com
.
brilliance
.
isc
.
basesel
.
fxtsel
.
resource
;
import
com.brilliance.isc.basesel.fxtsel.service.FxdselService
;
import
com.brilliance.isc.vo.ResponseSet
;
import
com.brilliance.isc.funds.vo.FxdVo
;
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
;
@RestController
@RequestMapping
(
"/fxdsel"
)
public
class
FxdselController
{
@Resource
private
FxdselService
fxdselService
;
@RequestMapping
(
"/query"
)
public
ResponseSet
list
(
@RequestBody
FxdVo
vo
)
{
return
ResponseSet
.
simpleSuccess
(
fxdselService
.
query
(
vo
));
}
/**
* 处理按钮查看能够进行的交易
*
*/
/**
* 详情页面初始化
*/
}
isc-funds-business/src/main/java/com/brilliance/isc/basesel/fxtsel/service/FxdselService.java
0 → 100644
View file @
94ea56e9
package
com
.
brilliance
.
isc
.
basesel
.
fxtsel
.
service
;
import
com.brilliance.isc.funds.bo.Fxd
;
import
com.brilliance.isc.funds.vo.FxdVo
;
import
com.github.pagehelper.PageInfo
;
public
interface
FxdselService
{
PageInfo
<
Fxd
>
query
(
FxdVo
fxdVo
);
}
isc-funds-business/src/main/java/com/brilliance/isc/basesel/fxtsel/service/impl/FxdselServiceImpl.java
0 → 100644
View file @
94ea56e9
package
com
.
brilliance
.
isc
.
basesel
.
fxtsel
.
service
.
impl
;
import
com.brilliance.isc.funds.bo.Fxd
;
import
com.brilliance.isc.mda.dao.FxdselMapper
;
import
com.brilliance.isc.funds.vo.FxdVo
;
import
com.brilliance.isc.basesel.fxtsel.service.FxdselService
;
import
com.github.pagehelper.PageHelper
;
import
com.github.pagehelper.PageInfo
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
javax.annotation.Resource
;
import
java.util.ArrayList
;
import
java.util.List
;
@Service
public
class
FxdselServiceImpl
implements
FxdselService
{
@Resource
private
FxdselMapper
fxdselMapper
;
@Override
public
PageInfo
<
Fxd
>
query
(
FxdVo
vo
)
{
PageHelper
.
startPage
(
vo
.
getPageNo
(),
vo
.
getPageSize
(),
null
).
setReasonable
(
true
);
List
<
Fxd
>
result
=
fxdselMapper
.
query
(
vo
);
return
new
PageInfo
<>(
result
);
// String branch = fxtselQueryVo.getBranch();
// if (Strings.isEmpty(branch)) {
// branch = SettleContext.getSessionUserVo().getOwnOrgDepartmentNumber();
// }
// Bch bch = bchService.getDirectAccBch(branch); //获取到当前登录柜员的记账机构
// if (Objects.isNull(bch) && !Objects.equals(branch, "1000")) {//非总行机构一定会获取到记账机构,如果没获取到则抛出异常
// SettleExceptionUtils.sysDump("未获取到机构信息!");
// }
// if(!Objects.isNull(bch)){
// fxtselQueryVo.setBchinr(bch.getInr());
// //查询归属机构集合
// List<Bch> bchList = bchService.listAllChildSubBchByAccBch(bch.getBranch());
// if (bchList != null) {
// fxtselQueryVo.setBchLst(bchList);
// }
// }
// PageHelper.startPage(fxtselQueryVo.getPageNumber(), fxtselQueryVo.getPageSize()).setReasonable(true);
// List<CpdWithPtsCbbResponseVo> cpdList = cpdMapper.queryCpd(fxtselQueryVo);
// for (CpdWithPtsCbbResponseVo cpd:cpdList) {
// if(!MdaUtils.isEmpty(cpd.getPyeExtkey())) {
// cpd.setPyeExtkey(cpd.getPyeExtkey().split("-")[0]);
// }
// if(!MdaUtils.isEmpty(cpd.getOrcExtkey())) {
// cpd.setOrcExtkey(cpd.getOrcExtkey().split("-")[0]);
// }
// }
// return new PageInfo(cpdList);
}
}
isc-funds-business/src/main/java/com/brilliance/isc/basesel/trncod/consts/ErrorPrompt.java
deleted
100644 → 0
View file @
7c5e4eff
package
com
.
brilliance
.
isc
.
basesel
.
trncod
.
consts
;
public
class
ErrorPrompt
{
public
final
static
String
ErrSelN
=
"No Clean Payment selected\n"
;
public
final
static
String
ErrClsY
=
"Selected Clean Payment is closed\n"
;
public
final
static
String
ErrClsN
=
"Selected Clean Payment is not closed\n"
;
public
final
static
String
ErrOpnN
=
"Selected Clean Payment is not yet opened\n"
;
public
final
static
String
ErrOpnY
=
"Selected Clean Payment is already opened\n"
;
public
final
static
String
ErropnI
=
"Selected incoming Payment is already opened\n"
;
public
final
static
String
ErropnO
=
"Selected Outgoing Payment is already opened\n"
;
}
isc-funds-business/src/main/java/com/brilliance/isc/basesel/trncod/service/TrncodService.java
deleted
100644 → 0
View file @
7c5e4eff
package
com
.
brilliance
.
isc
.
basesel
.
trncod
.
service
;
import
com.brilliance.isc.bo.model.*
;
import
com.brilliance.isc.common.authority.ITrnCodService
;
import
com.brilliance.isc.vo.TrnCodeQueryVo
;
import
com.brilliance.isc.vo.TrncodVo
;
import
java.util.List
;
import
java.util.Map
;
public
interface
TrncodService
extends
ITrnCodService
{
String
isCPTrnAllowed
(
Cpdgrp
cpdgrp
,
String
trnNam
);
List
<
TrncodVo
>
dealWithByInr
(
TrnCodeQueryVo
trnCodeQueryVo
);
Object
selectXxdByPrimaryKey
(
Map
<
String
,
String
>
map
);
}
isc-funds-business/src/main/java/com/brilliance/isc/basesel/trncod/service/impl/TrncodServiceImpl.java
deleted
100644 → 0
View file @
7c5e4eff
package
com
.
brilliance
.
isc
.
basesel
.
trncod
.
service
.
impl
;
import
com.brilliance.mda.runtime.mda.util.MdaUtils
;
import
com.brilliance.isc.basesel.trncod.consts.ErrorPrompt
;
import
com.brilliance.isc.basesel.trncod.service.TrncodService
;
import
com.brilliance.isc.bo.Busbtn
;
import
com.brilliance.isc.bo.Trn
;
import
com.brilliance.isc.bo.model.*
;
import
com.brilliance.isc.bo.remit.CptadvStoreBo
;
import
com.brilliance.isc.bo.remit.CptopnStoreBo
;
import
com.brilliance.isc.common.component.CpToolComponent
;
import
com.brilliance.isc.common.sysmod.SysmodService
;
import
com.brilliance.isc.mda.dao.*
;
import
com.brilliance.isc.vo.TrnCodeQueryVo
;
import
com.brilliance.isc.vo.TrncodVo
;
import
com.google.common.collect.Lists
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
import
java.util.*
;
@Service
public
class
TrncodServiceImpl
implements
TrncodService
{
@Resource
private
BusbtnMapper
busbtnMapper
;
@Resource
private
TrncodService
trncodService
;
@Resource
private
CpToolComponent
cpToolComponent
;
@Resource
private
TrnMapper
trnMapper
;
@Resource
private
SysmodService
sysmodService
;
@Override
public
String
isCPTrnAllowed
(
Cpdgrp
cpdgrp
,
String
trnNam
)
{
cpdgrp
.
reset
();
trnNam
=
trnNam
.
toUpperCase
();
String
errMsg
=
""
;
switch
(
trnNam
){
case
"CPTADV"
:
if
(
MdaUtils
.
isEmpty
(
cpdgrp
.
getRec
().
getInr
())){
errMsg
+=
ErrorPrompt
.
ErrSelN
;
}
else
{
if
(!
MdaUtils
.
isEmpty
(
cpdgrp
.
getRec
().
getClsdat
())){
errMsg
+=
ErrorPrompt
.
ErrClsY
;
}
if
(
MdaUtils
.
isEmpty
(
cpdgrp
.
getRec
().
getOpndat
())){
errMsg
+=
ErrorPrompt
.
ErrOpnN
;
}
if
(!
MdaUtils
.
equals
(
cpdgrp
.
getRec
().
getAccmod
(),
"2"
)){
errMsg
+=
"业务未挂账!\n"
;
}
}
break
;
case
"CPTCAN"
:
if
(
MdaUtils
.
isEmpty
(
cpdgrp
.
getRec
().
getInr
())){
errMsg
+=
ErrorPrompt
.
ErrSelN
;
}
else
{
if
(!
MdaUtils
.
isEmpty
(
cpdgrp
.
getRec
().
getClsdat
()))
{
errMsg
+=
ErrorPrompt
.
ErrClsY
;
}
}
break
;
case
"CPTROP"
:
if
(
MdaUtils
.
isEmpty
(
cpdgrp
.
getRec
().
getInr
())){
errMsg
+=
ErrorPrompt
.
ErrSelN
;
}
else
{
if
(
MdaUtils
.
isEmpty
(
cpdgrp
.
getRec
().
getClsdat
()))
{
errMsg
+=
ErrorPrompt
.
ErrClsN
;
}
}
break
;
case
"CPTFEE"
:
case
"CPTFRE"
:
case
"CPTATT"
:
case
"JSTOPN"
:
if
(
MdaUtils
.
isEmpty
(
cpdgrp
.
getRec
().
getInr
())){
errMsg
+=
ErrorPrompt
.
ErrSelN
;
}
break
;
default
:
errMsg
+=
""
;
break
;
}
return
errMsg
;
}
@Override
public
List
<
TrncodVo
>
dealWithByInr
(
TrnCodeQueryVo
trnCodeQueryVo
)
{
List
<
TrncodVo
>
result
=
Lists
.
newArrayList
();
//获取模型数据
Cpdgrp
cpdgrp
=
cpToolComponent
.
getCpdgrpByInr
(
trnCodeQueryVo
.
getInr
());
List
<
Busbtn
>
busbtnList
=
busbtnMapper
.
selectByBustypAndIsShow
(
trnCodeQueryVo
.
getType
());
String
disResult
=
""
;
for
(
int
i
=
0
;
i
<
busbtnList
.
size
();
i
++)
{
//按钮亮灰显逻辑
disResult
=
trncodService
.
isCPTrnAllowed
(
cpdgrp
,
busbtnList
.
get
(
i
).
getInifrm
());
TrncodVo
trncodVo
=
new
TrncodVo
(
busbtnList
.
get
(
i
).
getInifrm
(),
busbtnList
.
get
(
i
).
getBtnnam
(),
MdaUtils
.
isEmpty
(
disResult
)
?
"Y"
:
"N"
,
busbtnList
.
get
(
i
).
getIsMain
(),
disResult
);
result
.
add
(
trncodVo
);
}
return
result
;
}
@Override
public
Object
selectXxdByPrimaryKey
(
Map
<
String
,
String
>
map
)
{
String
objinr
=
map
.
get
(
"objinr"
);
String
objtyp
=
map
.
get
(
"objtyp"
);
String
pntinr
=
map
.
get
(
"pntinr"
);
String
paytyp
=
map
.
get
(
"paytyp"
);
switch
(
paytyp
)
{
case
"I"
:
CptadvStoreBo
cptadvStoreBo
=
new
CptadvStoreBo
();
cptadvStoreBo
.
reset
();
if
(
objinr
.
length
()
==
16
)
{
Trn
trnCpdI
=
trnMapper
.
selectByObjinrTrn
(
objtyp
,
objinr
,
"CPTADV"
);
if
(!
Objects
.
isNull
(
trnCpdI
))
{
cptadvStoreBo
=
sysmodService
.
streamGetNameInSubDir
(
CptadvStoreBo
.
class
,
trnCpdI
.
getInr
());
}
}
cptadvStoreBo
.
setCpdgrp
(
cpToolComponent
.
getCpdgrpByInr
(
objinr
));
return
cptadvStoreBo
;
case
"O"
:
CptopnStoreBo
cptopnStoreBo
=
new
CptopnStoreBo
();
cptopnStoreBo
.
reset
();
if
(
objinr
.
length
()
==
16
)
{
Trn
trnCpdO
=
trnMapper
.
selectByObjinrTrn
(
objtyp
,
objinr
,
"CPTOPN"
);
if
(!
Objects
.
isNull
(
trnCpdO
))
{
cptopnStoreBo
=
sysmodService
.
streamGetNameInSubDir
(
CptopnStoreBo
.
class
,
trnCpdO
.
getInr
());
}
}
cptopnStoreBo
.
setCpdgrp
(
cpToolComponent
.
getCpdgrpByInr
(
objinr
));
return
cptopnStoreBo
;
}
return
null
;
}
}
isc-funds-business/src/main/java/com/brilliance/isc/mda/dao/FxdselMapper.java
0 → 100644
View file @
94ea56e9
package
com
.
brilliance
.
isc
.
mda
.
dao
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.brilliance.isc.funds.bo.Fxd
;
import
com.brilliance.isc.funds.vo.FxdVo
;
import
org.apache.ibatis.annotations.Mapper
;
import
java.util.List
;
@Mapper
public
interface
FxdselMapper
extends
BaseMapper
<
Fxd
>
{
List
<
Fxd
>
query
(
FxdVo
vo
);
//String findInrByRcvbic(String cod);
}
isc-funds-entity/src/main/java/com/brilliance/isc/funds/bo/Fxd.java
0 → 100644
View file @
94ea56e9
package
com
.
brilliance
.
isc
.
funds
.
bo
;
import
com.brilliance.mda.runtime.mda.util.Decimals
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.fasterxml.jackson.annotation.JsonIgnoreProperties
;
import
lombok.Getter
;
import
lombok.Setter
;
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
;
/**
* TABLE:fxd:
*/
@JsonIgnoreProperties
(
ignoreUnknown
=
true
)
@Getter
@Setter
public
class
Fxd
{
//Internal Unique ID of Import L/C
//@TDSetter(max=8)
private
String
inr
=
NULLSTR
;
//Reference
//@TDSetter(max=16)
private
String
ownref
=
NULLSTR
;
//Externally Displayed Name to Identify the Contract
//@TDSetter(max=40)
private
String
nam
=
NULLSTR
;
//Date Foreign Exchange Opened/Issued
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
,
timezone
=
"GMT+8"
)
// @TDSetter
private
Date
opndat
=
NULLDATE
;
//Responsible User
// @TDSetter(max=8)
private
String
ownusr
=
NULLSTR
;
//Foreign Exchange Type
// @TDSetter(max=2)
private
String
fxtyp
=
NULLSTR
;
//Rate
// @TDSetter(scale=6)
private
BigDecimal
rat
=
Decimals
.
ZERO_SCALE6
;
//Middle Rate
// @TDSetter(scale=6)
private
BigDecimal
midrat
=
Decimals
.
ZERO_SCALE6
;
//Quote Reference
// @TDSetter(max=16)
private
String
quoref
=
NULLSTR
;
//Fund Department Reference
// @TDSetter(max=16)
private
String
fudref
=
NULLSTR
;
//Value date
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
,
timezone
=
"GMT+8"
)
// @TDSetter
private
Date
valdat
=
NULLDATE
;
//Date of confirmation
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
,
timezone
=
"GMT+8"
)
// @TDSetter
private
Date
cnfdat
=
NULLDATE
;
//Settlement Date
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
,
timezone
=
"GMT+8"
)
// @TDSetter
private
Date
setdat
=
NULLDATE
;
//Settlemt date from
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
,
timezone
=
"GMT+8"
)
// @TDSetter
private
Date
setdatfrm
=
NULLDATE
;
//Settlement date to
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
,
timezone
=
"GMT+8"
)
// @TDSetter
private
Date
setdatto
=
NULLDATE
;
//Date of Closed
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
,
timezone
=
"GMT+8"
)
//@TDSetter
private
Date
clsdat
=
NULLDATE
;
//Version
// @TDSetter(max=4)
private
String
ver
=
NULLSTR
;
//Branch INR
// @TDSetter(max=8)
private
String
branchinr
=
NULLSTR
;
//Branch INR
// @TDSetter(max=8)
private
String
bchkeyinr
=
NULLSTR
;
//TRADE IN
// @TDSetter(max=3)
private
String
trdint
=
NULLSTR
;
//TRADE OUT
// @TDSetter(max=3)
private
String
trdout
=
NULLSTR
;
//交易主体
// @TDSetter(max=2)
private
String
trnman
=
NULLSTR
;
//Foreign Account
// @TDSetter(max=21)
private
String
acc
=
NULLSTR
;
//CNY Account
// @TDSetter(max=21)
private
String
acc2
=
NULLSTR
;
//Clearing Department Responsible User
//@TDSetter(max=8)
private
String
usr
=
NULLSTR
;
//Disposition
// @TDSetter(max=2)
private
String
dsp
=
NULLSTR
;
//Disposition
// @TDSetter(max=2)
private
String
dsp2
=
NULLSTR
;
//Cash cover percent
// @TDSetter(scale=2)
private
BigDecimal
cshpct
=
Decimals
.
ZERO_SCALE2
;
//Rate
//@TDSetter(scale=6)
private
BigDecimal
rat1
=
Decimals
.
ZERO_SCALE6
;
//Account manager
// @TDSetter(max=8)
private
String
accmng
=
NULLSTR
;
//客户经理部门
// @TDSetter(max=8)
private
String
hdbch
=
NULLSTR
;
//Entity KEY of Entry
//@TDSetter(max=8)
private
String
etyextkey
=
NULLSTR
;
}
\ No newline at end of file
isc-funds-entity/src/main/java/com/brilliance/isc/funds/vo/FxdVo.java
0 → 100644
View file @
94ea56e9
package
com
.
brilliance
.
isc
.
funds
.
vo
;
import
com.brilliance.isc.common.vo.PageVo
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.fasterxml.jackson.annotation.JsonIgnoreProperties
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
java.util.Date
;
import
java.math.BigDecimal
;
import
java.util.List
;
/**
* @description:
* @author: hulei
* @create: 2024-09-25 15:10
**/
/**
* TABLE:fxd:
*
* `INR CHAR(8)`:`INR` 字段,字符类型,长度为 8。
* - `OWNREF CHAR(16)`:`OWNREF` 字段,字符类型,长度为 16。
* - `NAM CHAR(40)`:`NAM` 字段,字符类型,长度为 40。
* - `OPNDAT DATE`:`OPNDAT` 字段,日期类型。
* - `OWNUSR CHAR(8)`:`OWNUSR` 字段,字符类型,长度为 8。
* - `FXTYP CHAR(2)`:`FXTYP` 字段,字符类型,长度为 2。
* - `RAT NUMERIC(12,6)`:`RAT` 字段,数值类型,总共 12 位,小数点后 6 位。
* - `MIDRAT NUMERIC(12,6)`:`MIDRAT` 字段,数值类型,总共 12 位,小数点后 6 位。
* - `QUOREF CHAR(16)`:`QUOREF` 字段,字符类型,长度为 16。
* - `FUDREF CHAR(16)`:`FUDREF` 字段,字符类型,长度为 16。
* - `VALDAT DATE`:`VALDAT` 字段,日期类型。
* - `CNFDAT DATE`:`CNFDAT` 字段,日期类型。
* - `SETDAT DATE`:`SETDAT` 字段,日期类型。
* - `SETDATFRM DATE`:`SETDATFRM` 字段,日期类型。
* - `SETDATTO DATE`:`SETDATTO` 字段,日期类型。
* - `CLSDAT DATE`:`CLSDAT` 字段,日期类型。
* - `VER CHAR(4)`:`VER` 字段,字符类型,长度为 4。
* - `BRANCHINR CHAR(8)`:`BRANCHINR` 字段,字符类型,长度为 8。
* - `BCHKEYINR CHAR(8)`:`BCHKEYINR` 字段,字符类型,长度为 8。
* - `TRDINT CHAR(3)`:`TRDINT` 字段,字符类型,长度为 3。
* - `TRDOUT CHAR(3)`:`TRDOUT` 字段,字符类型,长度为 3。
* - `TRNMAN CHAR(2)`:`TRNMAN` 字段,字符类型,长度为 2。
* - `ACC CHAR(21)`:`ACC` 字段,字符类型,长度为 21。
* - `ACC2 CHAR(21)`:`ACC2` 字段,字符类型,长度为 21。
* - `USR CHAR(8)`:`USR` 字段,字符类型,长度为 8。
* - `DSP CHAR(2)`:`DSP` 字段,字符类型,长度为 2。
* - `DSP2 CHAR(2)`:`DSP2` 字段,字符类型,长度为 2。
* - `CSHPCT NUMERIC(5,2)`:`CSHPCT` 字段,数值类型,总共 5 位,小数点后 2 位。
* - `RAT1 NUMERIC(12,6)`:`RAT1` 字段,数值类型,总共 12 位,小数点后 6 位。
* - `ACCMNG CHAR(8)`:`ACCMNG` 字段,字符类型,长度为 8。
* - `HDBCH CHAR(8)`:`HDBCH` 字段,字符类型,长度为 8。
* - `ETYEXTKEY CHAR(8)`:`ETYEXTKEY` 字段,字符类型,长度为 8。
*
* ownref: "", // 业务编号 .infcon.seaownref
* nam: "", // 参与方名称Name .infcon.nam
* fxtyp, //平盘类型
* trdint, //结售汇类型
* fudref, //资金部编号
* //searef:"", // 参与方参考号 .infcon.searef
* //seapty:"", // 参与方名称/BIC .infcon.seapty
* opndatfrom: "", // 成交有效日期自 .infcon.opndatfrom
* opndatto: "", // Open Date to .infcon.opndatto
* seacur: "", // 币种 .infcon.seacur
* seaamtfr: "", // 金额自 .infcon.seaamtfr
* seaamtto: "", // Amount to .infcon.seaamtto
* //trnman, //交易主体
* acc, //外币结算账号
* acc2, //本币结算账号
* ownusr, //资金部经办人
* usr, //营运部经办人
*/
@Data
@NoArgsConstructor
@JsonIgnoreProperties
(
ignoreUnknown
=
true
)
public
class
FxdVo
extends
PageVo
{
/**
* 汇款主表唯一编号
*/
// private String inr;
/**
* 汇款业务编号
*/
private
String
seaownref
;
/**
* 客户号/名称
*/
private
String
nam
;
/**
* 机构编号
*/
private
String
bchkeyinr
;
/**
* 机构编码
*/
private
String
branchinr
;
/**
* 汇款开始日期
*/
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
,
timezone
=
"GMT+8"
)
private
Date
opndatfrom
;
/**
* 汇款截止日期
*/
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
,
timezone
=
"GMT+8"
)
private
Date
opndatto
;
// /**
// * 汇款邮路
// */
// private String route;
private
String
fxtyp
;
private
String
trdint
;
private
String
fudref
;
/**
* //币种
*/
private
String
seacur
;
/**
* //金额
*/
private
BigDecimal
seaamt
;
/**
* //金额
*/
private
BigDecimal
seaamtfr
;
/**
* //金额
*/
private
BigDecimal
seaamtto
;
/**
* swift类型
*/
// private String msgtyp;
/**
* 国家代码
*/
// private String countcode;
/**
* 同名划转标志
*/
// private String tsnflg;
/**
* 机构
*/
// private String brainr;
/**
* 柜员
*/
private
String
ownusr
;
private
String
usr
;
/**
* 前端渠道
*/
// private String channel;
/**
* 渠道业务编号
*/
// private String chnref;
/**
* 排序字段
*/
// private String column;
/**
* 正序倒序
*/
// private String order;
}
isc-funds-entity/src/main/java/com/brilliance/isc/vo/funds/FxtselQueryVo.java
deleted
100644 → 0
View file @
7c5e4eff
package
com
.
brilliance
.
isc
.
vo
.
funds
;
import
com.brilliance.isc.bo.Bch
;
import
com.brilliance.isc.common.vo.CommonResult
;
import
java.math.BigDecimal
;
import
java.util.List
;
/**
* @description:
* @author: hulei
* @create: 2024-09-25 15:10
**/
public
class
FxtselQueryVo
extends
CommonResult
{
/**
* 汇款主表唯一编号
*/
private
String
inr
;
/*
汇款业务编号
*/
private
String
seaownref
;
/**
* 机构编号
*/
private
String
bchinr
;
/**
* 机构编码
*/
private
String
branch
;
/**
* 归属机构集合
*/
private
List
<
Bch
>
bchLst
;
/**
* 汇款开始日期
*/
private
String
opndatfrom
;
/**
* 汇款截止日期
*/
private
String
opndatto
;
/**
* 客户号/名称
*/
private
String
searef
;
/**
* 汇款邮路
*/
private
String
route
;
/**
* 汇款类型
*/
private
String
paytyp
;
/**
* 是否闭卷
*/
private
String
isClosed
;
/**
* 业务类型
*/
private
String
pnttyp
;
/**
* 汇款类型
*/
private
String
seapaytyp
;
/**
*单据类型
*/
private
String
seadoctyp
;
/**
* 客户号
*/
private
String
ptyExtkey
;
/**
* 当事人BIC/名称
*/
private
String
seapty
;
/**
* 业务状态
*/
private
String
seasta
;
/**
* //币种
*/
private
String
seacur
;
/**
* //金额
*/
private
BigDecimal
seaamt
;
/**
* //金额
*/
private
BigDecimal
seaamtfr
;
/**
* //金额
*/
private
BigDecimal
seaamtto
;
/**
* swift类型
*/
private
String
msgtyp
;
/**
* 国家代码
*/
private
String
countcode
;
/**
* 同名划转标志
*/
private
String
tsnflg
;
/**
* 机构
*/
private
String
branchinr
;
/**
* 柜员
*/
private
String
ownusr
;
/**
* 前端渠道
*/
private
String
channel
;
/**
* 渠道业务编号
*/
private
String
chnref
;
/**
* 排序字段
*/
private
String
column
;
/**
* 正序倒序
*/
private
String
order
;
}
pom.xml
View file @
94ea56e9
...
...
@@ -6,7 +6,7 @@
<groupId>
com.brilliance.isc
</groupId>
<artifactId>
isc-common-parent
</artifactId>
<version>
3.1.0
</version>
<relativePath>
../isc-common/isc-common-parent/pom.xml
</relativePath
>
<!-- <relativePath>../isc-common/isc-common-parent/pom.xml</relativePath>--
>
</parent>
<artifactId>
isc-funds
</artifactId>
...
...
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