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
f28f84e0
Commit
f28f84e0
authored
Jan 04, 2023
by
huyuchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化修改
parent
ceebc93e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
1 deletion
+28
-1
TPaymentInfoMapper.java
.../cloud/plus/v1/yifu/social/mapper/TPaymentInfoMapper.java
+7
-0
TPaymentInfoServiceImpl.java
.../v1/yifu/social/service/impl/TPaymentInfoServiceImpl.java
+1
-1
TPaymentInfoMapper.xml
...cial-biz/src/main/resources/mapper/TPaymentInfoMapper.xml
+20
-0
No files found.
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/mapper/TPaymentInfoMapper.java
View file @
f28f84e0
...
...
@@ -84,6 +84,13 @@ public interface TPaymentInfoMapper extends BaseMapper<TPaymentInfo> {
*/
int
updateDeleteInfo
(
@Param
(
"tPaymentInfo"
)
TPaymentInfo
tPaymentInfo
);
/**
* 更新结算状态
* @param tPaymentInfo 缴费库
* @return
*/
int
updateStatusById
(
@Param
(
"tPaymentInfo"
)
TPaymentInfo
tPaymentInfo
);
/**
* 通过ID获取缴费库 及社保、公积金明细
* @param id
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TPaymentInfoServiceImpl.java
View file @
f28f84e0
...
...
@@ -3291,7 +3291,7 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
paymentInfo
.
setPaySettleFlag
(
viewVo
.
getPaySettleFlag
());
paymentInfo
.
setPayCollectFlag
(
viewVo
.
getPayCollectFlag
());
}
baseMapper
.
updateById
(
paymentInfo
);
baseMapper
.
update
Status
ById
(
paymentInfo
);
}
}
else
if
(
viewVo
.
getSettleFlag
().
contains
(
SocialConstants
.
DIFF_TYPE_ONE
))
{
//根据明细id更新结算状态
...
...
yifu-social/yifu-social-biz/src/main/resources/mapper/TPaymentInfoMapper.xml
View file @
f28f84e0
...
...
@@ -1058,6 +1058,26 @@
</trim>
where ID = #{tPaymentInfo.id}
</update>
<update
id=
"updateStatusById"
>
update t_payment_info
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"tPaymentInfo != null"
>
<if
test=
"tPaymentInfo.incomeSettleFlag != '' and tPaymentInfo.incomeSettleFlag.trim() != ''"
>
INCOME_SETTLE_FLAG = #{tPaymentInfo.incomeSettleFlag},
</if>
<if
test=
"tPaymentInfo.incomeCollectFlag != '' and tPaymentInfo.incomeCollectFlag.trim() != ''"
>
INCOME_COLLECT_FLAG = #{tPaymentInfo.incomeCollectFlag},
</if>
<if
test=
"tPaymentInfo.paySettleFlag != null and tPaymentInfo.paySettleFlag.trim() != ''"
>
PAY_SETTLE_FLAG = #{tPaymentInfo.paySettleFlag},
</if>
<if
test=
"tPaymentInfo.payCollectFlag != null and tPaymentInfo.payCollectFlag.trim() != ''"
>
PAY_COLLECT_FLAG = #{tPaymentInfo.payCollectFlag},
</if>
</if>
</trim>
where ID = #{tPaymentInfo.id}
</update>
<!--tPaymentInfo 按ID查收缴费库包含社保和公积金明细的数据查询-->
<select
id=
"getAllInfoById"
resultMap=
"tPaymentAllInfoMap"
>
...
...
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