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
360749cd
Commit
360749cd
authored
Nov 25, 2024
by
hongguangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MVP1.7.2 工行5次提交_明细发放状态更新
parent
3f76336d
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
2 deletions
+22
-2
EkpBankGrantDetailMapper.java
...fu/cloud/plus/v1/ekp/mapper/EkpBankGrantDetailMapper.java
+5
-0
EkpBankGrantDetailService.java
.../cloud/plus/v1/ekp/service/EkpBankGrantDetailService.java
+3
-0
EkpBankGrantDetailServiceImpl.java
...us/v1/ekp/service/impl/EkpBankGrantDetailServiceImpl.java
+5
-0
IcbcTransactionFlowIssueServiceImpl.java
...ekp/service/impl/IcbcTransactionFlowIssueServiceImpl.java
+4
-2
EkpBankGrantDetailMapper.xml
...iz/src/main/resources/mapper/EkpBankGrantDetailMapper.xml
+5
-0
No files found.
yifu-ekp/yifu-ekp-biz/src/main/java/com/yifu/cloud/plus/v1/ekp/mapper/EkpBankGrantDetailMapper.java
View file @
360749cd
...
...
@@ -42,5 +42,10 @@ public interface EkpBankGrantDetailMapper extends BaseMapper<EkpBankGrantDetail>
// 查询详情里的1条数据
List
<
EkpBankExcelVo
>
getEkpBankExcelVoByIdAndDetail
(
@Param
(
"fdId"
)
String
fdId
);
// 编号查重
String
getWxNoByWxNo
(
@Param
(
"wxNo"
)
String
wxNo
);
// 主表发放时,更新明细表的发放时间与状态
void
updateStatusByGrant
(
@Param
(
"fdParentId"
)
String
fdParentId
);
}
yifu-ekp/yifu-ekp-biz/src/main/java/com/yifu/cloud/plus/v1/ekp/service/EkpBankGrantDetailService.java
View file @
360749cd
...
...
@@ -43,4 +43,7 @@ public interface EkpBankGrantDetailService extends IService<EkpBankGrantDetail>
// 查询编码是否重复
String
getWxNoByWxNo
(
String
wxNo
);
// 主表发放时,更新明细表的发放时间与状态
void
updateStatusByGrant
(
String
fdParentId
);
}
yifu-ekp/yifu-ekp-biz/src/main/java/com/yifu/cloud/plus/v1/ekp/service/impl/EkpBankGrantDetailServiceImpl.java
View file @
360749cd
...
...
@@ -56,4 +56,9 @@ public class EkpBankGrantDetailServiceImpl extends ServiceImpl<EkpBankGrantDetai
public
String
getWxNoByWxNo
(
String
wxNo
)
{
return
baseMapper
.
getWxNoByWxNo
(
wxNo
);
}
@Override
public
void
updateStatusByGrant
(
String
fdParentId
)
{
baseMapper
.
updateStatusByGrant
(
fdParentId
);
}
}
yifu-ekp/yifu-ekp-biz/src/main/java/com/yifu/cloud/plus/v1/ekp/service/impl/IcbcTransactionFlowIssueServiceImpl.java
View file @
360749cd
...
...
@@ -136,7 +136,7 @@ public class IcbcTransactionFlowIssueServiceImpl extends ServiceImpl<EkpSocialIn
return
R
.
ok
(
result
);
}
}
catch
(
IcbcApiException
e
)
{
e
.
printStackTrace
(
);
log
.
error
(
"银企付款发放失败"
,
e
);
return
R
.
failed
(
"发放失败"
);
}
return
R
.
failed
(
"发放失败!"
);
...
...
@@ -666,6 +666,8 @@ public class IcbcTransactionFlowIssueServiceImpl extends ServiceImpl<EkpSocialIn
main
.
setFdGrantStatus
(
"发放中"
);
main
.
setFdGrantNum
(
main
.
getFdGrantNum
()
+
1
);
ekpBankPayTaskService
.
updateById
(
main
);
// 同步更新明细的发放时间、发放状态
ekpBankGrantDetailService
.
updateStatusByGrant
(
fdId
);
}
return
returnR
;
}
else
{
...
...
@@ -696,7 +698,7 @@ public class IcbcTransactionFlowIssueServiceImpl extends ServiceImpl<EkpSocialIn
R
<
String
>
returnR
=
submitIcbcTransactionFlow
(
totalAmt
,
totalCount
,
wxNo
,
url
,
mdCode
);
if
(
returnR
.
getCode
()
==
CommonConstants
.
SUCCESS
)
{
// 发放次数+1,改主表或明细表“发放状态”为“发放中”
detail
.
setFd
Grant
Status
(
"发放中"
);
detail
.
setFd
Handle
Status
(
"发放中"
);
detail
.
setFdGrantNum
(
detail
.
getFdGrantNum
()
+
1
);
ekpBankGrantDetailService
.
updateById
(
detail
);
}
...
...
yifu-ekp/yifu-ekp-biz/src/main/resources/mapper/EkpBankGrantDetailMapper.xml
View file @
360749cd
...
...
@@ -106,4 +106,9 @@
) a limit 1
</select>
<!-- 主表发放时,更新明细表的发放时间与状态 -->
<update
id=
"updateStatusByGrant"
>
update ekp_bank_grant_detail a set a.fd_create_time = NOW(),a.fd_grant_status='发放中' where a.fd_parent_id = #{fdParentId}
</update>
</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