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
0d8cac20
Commit
0d8cac20
authored
Jan 31, 2023
by
hongguangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MVP1.4-缴费库删除
parent
437a466e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
17 deletions
+24
-17
TPaymentInfoServiceImpl.java
.../v1/yifu/social/service/impl/TPaymentInfoServiceImpl.java
+24
-17
No files found.
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TPaymentInfoServiceImpl.java
View file @
0d8cac20
...
@@ -343,26 +343,33 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
...
@@ -343,26 +343,33 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
LambdaQueryWrapper
<
TPaymentInfo
>
wrapper
=
buildQueryWrapper
(
empIdCard
,
socialHouseId
,
fundHouseId
,
LambdaQueryWrapper
<
TPaymentInfo
>
wrapper
=
buildQueryWrapper
(
empIdCard
,
socialHouseId
,
fundHouseId
,
socialCreateMonth
,
socialPayMonth
);
socialCreateMonth
,
socialPayMonth
);
List
<
TPaymentInfo
>
list
=
baseMapper
.
selectList
(
wrapper
);
List
<
TPaymentInfo
>
list
;
List
<
String
>
idList
=
new
ArrayList
<>();
boolean
delFlag
=
false
;
boolean
delFlag
=
false
;
if
(
Common
.
isNotNull
(
list
))
{
if
(
CommonConstants
.
ONE_STRING
.
equals
(
user
.
getId
()))
{
for
(
TPaymentInfo
paymentInfo
:
list
)
{
list
=
baseMapper
.
selectList
(
wrapper
.
eq
(
TPaymentInfo:
:
getPushStatus
,
CommonConstants
.
ONE_STRING
)
if
((!
user
.
getId
().
equals
(
paymentInfo
.
getCreateBy
())
&&
.
eq
(
TPaymentInfo:
:
getSalarySocialFlag
,
CommonConstants
.
ZERO_STRING
)
!
CommonConstants
.
ONE_STRING
.
equals
(
user
.
getId
()))
||
.
eq
(
TPaymentInfo:
:
getSalaryFundFlag
,
CommonConstants
.
ZERO_STRING
)
CommonConstants
.
ZERO_STRING
.
equals
(
paymentInfo
.
getPushStatus
())
||
);
CommonConstants
.
ONE_STRING
.
equals
(
paymentInfo
.
getSalaryFundFlag
())
||
CommonConstants
.
ONE_STRING
.
equals
(
paymentInfo
.
getSalarySocialFlag
()))
{
delFlag
=
true
;
}
else
{
idList
.
add
(
paymentInfo
.
getId
());
}
}
}
else
{
}
else
{
return
R
.
failed
(
CommonConstants
.
NO_DATA_TO_HANDLE
);
list
=
baseMapper
.
selectList
(
wrapper
.
eq
(
TPaymentInfo:
:
getPushStatus
,
CommonConstants
.
ONE_STRING
)
.
eq
(
TPaymentInfo:
:
getSalarySocialFlag
,
CommonConstants
.
ZERO_STRING
)
.
eq
(
TPaymentInfo:
:
getSalaryFundFlag
,
CommonConstants
.
ZERO_STRING
)
.
eq
(
TPaymentInfo:
:
getCreateBy
,
user
.
getId
())
);
long
count
=
baseMapper
.
selectCount
(
wrapper
.
and
(
obj
->
obj
.
eq
(
TPaymentInfo:
:
getPushStatus
,
CommonConstants
.
ZERO_STRING
)
.
or
().
eq
(
TPaymentInfo:
:
getSalarySocialFlag
,
CommonConstants
.
ONE_STRING
)
.
or
().
eq
(
TPaymentInfo:
:
getSalaryFundFlag
,
CommonConstants
.
ONE_STRING
)
.
or
().
ne
(
TPaymentInfo:
:
getCreateBy
,
user
.
getId
())
)
);
if
(
count
>
0
)
{
delFlag
=
true
;
}
}
}
if
(
Common
.
isNotNull
(
idList
))
{
if
(
Common
.
isNotNull
(
list
))
{
baseMapper
.
deleteBatchIds
(
idList
);
baseMapper
.
deleteBatchIds
(
list
);
}
else
if
(!
delFlag
)
{
return
R
.
failed
(
CommonConstants
.
NO_DATA_TO_HANDLE
);
}
}
if
(
delFlag
)
{
if
(
delFlag
)
{
return
R
.
ok
(
null
,
"存在不符合条件的数据(已推送至结算平台或非本人创建),禁止删除!"
);
return
R
.
ok
(
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