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
ac5b86e2
Commit
ac5b86e2
authored
Oct 24, 2024
by
zhoujunpeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
头寸调拨交易入口修改
parent
c32b23d1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
86 additions
and
17 deletions
+86
-17
FtdselController.java
...e/isc/funds/basesel/ftdsel/resource/FtdselController.java
+17
-4
FtdselService.java
...iance/isc/funds/basesel/ftdsel/service/FtdselService.java
+7
-4
FtdselServiceImpl.java
.../funds/basesel/ftdsel/service/impl/FtdselServiceImpl.java
+51
-7
FttfmtTransactionServiceImpl.java
...sc/funds/fttfmt/service/FttfmtTransactionServiceImpl.java
+3
-1
FttpcnValidator.java
...om/brilliance/isc/funds/fttpcn/check/FttpcnValidator.java
+8
-1
No files found.
isc-funds-business/src/main/java/com/brilliance/isc/funds/basesel/ftdsel/resource/FtdselController.java
View file @
ac5b86e2
package
com
.
brilliance
.
isc
.
funds
.
basesel
.
ftdsel
.
resource
;
package
com
.
brilliance
.
isc
.
funds
.
basesel
.
ftdsel
.
resource
;
import
com.brilliance.isc.bo.FtdVo
;
import
com.brilliance.isc.funds.basesel.ftdsel.service.FtdselService
;
import
com.brilliance.isc.funds.basesel.ftdsel.service.FtdselService
;
import
com.brilliance.isc.funds.basesel.trncod.service.TrncodService
;
import
com.brilliance.isc.funds.basesel.trncod.service.TrncodService
;
import
com.brilliance.isc.vo.ResponseSet
;
import
com.brilliance.isc.vo.ResponseSet
;
import
com.brilliance.isc.vo.TrnCodeQueryVo
;
import
com.brilliance.isc.vo.TrnCodeQueryVo
;
import
com.brilliance.isc.vo.funds.FttselQueryVo
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
com.brilliance.isc.vo.funds.FttselQueryVo
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
import
javax.annotation.Resource
;
import
javax.annotation.Resource
;
...
@@ -24,9 +25,21 @@ public class FtdselController {
...
@@ -24,9 +25,21 @@ public class FtdselController {
@RequestMapping
(
"/query"
)
@RequestMapping
(
"/query"
)
public
ResponseSet
list
(
@RequestBody
FttselQueryVo
vo
)
{
public
ResponseSet
list
(
@RequestBody
FttselQueryVo
vo
)
{
return
ResponseSet
.
simpleSuccess
(
return
ResponseSet
.
simpleSuccess
(
ftdselService
.
query
(
vo
)
ftdselService
.
query
(
vo
)
);
}
@RequestMapping
(
"/querytcdb"
)
public
ResponseSet
querytcdb
(
@RequestBody
FttselQueryVo
vo
)
{
return
ResponseSet
.
simpleSuccess
(
ftdselService
.
querytcdb
(
vo
)
);
);
}
}
@RequestMapping
(
"/queryzjcj"
)
public
ResponseSet
queryzjcj
(
@RequestBody
FttselQueryVo
vo
)
{
return
ResponseSet
.
simpleSuccess
(
ftdselService
.
queryzjcj
(
vo
)
);
}
/**
/**
* 处理按钮查看能够进行的交易
* 处理按钮查看能够进行的交易
*
*
...
@@ -41,7 +54,7 @@ public class FtdselController {
...
@@ -41,7 +54,7 @@ public class FtdselController {
*/
*/
@RequestMapping
(
"/selectXxdByPrimaryKey"
)
@RequestMapping
(
"/selectXxdByPrimaryKey"
)
public
ResponseSet
selectXxdByPrimaryKey
(
@RequestBody
Map
<
String
,
String
>
map
)
{
public
ResponseSet
selectXxdByPrimaryKey
(
@RequestBody
Map
<
String
,
String
>
map
)
{
return
ResponseSet
.
simpleSuccess
(
trncod
Service
.
selectXxdByPrimaryKey
(
map
));
return
ResponseSet
.
simpleSuccess
(
ftdsel
Service
.
selectXxdByPrimaryKey
(
map
));
}
}
...
...
isc-funds-business/src/main/java/com/brilliance/isc/funds/basesel/ftdsel/service/FtdselService.java
View file @
ac5b86e2
package
com
.
brilliance
.
isc
.
funds
.
basesel
.
ftdsel
.
service
;
package
com
.
brilliance
.
isc
.
funds
.
basesel
.
ftdsel
.
service
;
import
com.brilliance.isc.bo.FtdVo
;
import
com.brilliance.isc.vo.funds.FtdWithPtsCbbResponseVo
;
import
com.brilliance.isc.vo.funds.FttselQueryVo
;
import
com.github.pagehelper.PageInfo
;
import
com.brilliance.isc.vo.funds.FtdWithPtsCbbResponseVo
;
import
com.brilliance.isc.vo.funds.FttselQueryVo
;
import
com.github.pagehelper.PageInfo
;
import
java.util.Map
;
public
interface
FtdselService
{
public
interface
FtdselService
{
PageInfo
<
FtdWithPtsCbbResponseVo
>
query
(
FttselQueryVo
ftdVo
);
PageInfo
<
FtdWithPtsCbbResponseVo
>
query
(
FttselQueryVo
ftdVo
);
}
PageInfo
<
FtdWithPtsCbbResponseVo
>
querytcdb
(
FttselQueryVo
vo
);
\ No newline at end of file
PageInfo
<
FtdWithPtsCbbResponseVo
>
queryzjcj
(
FttselQueryVo
vo
);
Object
selectXxdByPrimaryKey
(
Map
<
String
,
String
>
map
);}
\ No newline at end of file
isc-funds-business/src/main/java/com/brilliance/isc/funds/basesel/ftdsel/service/impl/FtdselServiceImpl.java
View file @
ac5b86e2
package
com
.
brilliance
.
isc
.
funds
.
basesel
.
ftdsel
.
service
.
impl
;
package
com
.
brilliance
.
isc
.
funds
.
basesel
.
ftdsel
.
service
.
impl
;
import
com.brilliance.isc.bo.FtdVo
;
import
com.brilliance.isc.bo.FtdVo
;
import
com.brilliance.isc.funds.basesel.ftdsel.service.FtdselService
;
import
com.brilliance.isc.
bo.Trn
;
import
com.brilliance.isc.common.sysmod.SysmodService
;
import
com.brilliance.isc.
funds.basesel.ftdsel.service.FtdselService
;
import
com.brilliance.isc.mda.dao.FtdMapper
;
import
com.brilliance.isc.
funds.bo.funds.FttfcmStoreBo
;
import
com.brilliance.isc.funds.bo.funds.FxtfopStoreBo
;
import
com.brilliance.isc.funds.common.component.FtToolComponent
;
import
com.brilliance.isc.
mda.dao.FtdMapper
;
import
com.brilliance.isc.vo.funds.FtdWithPtsCbbResponseVo
;
import
com.brilliance.isc.vo.funds.FttselQueryVo
;
import
com.github.pagehelper.PageHelper
;
import
com.brilliance.isc.
mda.dao.TrnMapper
;
import
com.brilliance.isc.
vo.funds.FtdWithPtsCbbResponseVo
;
import
com.brilliance.isc.vo.funds.FttselQueryVo
;
import
com.github.pagehelper.PageHelper
;
import
com.github.pagehelper.PageInfo
;
import
com.github.pagehelper.PageInfo
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
import
javax.annotation.Resource
;
import
java.util.
List
;
import
java.util.
ArrayList
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Objects
;
@Service
@Service
public
class
FtdselServiceImpl
implements
FtdselService
{
public
class
FtdselServiceImpl
implements
FtdselService
{
@Resource
@Resource
private
FtdMapper
ftdMapper
;
private
FtdMapper
ftdMapper
;
@Resource
private
TrnMapper
trnMapper
;
@Resource
private
FtToolComponent
ftToolComponent
;
@Resource
private
SysmodService
sysmodService
;
@Override
@Override
public
PageInfo
<
FtdWithPtsCbbResponseVo
>
query
(
FttselQueryVo
vo
)
{
public
PageInfo
<
FtdWithPtsCbbResponseVo
>
query
(
FttselQueryVo
vo
)
{
//搜索
//搜索
PageHelper
.
startPage
(
1
,
vo
.
getPageSize
()
,
null
).
setReasonable
(
true
);
PageHelper
.
startPage
(
1
,
vo
.
getPageSize
()).
setReasonable
(
true
);
List
<
FtdWithPtsCbbResponseVo
>
list
=
ftdMapper
.
queryFtd
(
vo
);
List
<
FtdWithPtsCbbResponseVo
>
list
=
ftdMapper
.
queryFtd
(
vo
);
return
new
PageInfo
<>(
list
);
return
new
PageInfo
<>(
list
);
}
@Override
public
PageInfo
<
FtdWithPtsCbbResponseVo
>
querytcdb
(
FttselQueryVo
vo
)
{
List
<
String
>
fttypList
=
new
ArrayList
<>();
fttypList
.
add
(
"PT"
);
vo
.
setFttypList
(
fttypList
);
PageHelper
.
startPage
(
1
,
vo
.
getPageSize
()).
setReasonable
(
true
);
List
<
FtdWithPtsCbbResponseVo
>
list
=
ftdMapper
.
queryFtd
(
vo
);
return
new
PageInfo
<>(
list
);
}
@Override
public
PageInfo
<
FtdWithPtsCbbResponseVo
>
queryzjcj
(
FttselQueryVo
vo
)
{
List
<
String
>
fttypList
=
new
ArrayList
<>();
fttypList
.
add
(
"LI"
);
fttypList
.
add
(
"LO"
);
fttypList
.
add
(
"DI"
);
fttypList
.
add
(
"DO"
);
vo
.
setFttypList
(
fttypList
);
PageHelper
.
startPage
(
1
,
vo
.
getPageSize
()).
setReasonable
(
true
);
List
<
FtdWithPtsCbbResponseVo
>
list
=
ftdMapper
.
queryFtd
(
vo
);
return
new
PageInfo
<>(
list
);
}
@Override
public
Object
selectXxdByPrimaryKey
(
Map
<
String
,
String
>
map
)
{
String
objinr
=
map
.
get
(
"objinr"
);
String
objtyp
=
map
.
get
(
"objtyp"
);
String
pntinr
=
map
.
get
(
"pntinr"
);
FttfcmStoreBo
fttfcmStoreBo
=
new
FttfcmStoreBo
();
fttfcmStoreBo
.
reset
();
if
(
objinr
.
length
()
==
16
)
{
Trn
trnLid
=
trnMapper
.
selectByObjinrTrn
(
objtyp
,
objinr
,
"FTTFCM"
);
if
(!
Objects
.
isNull
(
trnLid
))
{
fttfcmStoreBo
=
sysmodService
.
streamGetNameInSubDir
(
FttfcmStoreBo
.
class
,
trnLid
.
getInr
());
}
}
fttfcmStoreBo
.
setFtdgrp
(
ftToolComponent
.
getFtdgrpByInr
(
objinr
));
return
fttfcmStoreBo
;
}
// String branch = fxtselQueryVo.getBranch();
// String branch = fxtselQueryVo.getBranch();
// if (Strings.isEmpty(branch)) {
// if (Strings.isEmpty(branch)) {
...
@@ -50,7 +94,7 @@ public class FtdselServiceImpl implements FtdselService {
...
@@ -50,7 +94,7 @@ public class FtdselServiceImpl implements FtdselService {
// }
// }
// return new PageInfo(cpdList);
// return new PageInfo(cpdList);
}
...
...
isc-funds-business/src/main/java/com/brilliance/isc/funds/fttfmt/service/FttfmtTransactionServiceImpl.java
View file @
ac5b86e2
...
@@ -153,7 +153,8 @@ public class FttfmtTransactionServiceImpl extends AbstractTransactionService<Ftt
...
@@ -153,7 +153,8 @@ public class FttfmtTransactionServiceImpl extends AbstractTransactionService<Ftt
Ftdgrp
ftdgrpVo
=
ftToolComponent
.
getFtdgrpByInr
(
ftdinr
);
Ftdgrp
ftdgrpVo
=
ftToolComponent
.
getFtdgrpByInr
(
ftdinr
);
fttfmtStoreBo
.
setFtdgrp
(
ftdgrpVo
);
fttfmtStoreBo
.
setFtdgrp
(
ftdgrpVo
);
fttfmtStoreBo
.
getFtdgrp
().
getRec
().
setRat
(
ftdgrpVo
.
getRec
().
getRat
());
fttfmtStoreBo
.
getFtdgrp
().
getRec
().
setMatdat
(
ftdgrpVo
.
getRec
().
getMatdat
());
init950
(
fttfmtStoreBo
);
init950
(
fttfmtStoreBo
);
init1000
(
fttfmtStoreBo
);
init1000
(
fttfmtStoreBo
);
return
fttfmtStoreBo
;
return
fttfmtStoreBo
;
...
@@ -162,6 +163,7 @@ public class FttfmtTransactionServiceImpl extends AbstractTransactionService<Ftt
...
@@ -162,6 +163,7 @@ public class FttfmtTransactionServiceImpl extends AbstractTransactionService<Ftt
private
void
init950
(
FttfmtStoreBo
fttfmtStoreBo
)
{
private
void
init950
(
FttfmtStoreBo
fttfmtStoreBo
)
{
}
}
private
void
init1000
(
FttfmtStoreBo
fttfmtStoreBo
)
{
private
void
init1000
(
FttfmtStoreBo
fttfmtStoreBo
)
{
...
...
isc-funds-business/src/main/java/com/brilliance/isc/funds/fttpcn/check/FttpcnValidator.java
View file @
ac5b86e2
...
@@ -3,7 +3,7 @@ package com.brilliance.isc.funds.fttpcn.check;
...
@@ -3,7 +3,7 @@ package com.brilliance.isc.funds.fttpcn.check;
import
com.brilliance.isc.common.transaction.newcheck.AbstractModuleValidator
;
import
com.brilliance.isc.common.transaction.newcheck.AbstractModuleValidator
;
import
com.brilliance.isc.funds.bo.funds.FttpcnStoreBo
;
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.isc.
funds.bo.funds.FttpcnStoreBo
;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Component
;
import
javax.annotation.PostConstruct
;
import
javax.annotation.PostConstruct
;
import
java.util.HashMap
;
import
java.util.HashMap
;
...
@@ -26,4 +26,11 @@ public class FttpcnValidator extends AbstractModuleValidator<FttpcnStoreBo>{
...
@@ -26,4 +26,11 @@ public class FttpcnValidator extends AbstractModuleValidator<FttpcnStoreBo>{
maps
.
putAll
(
super
.
validate
(
bo
));
maps
.
putAll
(
super
.
validate
(
bo
));
return
maps
;
return
maps
;
}
}
@Validate
(
path
=
"canamt"
)
public
ValidResult
checkCanamtN1000
(
FttpcnStoreBo
bo
){
if
(
bo
.
getCanamt
().
compareTo
(
bo
.
getFtdgrp
().
getCbs
().
getOpn2
().
getAmt
())>
0
)
{
return
ValidResult
.
build
(
false
,
"实际销账金额不能大于待销账金额!"
);
}
return
null
;
}
}
}
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