Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
Project
Project
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
fangxinjiang
yifu-mvp
Commits
0a4eb245
Commit
0a4eb245
authored
Nov 27, 2024
by
fangxinjiang
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/MVP1.7.2' into MVP1.7.2
parents
472e5e1d
38489a1d
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
304 additions
and
65 deletions
+304
-65
EkpBankIcbcLog.java
...ava/com/yifu/cloud/plus/v1/ekp/entity/EkpBankIcbcLog.java
+72
-0
EkpBankIcbcLogMapper.java
...m/yifu/cloud/plus/v1/ekp/mapper/EkpBankIcbcLogMapper.java
+32
-0
EkpBankIcbcLogService.java
...yifu/cloud/plus/v1/ekp/service/EkpBankIcbcLogService.java
+31
-0
EkpBankIcbcLogServiceImpl.java
...d/plus/v1/ekp/service/impl/EkpBankIcbcLogServiceImpl.java
+36
-0
IcbcTransactionFlowIssueServiceImpl.java
...ekp/service/impl/IcbcTransactionFlowIssueServiceImpl.java
+94
-65
EkpBankIcbcLogMapper.xml
...kp-biz/src/main/resources/mapper/EkpBankIcbcLogMapper.xml
+39
-0
No files found.
yifu-ekp/yifu-ekp-api/src/main/java/com/yifu/cloud/plus/v1/ekp/entity/EkpBankIcbcLog.java
0 → 100644
View file @
0a4eb245
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package
com
.
yifu
.
cloud
.
plus
.
v1
.
ekp
.
entity
;
import
com.alibaba.excel.annotation.ExcelProperty
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttribute
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
lombok.Data
;
import
org.hibernate.validator.constraints.Length
;
import
java.time.LocalDateTime
;
/**
* 工行返回的数据记录表
*
* @author hgw
* @date 2024-11-27 16:50:15
*/
@Data
@TableName
(
"ekp_bank_icbc_log"
)
@Schema
(
description
=
"工行返回的数据记录表"
)
public
class
EkpBankIcbcLog
{
/**
* 主键
*/
@TableId
(
type
=
IdType
.
ASSIGN_ID
)
@ExcelProperty
(
"主键"
)
@Schema
(
description
=
"主键"
)
private
String
fdId
;
/**
* 批次号
*/
@ExcelAttribute
(
name
=
"批次号"
,
maxLength
=
36
)
@Length
(
max
=
36
,
message
=
"批次号不能超过36个字符"
)
@ExcelProperty
(
"批次号"
)
@Schema
(
description
=
"批次号"
)
private
String
fdWxNo
;
/**
* 日志
*/
@ExcelAttribute
(
name
=
"日志"
)
@ExcelProperty
(
"日志"
)
@Schema
(
description
=
"日志"
)
private
String
fdLog
;
/**
* 创建时间
*/
@ExcelAttribute
(
name
=
"创建时间"
,
isDate
=
true
)
@ExcelProperty
(
"创建时间"
)
@Schema
(
description
=
"创建时间"
)
private
LocalDateTime
fdCreateTime
;
}
yifu-ekp/yifu-ekp-biz/src/main/java/com/yifu/cloud/plus/v1/ekp/mapper/EkpBankIcbcLogMapper.java
0 → 100644
View file @
0a4eb245
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package
com
.
yifu
.
cloud
.
plus
.
v1
.
ekp
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.yifu.cloud.plus.v1.ekp.entity.EkpBankIcbcLog
;
import
org.apache.ibatis.annotations.Mapper
;
/**
* 工行返回的数据记录表
*
* @author hgw
* @date 2024-11-27 16:50:15
*/
@Mapper
public
interface
EkpBankIcbcLogMapper
extends
BaseMapper
<
EkpBankIcbcLog
>
{
}
yifu-ekp/yifu-ekp-biz/src/main/java/com/yifu/cloud/plus/v1/ekp/service/EkpBankIcbcLogService.java
0 → 100644
View file @
0a4eb245
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package
com
.
yifu
.
cloud
.
plus
.
v1
.
ekp
.
service
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.yifu.cloud.plus.v1.ekp.entity.EkpBankIcbcLog
;
/**
* 工行返回的数据记录表
*
* @author hgw
* @date 2024-11-27 16:50:15
*/
public
interface
EkpBankIcbcLogService
extends
IService
<
EkpBankIcbcLog
>
{
}
yifu-ekp/yifu-ekp-biz/src/main/java/com/yifu/cloud/plus/v1/ekp/service/impl/EkpBankIcbcLogServiceImpl.java
0 → 100644
View file @
0a4eb245
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package
com
.
yifu
.
cloud
.
plus
.
v1
.
ekp
.
service
.
impl
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.yifu.cloud.plus.v1.ekp.entity.EkpBankIcbcLog
;
import
com.yifu.cloud.plus.v1.ekp.mapper.EkpBankIcbcLogMapper
;
import
com.yifu.cloud.plus.v1.ekp.service.EkpBankIcbcLogService
;
import
lombok.extern.log4j.Log4j2
;
import
org.springframework.stereotype.Service
;
/**
* 工行返回的数据记录表
*
* @author hgw
* @date 2024-11-27 16:50:15
*/
@Log4j2
@Service
public
class
EkpBankIcbcLogServiceImpl
extends
ServiceImpl
<
EkpBankIcbcLogMapper
,
EkpBankIcbcLog
>
implements
EkpBankIcbcLogService
{
}
yifu-ekp/yifu-ekp-biz/src/main/java/com/yifu/cloud/plus/v1/ekp/service/impl/IcbcTransactionFlowIssueServiceImpl.java
View file @
0a4eb245
...
@@ -79,6 +79,8 @@ public class IcbcTransactionFlowIssueServiceImpl extends ServiceImpl<EkpSocialIn
...
@@ -79,6 +79,8 @@ public class IcbcTransactionFlowIssueServiceImpl extends ServiceImpl<EkpSocialIn
@Autowired
@Autowired
private
EkpBankGrantLogDetailService
ekpBankGrantLogDetailService
;
private
EkpBankGrantLogDetailService
ekpBankGrantLogDetailService
;
@Autowired
@Autowired
private
EkpBankIcbcLogService
ekpBankIcbcLogService
;
@Autowired
private
OSSUtil
ossUtil
;
private
OSSUtil
ossUtil
;
@Autowired
@Autowired
private
RedisUtil
redisUtil
;
private
RedisUtil
redisUtil
;
...
@@ -682,83 +684,90 @@ public class IcbcTransactionFlowIssueServiceImpl extends ServiceImpl<EkpSocialIn
...
@@ -682,83 +684,90 @@ public class IcbcTransactionFlowIssueServiceImpl extends ServiceImpl<EkpSocialIn
}
else
{
}
else
{
redisUtil
.
set
(
redisKey
,
600L
);
redisUtil
.
set
(
redisKey
,
600L
);
}
}
// 1主表
try
{
if
(
CommonConstants
.
ONE_STRING
.
equals
(
type
))
{
// 1主表
EkpBankPayTask
main
=
ekpBankPayTaskService
.
getById
(
fdId
);
if
(
CommonConstants
.
ONE_STRING
.
equals
(
type
))
{
if
(
main
==
null
)
{
EkpBankPayTask
main
=
ekpBankPayTaskService
.
getById
(
fdId
);
redisUtil
.
remove
(
redisKey
);
if
(
main
==
null
)
{
return
R
.
failed
(
"未找到表数据!"
);
}
if
(!
"待发放"
.
equals
(
main
.
getFdGrantStatus
()))
{
redisUtil
.
remove
(
redisKey
);
return
R
.
failed
(
"状态不是待发放!"
);
}
if
(
Common
.
isNotNull
(
main
.
getFdDownloadNum
())
&&
Common
.
isNotNull
(
main
.
getFdGrantNum
())
&&
main
.
getFdDownloadNum
()
>
main
.
getFdGrantNum
())
{
if
(
Common
.
isEmpty
(
main
.
getFdMoney
()))
{
redisUtil
.
remove
(
redisKey
);
redisUtil
.
remove
(
redisKey
);
return
R
.
failed
(
"
数据错误,无金额
!"
);
return
R
.
failed
(
"
未找到表数据
!"
);
}
}
int
count
=
ekpBankGrantDetailService
.
getCountByIdAndMain
(
fdId
);
if
(!
"待发放"
.
equals
(
main
.
getFdGrantStatus
()))
{
String
totalAmt
=
String
.
valueOf
(
BigDecimalUtils
.
safeMultiply
(
main
.
getFdMoney
(),
new
BigDecimal
(
"100"
),
0
));
redisUtil
.
remove
(
redisKey
);
String
totalCount
=
String
.
valueOf
(
count
);
return
R
.
failed
(
"状态不是待发放!"
);
String
wxNo
=
main
.
getFdWxNo
();
}
String
url
=
main
.
getFdAttaName
();
if
(
Common
.
isNotNull
(
main
.
getFdDownloadNum
())
&&
Common
.
isNotNull
(
main
.
getFdGrantNum
())
String
mdCode
=
main
.
getFdMdCode
();
&&
main
.
getFdDownloadNum
()
>
main
.
getFdGrantNum
())
{
R
<
String
>
returnR
=
submitIcbcTransactionFlow
(
totalAmt
,
totalCount
,
wxNo
,
url
,
mdCode
);
if
(
Common
.
isEmpty
(
main
.
getFdMoney
()))
{
if
(
returnR
.
getCode
()
==
CommonConstants
.
SUCCESS
)
{
redisUtil
.
remove
(
redisKey
);
// 发放次数+1,改主表或明细表“发放状态”为“发放中”
return
R
.
failed
(
"数据错误,无金额!"
);
main
.
setFdGrantStatus
(
"发放中"
);
}
main
.
setFdGrantNum
(
main
.
getFdGrantNum
()
+
1
);
int
count
=
ekpBankGrantDetailService
.
getCountByIdAndMain
(
fdId
);
ekpBankPayTaskService
.
updateById
(
main
);
String
totalAmt
=
String
.
valueOf
(
BigDecimalUtils
.
safeMultiply
(
main
.
getFdMoney
(),
new
BigDecimal
(
"100"
),
0
));
// 同步更新明细的发放时间、发放状态
String
totalCount
=
String
.
valueOf
(
count
);
ekpBankGrantDetailService
.
updateStatusByGrant
(
fdId
);
String
wxNo
=
main
.
getFdWxNo
();
String
url
=
main
.
getFdAttaName
();
String
mdCode
=
main
.
getFdMdCode
();
R
<
String
>
returnR
=
submitIcbcTransactionFlow
(
totalAmt
,
totalCount
,
wxNo
,
url
,
mdCode
);
if
(
returnR
.
getCode
()
==
CommonConstants
.
SUCCESS
)
{
// 发放次数+1,改主表或明细表“发放状态”为“发放中”
main
.
setFdGrantStatus
(
"发放中"
);
main
.
setFdGrantNum
(
main
.
getFdGrantNum
()
+
1
);
ekpBankPayTaskService
.
updateById
(
main
);
// 同步更新明细的发放时间、发放状态
ekpBankGrantDetailService
.
updateStatusByGrant
(
fdId
);
}
redisUtil
.
remove
(
redisKey
);
return
returnR
;
}
else
{
redisUtil
.
remove
(
redisKey
);
return
R
.
failed
(
"请检查状态!"
);
}
}
redisUtil
.
remove
(
redisKey
);
return
returnR
;
}
else
{
}
else
{
redisUtil
.
remove
(
redisKey
);
// 2明细表
return
R
.
failed
(
"请检查状态!"
);
EkpBankGrantDetail
detail
=
ekpBankGrantDetailService
.
getById
(
fdId
);
}
if
(
detail
==
null
)
{
}
else
{
// 2明细表
EkpBankGrantDetail
detail
=
ekpBankGrantDetailService
.
getById
(
fdId
);
if
(
detail
==
null
)
{
redisUtil
.
remove
(
redisKey
);
return
R
.
failed
(
"未找到明细表数据!"
);
}
if
(!
"待发放"
.
equals
(
detail
.
getFdHandleStatus
()))
{
redisUtil
.
remove
(
redisKey
);
return
R
.
failed
(
"状态不是待发放!"
);
}
if
(
Common
.
isNotNull
(
detail
.
getFdDownloadNum
())
&&
Common
.
isNotNull
(
detail
.
getFdGrantNum
())
&&
detail
.
getFdDownloadNum
()
>
detail
.
getFdGrantNum
())
{
if
(
Common
.
isEmpty
(
detail
.
getFdMoney
()))
{
redisUtil
.
remove
(
redisKey
);
redisUtil
.
remove
(
redisKey
);
return
R
.
failed
(
"
数据错误,无金额
!"
);
return
R
.
failed
(
"
未找到明细表数据
!"
);
}
}
String
totalAmt
=
String
.
valueOf
(
BigDecimalUtils
.
safeMultiply
(
detail
.
getFdMoney
(),
new
BigDecimal
(
"100"
),
0
));
if
(!
"待发放"
.
equals
(
detail
.
getFdHandleStatus
()))
{
String
totalCount
=
"1"
;
redisUtil
.
remove
(
redisKey
);
String
wxNo
=
detail
.
getFdWxNo
();
return
R
.
failed
(
"状态不是待发放!"
);
String
url
=
detail
.
getFdAttaName
();
}
String
mdCode
=
detail
.
getFdMdCode
();
if
(
Common
.
isNotNull
(
detail
.
getFdDownloadNum
())
&&
Common
.
isNotNull
(
detail
.
getFdGrantNum
())
R
<
String
>
returnR
=
submitIcbcTransactionFlow
(
totalAmt
,
totalCount
,
wxNo
,
url
,
mdCode
);
&&
detail
.
getFdDownloadNum
()
>
detail
.
getFdGrantNum
())
{
if
(
returnR
.
getCode
()
==
CommonConstants
.
SUCCESS
)
{
if
(
Common
.
isEmpty
(
detail
.
getFdMoney
()))
{
// 发放次数+1,改主表或明细表“发放状态”为“发放中”
redisUtil
.
remove
(
redisKey
);
detail
.
setFdHandleStatus
(
"发放中"
);
return
R
.
failed
(
"数据错误,无金额!"
);
detail
.
setFdGrantNum
(
detail
.
getFdGrantNum
()
+
1
);
}
ekpBankGrantDetailService
.
updateById
(
detail
);
String
totalAmt
=
String
.
valueOf
(
BigDecimalUtils
.
safeMultiply
(
detail
.
getFdMoney
(),
new
BigDecimal
(
"100"
),
0
));
String
totalCount
=
"1"
;
String
wxNo
=
detail
.
getFdWxNo
();
String
url
=
detail
.
getFdAttaName
();
String
mdCode
=
detail
.
getFdMdCode
();
R
<
String
>
returnR
=
submitIcbcTransactionFlow
(
totalAmt
,
totalCount
,
wxNo
,
url
,
mdCode
);
if
(
returnR
.
getCode
()
==
CommonConstants
.
SUCCESS
)
{
// 发放次数+1,改主表或明细表“发放状态”为“发放中”
detail
.
setFdHandleStatus
(
"发放中"
);
detail
.
setFdGrantNum
(
detail
.
getFdGrantNum
()
+
1
);
ekpBankGrantDetailService
.
updateById
(
detail
);
}
redisUtil
.
remove
(
redisKey
);
return
returnR
;
}
else
{
redisUtil
.
remove
(
redisKey
);
return
R
.
failed
(
"请检查状态!"
);
}
}
redisUtil
.
remove
(
redisKey
);
return
returnR
;
}
else
{
redisUtil
.
remove
(
redisKey
);
return
R
.
failed
(
"请检查状态!"
);
}
}
}
catch
(
Exception
e
)
{
log
.
error
(
"银企付款发放发放异常"
,
e
);
}
finally
{
redisUtil
.
remove
(
redisKey
);
}
}
}
else
{
}
else
{
return
R
.
failed
(
"传参错误!"
);
return
R
.
failed
(
"传参错误!"
);
}
}
return
R
.
failed
(
"传参错误!!"
);
}
}
/**
/**
...
@@ -796,6 +805,7 @@ public class IcbcTransactionFlowIssueServiceImpl extends ServiceImpl<EkpSocialIn
...
@@ -796,6 +805,7 @@ public class IcbcTransactionFlowIssueServiceImpl extends ServiceImpl<EkpSocialIn
BigDecimal
moneyAll
;
BigDecimal
moneyAll
;
int
numSuccess
;
int
numSuccess
;
int
numFail
;
int
numFail
;
List
<
EkpBankIcbcLog
>
icbcLogList
=
new
ArrayList
<>();
for
(
EkpBankResultVo
vo
:
mainList
)
{
for
(
EkpBankResultVo
vo
:
mainList
)
{
for
(
int
i
=
0
;
i
<
vo
.
getNum
();
i
+=
49
)
{
for
(
int
i
=
0
;
i
<
vo
.
getNum
();
i
+=
49
)
{
startNum
=
i
;
startNum
=
i
;
...
@@ -805,6 +815,8 @@ public class IcbcTransactionFlowIssueServiceImpl extends ServiceImpl<EkpSocialIn
...
@@ -805,6 +815,8 @@ public class IcbcTransactionFlowIssueServiceImpl extends ServiceImpl<EkpSocialIn
}
}
responseV1
=
selectIcbcTransactionFlowInfo
(
vo
.
getFdWxNo
(),
String
.
valueOf
(
startNum
),
String
.
valueOf
(
endNum
));
responseV1
=
selectIcbcTransactionFlowInfo
(
vo
.
getFdWxNo
(),
String
.
valueOf
(
startNum
),
String
.
valueOf
(
endNum
));
if
(
Common
.
isNotNull
(
responseV1
))
{
if
(
Common
.
isNotNull
(
responseV1
))
{
// 生成工行接口数据记录
setIcbcLogBaseInfo
(
responseV1
,
icbcLogList
,
vo
.
getFdWxNo
()
+
"_"
+
startNum
+
"_"
+
endNum
);
// 返回码,交易成功返回0,正表示业务报错,负表示系统报错
// 返回码,交易成功返回0,正表示业务报错,负表示系统报错
if
(
"0"
.
equals
(
responseV1
.
getReturn_code
()))
{
if
(
"0"
.
equals
(
responseV1
.
getReturn_code
()))
{
// 处理状态: 00-待提交,01-已提交 02-待授权 03-待银行处理, 04-处理成功,05-处理失败
// 处理状态: 00-待提交,01-已提交 02-待授权 03-待银行处理, 04-处理成功,05-处理失败
...
@@ -904,6 +916,9 @@ public class IcbcTransactionFlowIssueServiceImpl extends ServiceImpl<EkpSocialIn
...
@@ -904,6 +916,9 @@ public class IcbcTransactionFlowIssueServiceImpl extends ServiceImpl<EkpSocialIn
}
}
}
}
}
}
if
(!
icbcLogList
.
isEmpty
())
{
ekpBankIcbcLogService
.
saveBatch
(
icbcLogList
);
}
}
}
// 2:获取主表已发放且明细表发放中的明细表数据,查询工行接口
// 2:获取主表已发放且明细表发放中的明细表数据,查询工行接口
...
@@ -915,9 +930,12 @@ public class IcbcTransactionFlowIssueServiceImpl extends ServiceImpl<EkpSocialIn
...
@@ -915,9 +930,12 @@ public class IcbcTransactionFlowIssueServiceImpl extends ServiceImpl<EkpSocialIn
EkpBankGrantDetail
detailData
;
EkpBankGrantDetail
detailData
;
List
<
String
>
zhongXinSalaryIdList
=
new
ArrayList
<>();
List
<
String
>
zhongXinSalaryIdList
=
new
ArrayList
<>();
JftApiPayrollQueryDetailResponseV1
.
JftApiPayrollDetail
data
;
JftApiPayrollQueryDetailResponseV1
.
JftApiPayrollDetail
data
;
List
<
EkpBankIcbcLog
>
icbcLogList
=
new
ArrayList
<>();
for
(
EkpBankResultVo
vo
:
detailList
)
{
for
(
EkpBankResultVo
vo
:
detailList
)
{
responseV1
=
selectIcbcTransactionFlowInfo
(
vo
.
getFdWxNo
(),
"0"
,
"1"
);
responseV1
=
selectIcbcTransactionFlowInfo
(
vo
.
getFdWxNo
(),
"0"
,
"1"
);
if
(
Common
.
isNotNull
(
responseV1
))
{
if
(
Common
.
isNotNull
(
responseV1
))
{
// 生成工行接口数据记录
setIcbcLogBaseInfo
(
responseV1
,
icbcLogList
,
vo
.
getFdWxNo
());
// Return_code返回码,交易成功返回0,正表示业务报错,负表示系统报错
// Return_code返回码,交易成功返回0,正表示业务报错,负表示系统报错
// Status处理状态: 00-待提交,01-已提交 02-待授权 03-待银行处理, 04-处理成功,05-处理失败
// Status处理状态: 00-待提交,01-已提交 02-待授权 03-待银行处理, 04-处理成功,05-处理失败
if
(
"0"
.
equals
(
responseV1
.
getReturn_code
())
&&
"04"
.
equals
(
responseV1
.
getStatus
())
if
(
"0"
.
equals
(
responseV1
.
getReturn_code
())
&&
"04"
.
equals
(
responseV1
.
getStatus
())
...
@@ -981,10 +999,21 @@ public class IcbcTransactionFlowIssueServiceImpl extends ServiceImpl<EkpSocialIn
...
@@ -981,10 +999,21 @@ public class IcbcTransactionFlowIssueServiceImpl extends ServiceImpl<EkpSocialIn
ekpBankGrantDetailService
.
updateZhongXinStatusAndBankInfo
(
zhongXinSalaryIdList
);
ekpBankGrantDetailService
.
updateZhongXinStatusAndBankInfo
(
zhongXinSalaryIdList
);
ekpBankGrantDetailService
.
updateZhongXinMainStatusAndBankInfo
(
zhongXinSalaryIdList
);
ekpBankGrantDetailService
.
updateZhongXinMainStatusAndBankInfo
(
zhongXinSalaryIdList
);
}
}
if
(!
icbcLogList
.
isEmpty
())
{
ekpBankIcbcLogService
.
saveBatch
(
icbcLogList
);
}
}
}
return
R
.
ok
();
return
R
.
ok
();
}
}
private
void
setIcbcLogBaseInfo
(
JftApiPayrollQueryDetailResponseV1
responseV1
,
List
<
EkpBankIcbcLog
>
icbcLogList
,
String
fdWxNo
)
{
EkpBankIcbcLog
icbcLog
=
new
EkpBankIcbcLog
();
icbcLog
.
setFdCreateTime
(
LocalDateTime
.
now
());
icbcLog
.
setFdWxNo
(
fdWxNo
);
icbcLog
.
setFdLog
(
JSON
.
toJSONString
(
responseV1
));
icbcLogList
.
add
(
icbcLog
);
}
/**
/**
* @Description: 初始化日志明细
* @Description: 初始化日志明细
* @Author: hgw
* @Author: hgw
...
...
yifu-ekp/yifu-ekp-biz/src/main/resources/mapper/EkpBankIcbcLogMapper.xml
0 → 100644
View file @
0a4eb245
<?xml version="1.0" encoding="UTF-8"?>
<!--
~
~ Copyright (c) 2018-2025, lengleng All rights reserved.
~
~ Redistribution and use in source and binary forms, with or without
~ modification, are permitted provided that the following conditions are met:
~
~ Redistributions of source code must retain the above copyright notice,
~ this list of conditions and the following disclaimer.
~ Redistributions in binary form must reproduce the above copyright
~ notice, this list of conditions and the following disclaimer in the
~ documentation and/or other materials provided with the distribution.
~ Neither the name of the yifu4cloud.com developer nor the names of its
~ contributors may be used to endorse or promote products derived from
~ this software without specific prior written permission.
~ Author: lengleng (wangiegie@gmail.com)
~
-->
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.yifu.cloud.plus.v1.ekp.mapper.EkpBankIcbcLogMapper"
>
<resultMap
id=
"ekpBankIcbcLogMap"
type=
"com.yifu.cloud.plus.v1.ekp.entity.EkpBankIcbcLog"
>
<id
property=
"fdId"
column=
"fd_id"
/>
<result
property=
"fdWxNo"
column=
"fd_wx_no"
/>
<result
property=
"fdLog"
column=
"fd_log"
/>
<result
property=
"fdCreateTime"
column=
"fd_create_time"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
a.fd_id,
a.fd_wx_no,
a.fd_log,
a.fd_create_time
</sql>
</mapper>
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