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
af41b75c
Commit
af41b75c
authored
Oct 10, 2022
by
huyuchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ldap同步用户部门问题修改
parent
cc0c64d8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
71 additions
and
73 deletions
+71
-73
TEmployeeInfoController.java
.../v1/yifu/archives/controller/TEmployeeInfoController.java
+3
-0
TPaymentInfoServiceImpl.java
.../v1/yifu/social/service/impl/TPaymentInfoServiceImpl.java
+68
-73
No files found.
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/controller/TEmployeeInfoController.java
View file @
af41b75c
...
...
@@ -108,6 +108,9 @@ public class TEmployeeInfoController {
menuUtil
.
setAuthSql
(
user
,
tEmployeeInfo
);
if
(
Common
.
isNotNull
(
tEmployeeInfo
.
getAuthSql
())
&&
tEmployeeInfo
.
getAuthSql
().
contains
(
CommonConstants
.
A_DEPT_ID
))
{
tEmployeeInfo
.
setAuthSql
(
tEmployeeInfo
.
getAuthSql
().
replace
(
CommonConstants
.
A_DEPT_ID
,
"b.DEPT_ID"
));
if
(
tEmployeeInfo
.
getAuthSql
().
contains
(
"1=2 or "
))
{
tEmployeeInfo
.
setAuthSql
(
tEmployeeInfo
.
getAuthSql
().
replace
(
"1=2 or "
,
""
));
}
}
return
R
.
ok
(
tEmployeeInfoService
.
getLeavePage
(
page
,
tEmployeeInfo
));
}
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TPaymentInfoServiceImpl.java
View file @
af41b75c
...
...
@@ -69,6 +69,7 @@ import javax.servlet.http.HttpServletResponse;
import
java.io.IOException
;
import
java.io.InputStream
;
import
java.math.BigDecimal
;
import
java.math.RoundingMode
;
import
java.net.URLEncoder
;
import
java.text.NumberFormat
;
import
java.time.LocalDateTime
;
...
...
@@ -235,9 +236,9 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
List
<
String
>
idList
=
Common
.
initStrToList
(
ids
,
CommonConstants
.
COMMA_STRING
);
TPaymentInfo
paymentInfo
;
if
(
idList
!=
null
)
{
for
(
String
id
:
idList
)
{
paymentInfo
=
baseMapper
.
selectById
(
id
);
if
(
null
!=
paymentInfo
&&
Common
.
isNotNull
(
paymentInfo
.
getId
()))
{
if
((!
user
.
getId
().
equals
(
paymentInfo
.
getCreateBy
())
&&
!
CommonConstants
.
ONE_STRING
.
equals
(
user
.
getId
()))
||
CommonConstants
.
ZERO_STRING
.
equals
(
paymentInfo
.
getPushStatus
()))
{
...
...
@@ -275,7 +276,7 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
List
<
TPaymentInfo
>
list
=
baseMapper
.
selectList
(
wrapper
);
List
<
String
>
idList
=
new
ArrayList
<>();
B
oolean
delFlag
=
false
;
b
oolean
delFlag
=
false
;
if
(
Common
.
isNotNull
(
list
))
{
for
(
TPaymentInfo
paymentInfo
:
list
)
{
if
((!
user
.
getId
().
equals
(
paymentInfo
.
getCreateBy
())
&&
...
...
@@ -608,7 +609,6 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
for
(
int
i
=
lastIdx
+
1
;
i
<
list
.
size
();
i
++)
{
tempList
.
add
(
list
.
get
(
i
));
}
lastIdx
+=
1
;
}
List
<
TPaymentInfoVo
>
finalTempList
=
tempList
;
...
...
@@ -1590,7 +1590,6 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
for
(
int
i
=
lastIdx
+
1
;
i
<
list
.
size
();
i
++)
{
tempList
.
add
(
list
.
get
(
i
));
}
lastIdx
+=
1
;
}
List
<
TPaymentHeFeiVo
>
finalTempList
=
tempList
;
...
...
@@ -2469,14 +2468,14 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
}
}
}
for
(
String
key:
map
.
ke
ySet
())
{
for
(
Map
.
Entry
<
String
,
Integer
>
entry
:
map
.
entr
ySet
())
{
TSendEkpError
error
=
new
TSendEkpError
();
error
.
setCreateTime
(
new
Date
());
error
.
setCreateDay
(
DateUtil
.
getThisDay
());
error
.
setType
(
CommonConstants
.
THREE_STRING
);
error
.
setLinkId
(
idMap
.
get
(
key
));
error
.
setTitle
(
key
);
error
.
setNums
(
map
.
get
(
key
));
error
.
setLinkId
(
idMap
.
get
(
entry
.
getKey
()
));
error
.
setTitle
(
entry
.
getKey
()
);
error
.
setNums
(
entry
.
getValue
(
));
tSendEkpErrorService
.
save
(
error
);
}
//更新推送状态
...
...
@@ -2640,14 +2639,14 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
}
}
}
for
(
String
key:
map
.
ke
ySet
())
{
for
(
Map
.
Entry
<
String
,
Integer
>
entry
:
map
.
entr
ySet
())
{
TSendEkpError
error
=
new
TSendEkpError
();
error
.
setCreateTime
(
new
Date
());
error
.
setCreateDay
(
DateUtil
.
getThisDay
());
error
.
setType
(
CommonConstants
.
THREE_STRING
);
error
.
setLinkId
(
idMap
.
get
(
key
));
error
.
setTitle
(
key
);
error
.
setNums
(
map
.
get
(
key
));
error
.
setLinkId
(
idMap
.
get
(
entry
.
getKey
()
));
error
.
setTitle
(
entry
.
getKey
()
);
error
.
setNums
(
entry
.
getValue
(
));
tSendEkpErrorService
.
save
(
error
);
}
//更新推送状态
...
...
@@ -2710,9 +2709,8 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
// 含有社保,则计算收入
if
(
Common
.
isNotNull
(
settleDomain
.
getManageServerItem
())
&&
((
settleDomain
.
getManageServerItem
().
contains
(
CommonConstants
.
ONE_STRING
)
&&
CommonConstants
.
ONE_STRING
.
equals
(
socialFundFlag
))
||
(
settleDomain
.
getManageServerItem
().
contains
(
CommonConstants
.
TWO_STRING
)
&&
CommonConstants
.
TWO_STRING
.
equals
(
socialFundFlag
))))
{
&&
CommonConstants
.
TWO_STRING
.
equals
(
socialFundFlag
)))
&&
CommonConstants
.
ZERO_STRING
.
equals
(
settleDomain
.
getManagementTag
())
)
{
//预估模式
if
(
CommonConstants
.
ZERO_STRING
.
equals
(
settleDomain
.
getManagementTag
()))
{
if
(
CommonConstants
.
ONE_STRING
.
equals
(
settleDomain
.
getMrSettleType
()))
{
//预估模式只有按人次和人数收费
if
(!
exitFlag
)
{
...
...
@@ -2731,11 +2729,11 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
if
(
CommonConstants
.
ONE_STRING
.
equals
(
socialFundFlag
))
{
gMoney
=
BigDecimalUtils
.
safeMultiply
(
paymentInfo
.
getSocialSum
(),
settleDomain
.
getManagementFee
().
divide
(
new
BigDecimal
(
"100"
),
CommonConstants
.
FIVE_INT
,
BigDecimal
.
ROUND_
HALF_UP
));
CommonConstants
.
FIVE_INT
,
RoundingMode
.
HALF_UP
));
}
else
{
gMoney
=
BigDecimalUtils
.
safeMultiply
(
paymentInfo
.
getProvidentSum
(),
settleDomain
.
getManagementFee
().
divide
(
new
BigDecimal
(
"100"
),
CommonConstants
.
FIVE_INT
,
BigDecimal
.
ROUND_
HALF_UP
));
CommonConstants
.
FIVE_INT
,
RoundingMode
.
HALF_UP
));
}
}
if
(!
exitFlag
||
isSum
==
1
)
{
...
...
@@ -2745,12 +2743,10 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
}
}
}
}
if
(
Common
.
isNotNull
(
settleDomain
.
getRiskServerItem
())
&&
((
settleDomain
.
getRiskServerItem
().
contains
(
CommonConstants
.
ONE_STRING
)
&&
CommonConstants
.
ONE_STRING
.
equals
(
socialFundFlag
))
||
(
settleDomain
.
getRiskServerItem
().
contains
(
CommonConstants
.
TWO_STRING
)
&&
CommonConstants
.
TWO_STRING
.
equals
(
socialFundFlag
))))
{
&&
CommonConstants
.
TWO_STRING
.
equals
(
socialFundFlag
)))
&&
CommonConstants
.
ZERO_STRING
.
equals
(
settleDomain
.
getRiskFundTag
())
)
{
//预估模式
if
(
CommonConstants
.
ZERO_STRING
.
equals
(
settleDomain
.
getRiskFundTag
()))
{
if
(
CommonConstants
.
ONE_STRING
.
equals
(
settleDomain
.
getMrSettleType
()))
{
if
(!
exitFlag
)
{
createIncomeInsurance
(
paymentInfo
,
settleDomain
,
CommonConstants
.
TWO_STRING
,
...
...
@@ -2769,11 +2765,11 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
if
(
CommonConstants
.
ONE_STRING
.
equals
(
socialFundFlag
))
{
money
=
BigDecimalUtils
.
safeMultiply
(
paymentInfo
.
getSocialSum
(),
settleDomain
.
getRiskFundFee
().
divide
(
new
BigDecimal
(
"100"
),
CommonConstants
.
FIVE_INT
,
BigDecimal
.
ROUND_
HALF_UP
));
CommonConstants
.
FIVE_INT
,
RoundingMode
.
HALF_UP
));
}
else
{
money
=
BigDecimalUtils
.
safeMultiply
(
paymentInfo
.
getProvidentSum
(),
settleDomain
.
getRiskFundFee
().
divide
(
new
BigDecimal
(
"100"
),
CommonConstants
.
FIVE_INT
,
BigDecimal
.
ROUND_
HALF_UP
));
CommonConstants
.
FIVE_INT
,
RoundingMode
.
HALF_UP
));
}
}
if
(!
exitFlag
||
isSum
==
2
)
{
...
...
@@ -2786,7 +2782,6 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
}
}
}
}
incomeService
.
saveBathDetail
(
detailList
);
}
...
...
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