Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
dj
/
rpc-financial
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 5ef0d14e
authored
Apr 08, 2026
by
潘诗林
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v5.7.1' of
http://192.168.3.233:8090/dj/rpc-financial
into v5.7.1
2 parents
0899bd6f
3cf7d142
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
7 deletions
rpc-dj-financial/src/main/java/cn/com/glsx/dj/financial/service/QWApprovalService.java
rpc-dj-financial/src/main/java/cn/com/glsx/dj/financial/service/ThirdPartyNiBoBatchStrategy.java
rpc-dj-financial/src/main/java/cn/com/glsx/dj/financial/service/nb/NbCbBatchTransferService.java
rpc-dj-financial/src/test/java/cn/com/glsx/dj/financial/service/QWApprovalServiceTest.java
rpc-dj-financial/src/main/java/cn/com/glsx/dj/financial/service/QWApprovalService.java
View file @
5ef0d14
...
@@ -689,4 +689,13 @@ public class QWApprovalService {
...
@@ -689,4 +689,13 @@ public class QWApprovalService {
public
ApprovalRecords
getBySpNo
(
String
spNo
)
{
public
ApprovalRecords
getBySpNo
(
String
spNo
)
{
return
approvalRecordsMapper
.
getBySpNo
(
spNo
);
return
approvalRecordsMapper
.
getBySpNo
(
spNo
);
}
}
public
ApprovalTemplateConfig
getTemplateConfig
(
String
templateId
)
{
Example
example
=
new
Example
(
ApprovalTemplateConfig
.
class
);
example
.
createCriteria
().
andEqualTo
(
"delFlag"
,
0
)
.
andEqualTo
(
"templateId"
,
templateId
);
List
<
ApprovalTemplateConfig
>
templateConfigs
=
approvalTemplateConfigMapper
.
selectByExample
(
example
);
return
templateConfigs
.
isEmpty
()
?
null
:
templateConfigs
.
get
(
0
);
}
}
}
rpc-dj-financial/src/main/java/cn/com/glsx/dj/financial/service/ThirdPartyNiBoBatchStrategy.java
View file @
5ef0d14
...
@@ -5,7 +5,9 @@ import cn.com.glsx.dj.financial.enums.BatchTransferSourceEnum;
...
@@ -5,7 +5,9 @@ import cn.com.glsx.dj.financial.enums.BatchTransferSourceEnum;
import
cn.com.glsx.dj.financial.enums.QWApprovalOrderStatusEnum
;
import
cn.com.glsx.dj.financial.enums.QWApprovalOrderStatusEnum
;
import
cn.com.glsx.dj.financial.manager.QWManager
;
import
cn.com.glsx.dj.financial.manager.QWManager
;
import
cn.com.glsx.dj.financial.mapper.ApprovalRecordsMapper
;
import
cn.com.glsx.dj.financial.mapper.ApprovalRecordsMapper
;
import
cn.com.glsx.dj.financial.mapper.ApprovalTemplateConfigMapper
;
import
cn.com.glsx.dj.financial.model.ApprovalRecords
;
import
cn.com.glsx.dj.financial.model.ApprovalRecords
;
import
cn.com.glsx.dj.financial.model.ApprovalTemplateConfig
;
import
cn.com.glsx.dj.financial.model.EnterpriseBankAccount
;
import
cn.com.glsx.dj.financial.model.EnterpriseBankAccount
;
import
cn.com.glsx.dj.financial.model.qw.CallbackData
;
import
cn.com.glsx.dj.financial.model.qw.CallbackData
;
import
cn.com.glsx.dj.financial.remote.NbCbTransferRemoteImpl
;
import
cn.com.glsx.dj.financial.remote.NbCbTransferRemoteImpl
;
...
@@ -20,10 +22,7 @@ import org.springframework.beans.factory.annotation.Autowired;
...
@@ -20,10 +22,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.core.env.Environment
;
import
org.springframework.core.env.Environment
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
java.util.Arrays
;
import
java.util.*
;
import
java.util.Date
;
import
java.util.HashSet
;
import
java.util.Set
;
/**
/**
* 第三方宁波银行批量转账
* 第三方宁波银行批量转账
...
@@ -50,6 +49,8 @@ public class ThirdPartyNiBoBatchStrategy implements ThirdPartyStrategy{
...
@@ -50,6 +49,8 @@ public class ThirdPartyNiBoBatchStrategy implements ThirdPartyStrategy{
@Autowired
@Autowired
private
QWApprovalService
qwApprovalService
;
private
QWApprovalService
qwApprovalService
;
@Autowired
private
ApprovalTemplateConfigMapper
approvalTemplateConfigMapper
;
@Override
@Override
public
Object
buildRequestParams
(
ApprovalRecords
approvalRecord
,
String
custId
,
Integer
custType
)
{
public
Object
buildRequestParams
(
ApprovalRecords
approvalRecord
,
String
custId
,
Integer
custType
)
{
...
@@ -97,6 +98,17 @@ public class ThirdPartyNiBoBatchStrategy implements ThirdPartyStrategy{
...
@@ -97,6 +98,17 @@ public class ThirdPartyNiBoBatchStrategy implements ThirdPartyStrategy{
batchTransferParam
.
setAmt
(
approvalRecord
.
getAmount
());
batchTransferParam
.
setAmt
(
approvalRecord
.
getAmount
());
batchTransferParam
.
setPurpose
(
purpose
);
batchTransferParam
.
setPurpose
(
purpose
);
batchTransferParam
.
setBatchTransferSource
(
BatchTransferSourceEnum
.
SECOND_HAND_CAR
.
getValue
());
batchTransferParam
.
setBatchTransferSource
(
BatchTransferSourceEnum
.
SECOND_HAND_CAR
.
getValue
());
String
templateId
=
approvalRecord
.
getTemplateId
();
ApprovalTemplateConfig
templateConfig
=
qwApprovalService
.
getTemplateConfig
(
templateId
);
if
(
Objects
.
nonNull
(
templateConfig
))
{
String
templateName
=
templateConfig
.
getTemplateName
();
if
(
templateName
.
contains
(
"二手车"
))
{
batchTransferParam
.
setBatchTransferSource
(
BatchTransferSourceEnum
.
SECOND_HAND_CAR
.
getValue
());
}
else
{
batchTransferParam
.
setBatchTransferSource
(
BatchTransferSourceEnum
.
GL_QW_OA_AUTO_PAYMENT
.
getValue
());
}
}
//batchTransferParam.setDjSerialNo(approvalRecord.getSpNo());
//batchTransferParam.setDjSerialNo(approvalRecord.getSpNo());
batchTransferParam
.
setDjSerialNo
(
approvalRecord
.
getMerchantSpNo
());
batchTransferParam
.
setDjSerialNo
(
approvalRecord
.
getMerchantSpNo
());
batchTransferParam
.
setBusinessCode
(
"nis_batch_transfer"
);
batchTransferParam
.
setBusinessCode
(
"nis_batch_transfer"
);
...
...
rpc-dj-financial/src/main/java/cn/com/glsx/dj/financial/service/nb/NbCbBatchTransferService.java
View file @
5ef0d14
...
@@ -457,9 +457,9 @@ public class NbCbBatchTransferService {
...
@@ -457,9 +457,9 @@ public class NbCbBatchTransferService {
nbCbBatchTransfer
.
setErpRemark2
(
transferParam
.
getErpRemark2
());
nbCbBatchTransfer
.
setErpRemark2
(
transferParam
.
getErpRemark2
());
nbCbBatchTransfer
.
setErpRemark3
(
transferParam
.
getErpRemark3
());
nbCbBatchTransfer
.
setErpRemark3
(
transferParam
.
getErpRemark3
());
nbCbBatchTransfer
.
setErpRemark4
(
transferParam
.
getErpRemark3
());
nbCbBatchTransfer
.
setErpRemark4
(
transferParam
.
getErpRemark3
());
nbCbBatchTransfer
.
setBatchTransferSource
(
(
byte
)
0
);
nbCbBatchTransfer
.
setBatchTransferSource
(
transferParam
.
getBatchTransferSource
()
);
Byte
pushStatus
=
TransferStatusEnum
.
NOT_TRANSFER
.
getValue
();
Byte
pushStatus
=
TransferStatusEnum
.
NOT_TRANSFER
.
getValue
();
nbCbBatchTransfer
.
setUpdatedBy
(
"二手车"
);
nbCbBatchTransfer
.
setUpdatedBy
(
Objects
.
equals
(
transferParam
.
getBatchTransferSource
(),
BatchTransferSourceEnum
.
SECOND_HAND_CAR
.
getValue
())
?
BatchTransferSourceEnum
.
SECOND_HAND_CAR
.
getDisplayName
()
:
BatchTransferSourceEnum
.
GL_QW_OA_AUTO_PAYMENT
.
getDisplayName
()
);
//超过20w直接推送失败,发送邮件通知,
//超过20w直接推送失败,发送邮件通知,
BigDecimal
totalAmt
=
transferParam
.
getAmt
();
BigDecimal
totalAmt
=
transferParam
.
getAmt
();
...
...
rpc-dj-financial/src/test/java/cn/com/glsx/dj/financial/service/QWApprovalServiceTest.java
View file @
5ef0d14
...
@@ -47,7 +47,7 @@ public class QWApprovalServiceTest extends BaseServiceTest{
...
@@ -47,7 +47,7 @@ public class QWApprovalServiceTest extends BaseServiceTest{
@Test
@Test
public
void
sendThird
(){
public
void
sendThird
(){
ApprovalRecords
approvalRecords
=
approvalRecordsMapper
.
selectByPrimaryKey
(
9
54
);
ApprovalRecords
approvalRecords
=
approvalRecordsMapper
.
selectByPrimaryKey
(
9
67
);
qwApprovalService
.
sendThird
(
approvalRecords
);
qwApprovalService
.
sendThird
(
approvalRecords
);
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment