Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
8
8timerapiv200
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
8timerv2
8timerapiv200
Commits
e10c406e
Commit
e10c406e
authored
Oct 21, 2020
by
ilal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交
parent
a2a92107
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
72 additions
and
3 deletions
+72
-3
src/main/java/cn/timer/api/controller/xcgl/SalaryManagementController.java
+72
-3
No files found.
src/main/java/cn/timer/api/controller/xcgl/SalaryManagementController.java
View file @
e10c406e
...
@@ -355,6 +355,8 @@ public class SalaryManagementController {
...
@@ -355,6 +355,8 @@ public class SalaryManagementController {
if
(
opt
!=
null
)
{
if
(
opt
!=
null
)
{
zzx
.
setOptionid
(
opt
.
getId
());
zzx
.
setOptionid
(
opt
.
getId
());
}
else
{
zzx
.
setOptionid
(
0
);}
}
else
{
zzx
.
setOptionid
(
0
);}
zzx
.
setDygk
(
0.0
);
//公式变量值1
zzx
.
setDegk
(
0.0
);
//公式变量值2
zzxlist
.
add
(
zzx
);
zzxlist
.
add
(
zzx
);
}
}
if
(
zzxlist
.
size
()
>
0
)
{
if
(
zzxlist
.
size
()
>
0
)
{
...
@@ -395,6 +397,8 @@ public class SalaryManagementController {
...
@@ -395,6 +397,8 @@ public class SalaryManagementController {
if
(
opt
!=
null
)
{
if
(
opt
!=
null
)
{
zzx
.
setOptionid
(
opt
.
getId
());
zzx
.
setOptionid
(
opt
.
getId
());
}
else
{
zzx
.
setOptionid
(
0
);}
}
else
{
zzx
.
setOptionid
(
0
);}
zzx
.
setDygk
(
0.0
);
//公式变量值1
zzx
.
setDegk
(
0.0
);
//公式变量值2
zzxlist
.
add
(
zzx
);
zzxlist
.
add
(
zzx
);
}
}
if
(
zzxlist
.
size
()
>
0
)
{
if
(
zzxlist
.
size
()
>
0
)
{
...
@@ -420,6 +424,9 @@ public class SalaryManagementController {
...
@@ -420,6 +424,9 @@ public class SalaryManagementController {
zzx
.
setJxgzid
(
groid
);
//计薪规则组id 0:未加入组
zzx
.
setJxgzid
(
groid
);
//计薪规则组id 0:未加入组
zzx
.
setRemarks
(
""
);
//备注
zzx
.
setRemarks
(
""
);
//备注
zzx
.
setXzzid
(
payid
);
zzx
.
setXzzid
(
payid
);
zzx
.
setDygk
(
0.0
);
//公式变量值1
zzx
.
setDegk
(
0.0
);
//公式变量值2
gzzxlist
.
add
(
zzx
);
gzzxlist
.
add
(
zzx
);
}
}
if
(
gzzxlist
.
size
()
>
0
)
{
if
(
gzzxlist
.
size
()
>
0
)
{
...
@@ -438,6 +445,9 @@ public class SalaryManagementController {
...
@@ -438,6 +445,9 @@ public class SalaryManagementController {
zzx
.
setGsid
(
xzxj
.
getId
());
//公式id 0:未关联规则
zzx
.
setGsid
(
xzxj
.
getId
());
//公式id 0:未关联规则
zzx
.
setGsgs
(
xzxj
.
getGsxs
().
replace
(
"{{"
,
""
).
replace
(
"}}"
,
""
));
//公式格式 系统提供/自定义公式
zzx
.
setGsgs
(
xzxj
.
getGsxs
().
replace
(
"{{"
,
""
).
replace
(
"}}"
,
""
));
//公式格式 系统提供/自定义公式
zzx
.
setRulestate
(
xzxj
.
getRulestate
());
//规则状态[0:系统自动提取;1:系统固定值;2:固定公式计算;3:自定义公式计算;4:每月自动导入]
zzx
.
setRulestate
(
xzxj
.
getRulestate
());
//规则状态[0:系统自动提取;1:系统固定值;2:固定公式计算;3:自定义公式计算;4:每月自动导入]
zzx
.
setDygk
(
xzxj
.
getDygk
()
==
null
?
0
:
xzxj
.
getDygk
());
//公式变量值1
zzx
.
setDegk
(
xzxj
.
getDegk
()
==
null
?
0
:
xzxj
.
getDegk
());
//公式变量值2
}
else
{
}
else
{
String
xxs
=
"自动提取数据"
;
String
xxs
=
"自动提取数据"
;
String
[]
strxz
=
{
"从月度汇总-"
};
String
[]
strxz
=
{
"从月度汇总-"
};
...
@@ -445,6 +455,8 @@ public class SalaryManagementController {
...
@@ -445,6 +455,8 @@ public class SalaryManagementController {
zzx
.
setGsid
(
0
);
//公式id 0:未关联规则
zzx
.
setGsid
(
0
);
//公式id 0:未关联规则
zzx
.
setGsgs
(
strxz
[
0
]
+
att
[
a
]
+
xxs
);
//公式格式 系统提供/自定义公式
zzx
.
setGsgs
(
strxz
[
0
]
+
att
[
a
]
+
xxs
);
//公式格式 系统提供/自定义公式
zzx
.
setRulestate
(
0
);
//规则状态[0:系统自动提取;1:系统固定值;2:固定公式计算;3:自定义公式计算;4:每月自动导入]
zzx
.
setRulestate
(
0
);
//规则状态[0:系统自动提取;1:系统固定值;2:固定公式计算;3:自定义公式计算;4:每月自动导入]
zzx
.
setDygk
(
0.0
);
//公式变量值1
zzx
.
setDegk
(
0.0
);
//公式变量值2
}
}
XcglAssoOption
opt
=
new
LambdaQueryChainWrapper
<
XcglAssoOption
>(
xcglassooptionmapper
).
eq
(
XcglAssoOption:
:
getOptionname
,
att
[
a
]).
one
();
XcglAssoOption
opt
=
new
LambdaQueryChainWrapper
<
XcglAssoOption
>(
xcglassooptionmapper
).
eq
(
XcglAssoOption:
:
getOptionname
,
att
[
a
]).
one
();
zzx
.
setOptionid
(
opt
.
getId
());
zzx
.
setOptionid
(
opt
.
getId
());
...
@@ -478,6 +490,8 @@ public class SalaryManagementController {
...
@@ -478,6 +490,8 @@ public class SalaryManagementController {
zzx
.
setJxgzid
(
groid
);
//计薪规则组id 0:未加入组
zzx
.
setJxgzid
(
groid
);
//计薪规则组id 0:未加入组
zzx
.
setRemarks
(
""
);
//备注
zzx
.
setRemarks
(
""
);
//备注
zzx
.
setXzzid
(
payid
);
zzx
.
setXzzid
(
payid
);
zzx
.
setDygk
(
0.0
);
//公式变量值1
zzx
.
setDegk
(
0.0
);
//公式变量值2
gzzxlist
.
add
(
zzx
);
gzzxlist
.
add
(
zzx
);
}
}
if
(
gzzxlist
.
size
()
>
0
)
{
if
(
gzzxlist
.
size
()
>
0
)
{
...
@@ -496,11 +510,16 @@ public class SalaryManagementController {
...
@@ -496,11 +510,16 @@ public class SalaryManagementController {
zzx
.
setGsid
(
xzxj
.
getId
());
//公式id 0:未关联规则
zzx
.
setGsid
(
xzxj
.
getId
());
//公式id 0:未关联规则
zzx
.
setGsgs
(
xzxj
.
getGsxs
().
replace
(
"{{"
,
""
).
replace
(
"}}"
,
""
));
//公式格式 系统提供/自定义公式
zzx
.
setGsgs
(
xzxj
.
getGsxs
().
replace
(
"{{"
,
""
).
replace
(
"}}"
,
""
));
//公式格式 系统提供/自定义公式
zzx
.
setRulestate
(
xzxj
.
getRulestate
());
//规则状态[0:系统自动提取;1:系统固定值;2:固定公式计算;3:自定义公式计算;4:每月自动导入]
zzx
.
setRulestate
(
xzxj
.
getRulestate
());
//规则状态[0:系统自动提取;1:系统固定值;2:固定公式计算;3:自定义公式计算;4:每月自动导入]
zzx
.
setDygk
(
xzxj
.
getDygk
()
==
null
?
0
:
xzxj
.
getDygk
());
//公式变量值1
zzx
.
setDegk
(
xzxj
.
getDegk
()
==
null
?
0
:
xzxj
.
getDegk
());
//公式变量值2
}
else
{
}
else
{
zzx
.
setRule
(
"每月手动导入"
);
//规则********************************
zzx
.
setRule
(
"每月手动导入"
);
//规则********************************
zzx
.
setGsid
(
0
);
//公式id 0:未关联规则
zzx
.
setGsid
(
0
);
//公式id 0:未关联规则
zzx
.
setGsgs
(
"每月手动导入"
);
//公式格式 系统提供/自定义公式
zzx
.
setGsgs
(
"每月手动导入"
);
//公式格式 系统提供/自定义公式
zzx
.
setRulestate
(
4
);
//规则状态[0:系统自动提取;1:系统固定值;2:固定公式计算;3:自定义公式计算;4:每月自动导入]
zzx
.
setRulestate
(
4
);
//规则状态[0:系统自动提取;1:系统固定值;2:固定公式计算;3:自定义公式计算;4:每月自动导入]
zzx
.
setDygk
(
0.0
);
//公式变量值1
zzx
.
setDegk
(
0.0
);
//公式变量值2
}
}
XcglAssoOption
opt
=
new
LambdaQueryChainWrapper
<
XcglAssoOption
>(
xcglassooptionmapper
).
eq
(
XcglAssoOption:
:
getOptionname
,
yingfa
[
a
]).
one
();
XcglAssoOption
opt
=
new
LambdaQueryChainWrapper
<
XcglAssoOption
>(
xcglassooptionmapper
).
eq
(
XcglAssoOption:
:
getOptionname
,
yingfa
[
a
]).
one
();
zzx
.
setOptionid
(
opt
.
getId
());
zzx
.
setOptionid
(
opt
.
getId
());
...
@@ -536,6 +555,8 @@ public class SalaryManagementController {
...
@@ -536,6 +555,8 @@ public class SalaryManagementController {
zzx
.
setJxgzid
(
groid
);
//计薪规则组id 0:未加入组
zzx
.
setJxgzid
(
groid
);
//计薪规则组id 0:未加入组
zzx
.
setRemarks
(
""
);
//备注
zzx
.
setRemarks
(
""
);
//备注
zzx
.
setXzzid
(
payid
);
zzx
.
setXzzid
(
payid
);
zzx
.
setDygk
(
0.0
);
//公式变量值1
zzx
.
setDegk
(
0.0
);
//公式变量值2
gzzxlist
.
add
(
zzx
);
gzzxlist
.
add
(
zzx
);
}
}
if
(
gzzxlist
.
size
()
>
0
)
{
if
(
gzzxlist
.
size
()
>
0
)
{
...
@@ -556,11 +577,16 @@ public class SalaryManagementController {
...
@@ -556,11 +577,16 @@ public class SalaryManagementController {
zzx
.
setGsid
(
xzxj
.
getId
());
//公式id 0:未关联规则
zzx
.
setGsid
(
xzxj
.
getId
());
//公式id 0:未关联规则
zzx
.
setGsgs
(
xzxj
.
getGsxs
().
replace
(
"{{"
,
""
).
replace
(
"}}"
,
""
));
//公式格式 系统提供/自定义公式
zzx
.
setGsgs
(
xzxj
.
getGsxs
().
replace
(
"{{"
,
""
).
replace
(
"}}"
,
""
));
//公式格式 系统提供/自定义公式
zzx
.
setRulestate
(
xzxj
.
getRulestate
());
//规则状态[0:系统自动提取;1:系统固定值;2:固定公式计算;3:自定义公式计算;4:每月自动导入]
zzx
.
setRulestate
(
xzxj
.
getRulestate
());
//规则状态[0:系统自动提取;1:系统固定值;2:固定公式计算;3:自定义公式计算;4:每月自动导入]
zzx
.
setDygk
(
xzxj
.
getDygk
()
==
null
?
0
:
xzxj
.
getDygk
());
//公式变量值1
zzx
.
setDegk
(
xzxj
.
getDegk
()
==
null
?
0
:
xzxj
.
getDegk
());
//公式变量值2
}
else
{
}
else
{
zzx
.
setRule
(
"每月手动导入"
);
//规则********************************
zzx
.
setRule
(
"每月手动导入"
);
//规则********************************
zzx
.
setGsid
(
0
);
//公式id 0:未关联规则
zzx
.
setGsid
(
0
);
//公式id 0:未关联规则
zzx
.
setGsgs
(
"每月手动导入"
);
//公式格式 系统提供/自定义公式
zzx
.
setGsgs
(
"每月手动导入"
);
//公式格式 系统提供/自定义公式
zzx
.
setRulestate
(
4
);
//规则状态[0:系统自动提取;1:系统固定值;2:固定公式计算;3:自定义公式计算;4:每月自动导入]
zzx
.
setRulestate
(
4
);
//规则状态[0:系统自动提取;1:系统固定值;2:固定公式计算;3:自定义公式计算;4:每月自动导入]
zzx
.
setDygk
(
0.0
);
//公式变量值1
zzx
.
setDegk
(
0.0
);
//公式变量值2
}
}
XcglAssoOption
opt
=
new
LambdaQueryChainWrapper
<
XcglAssoOption
>(
xcglassooptionmapper
).
eq
(
XcglAssoOption:
:
getOptionname
,
jsjsf
[
a
]).
one
();
XcglAssoOption
opt
=
new
LambdaQueryChainWrapper
<
XcglAssoOption
>(
xcglassooptionmapper
).
eq
(
XcglAssoOption:
:
getOptionname
,
jsjsf
[
a
]).
one
();
...
@@ -599,6 +625,10 @@ public class SalaryManagementController {
...
@@ -599,6 +625,10 @@ public class SalaryManagementController {
zzx
.
setRulestate
(
zxs
.
getRulestate
());
//规则状态[0:系统自动提取;1:系统固定值;2:固定公式计算;3:自定义公式计算;4:每月自动导入]
zzx
.
setRulestate
(
zxs
.
getRulestate
());
//规则状态[0:系统自动提取;1:系统固定值;2:固定公式计算;3:自定义公式计算;4:每月自动导入]
zzx
.
setOptionid
(
zxs
.
getOptionid
());
zzx
.
setOptionid
(
zxs
.
getOptionid
());
zzx
.
setDygk
(
zxs
.
getDygk
());
//公式变量值1
zzx
.
setDegk
(
zxs
.
getDegk
());
//公式变量值2
wjrfzzzxlist
.
add
(
zzx
);
wjrfzzzxlist
.
add
(
zzx
);
}
}
if
(
wjrfzzzxlist
.
size
()
>
0
)
{
if
(
wjrfzzzxlist
.
size
()
>
0
)
{
...
@@ -640,6 +670,9 @@ public class SalaryManagementController {
...
@@ -640,6 +670,9 @@ public class SalaryManagementController {
zzx
.
setXzzid
(
payid
);
zzx
.
setXzzid
(
payid
);
zzx
.
setRulestate
(
yzxs
.
getRulestate
());
//规则状态[0:系统自动提取;1:系统固定值;2:固定公式计算;3:自定义公式计算;4:每月自动导入]
zzx
.
setRulestate
(
yzxs
.
getRulestate
());
//规则状态[0:系统自动提取;1:系统固定值;2:固定公式计算;3:自定义公式计算;4:每月自动导入]
zzx
.
setOptionid
(
yzxs
.
getOptionid
());
zzx
.
setOptionid
(
yzxs
.
getOptionid
());
zzx
.
setDygk
(
yzxs
.
getDygk
());
//公式变量值1
zzx
.
setDegk
(
yzxs
.
getDegk
());
//公式变量值2
yjrfzzzxlist
.
add
(
zzx
);
yjrfzzzxlist
.
add
(
zzx
);
}
}
if
(
yjrfzzzxlist
.
size
()
>
0
)
{
if
(
yjrfzzzxlist
.
size
()
>
0
)
{
...
@@ -2234,6 +2267,9 @@ public class SalaryManagementController {
...
@@ -2234,6 +2267,9 @@ public class SalaryManagementController {
zzx
.
setRulestate
(
zxs
.
getRulestate
());
//规则状态[0:系统自动提取;1:系统固定值;2:固定公式计算;3:自定义公式计算;4:每月自动导入]
zzx
.
setRulestate
(
zxs
.
getRulestate
());
//规则状态[0:系统自动提取;1:系统固定值;2:固定公式计算;3:自定义公式计算;4:每月自动导入]
zzx
.
setOptionid
(
zxs
.
getOptionid
());
zzx
.
setOptionid
(
zxs
.
getOptionid
());
zzx
.
setDygk
(
zxs
.
getDygk
());
//公式变量值1
zzx
.
setDegk
(
zxs
.
getDegk
());
//公式变量值2
wjrfzzzxlist
.
add
(
zzx
);
wjrfzzzxlist
.
add
(
zzx
);
}
}
if
(
wjrfzzzxlist
.
size
()
>
0
)
{
if
(
wjrfzzzxlist
.
size
()
>
0
)
{
...
@@ -2275,6 +2311,9 @@ public class SalaryManagementController {
...
@@ -2275,6 +2311,9 @@ public class SalaryManagementController {
zzx
.
setXzzid
(
payid
);
zzx
.
setXzzid
(
payid
);
zzx
.
setRulestate
(
yzxs
.
getRulestate
());
//规则状态[0:系统自动提取;1:系统固定值;2:固定公式计算;3:自定义公式计算;4:每月自动导入]
zzx
.
setRulestate
(
yzxs
.
getRulestate
());
//规则状态[0:系统自动提取;1:系统固定值;2:固定公式计算;3:自定义公式计算;4:每月自动导入]
zzx
.
setOptionid
(
yzxs
.
getOptionid
());
zzx
.
setOptionid
(
yzxs
.
getOptionid
());
zzx
.
setDygk
(
yzxs
.
getDygk
());
//公式变量值1
zzx
.
setDegk
(
yzxs
.
getDegk
());
//公式变量值2
yjrfzzzxlist
.
add
(
zzx
);
yjrfzzzxlist
.
add
(
zzx
);
}
}
if
(
yjrfzzzxlist
.
size
()
>
0
)
{
if
(
yjrfzzzxlist
.
size
()
>
0
)
{
...
@@ -3395,8 +3434,8 @@ public class SalaryManagementController {
...
@@ -3395,8 +3434,8 @@ public class SalaryManagementController {
two
.
setField
(
sjxx
.
getDuration
());
two
.
setField
(
sjxx
.
getDuration
());
detailed
.
add
(
two
);
detailed
.
add
(
two
);
}
}
spe
.
setDetailed
(
detailed
);
spe
.
setDetailed
(
detailed
);
}
}
//病假扣款
//病假扣款
if
(
xzx
.
getOptionid
()
==
28
)
{
if
(
xzx
.
getOptionid
()
==
28
)
{
...
@@ -3432,14 +3471,44 @@ public class SalaryManagementController {
...
@@ -3432,14 +3471,44 @@ public class SalaryManagementController {
spe
.
setItemname
(
xzx
.
getSalaryitem
());
//
spe
.
setItemname
(
xzx
.
getSalaryitem
());
//
spe
.
setDeduction
(
xzb
==
null
?
0
:
xzb
.
getXzxjg
());
//
spe
.
setDeduction
(
xzb
==
null
?
0
:
xzb
.
getXzxjg
());
//
KqglAssoMonthPunchSummary
kgts
=
KqglAssoMonthPunchSummary
.
builder
().
build
().
selectOne
(
new
QueryWrapper
<
KqglAssoMonthPunchSummary
>().
lambda
().
eq
(
KqglAssoMonthPunchSummary:
:
getNum
,
pays
.
getUserid
())
.
eq
(
KqglAssoMonthPunchSummary:
:
getOrgCode
,
userBean
.
getOrgCode
()).
eq
(
KqglAssoMonthPunchSummary:
:
getBelongYear
,
pays
.
getXzyf
().
substring
(
0
,
4
)).
eq
(
KqglAssoMonthPunchSummary:
:
getBelongMonth
,
pays
.
getXzyf
().
substring
(
5
,
7
)));
if
(
xzx
.
getGsid
()
==
7
)
{
//天数
spe
.
setFieldone
(
"共"
+
kgts
==
null
?
"0"
:
String
.
valueOf
(
kgts
.
getAbsenteeismDays
())+
"天"
);
}
else
if
(
xzx
.
getGsid
()
==
8
)
{
spe
.
setFieldone
(
"共"
+
kgts
==
null
?
"0"
:
String
.
valueOf
(
kgts
.
getAbsenteeismDays
())+
"次"
);
}
spe
.
setFieldtwo
(
""
);
spe
.
setFieldtwo
(
""
);
com
.
alibaba
.
fastjson
.
JSONObject
jo
=
(
com
.
alibaba
.
fastjson
.
JSONObject
)
com
.
alibaba
.
fastjson
.
JSONObject
.
toJSON
(
kgts
);
//旷工具体天数
for
(
String
str:
jo
.
keySet
()){
if
(
jo
.
get
(
str
).
equals
(
"旷工"
)
&&
str
.
contains
(
"day"
))
{
AppPaysSalaryTwoDto
two
=
new
AppPaysSalaryTwoDto
();
two
.
setTerm
(
"旷工日期"
);
String
rq
=
str
.
substring
(
str
.
indexOf
(
"y"
)+
1
);
int
qq
=
Integer
.
valueOf
(
str
.
substring
(
str
.
indexOf
(
"y"
)+
1
));
if
(
qq
<=
9
)
{
rq
=
"0"
+
qq
;
}
two
.
setSpecifictime
(
pays
.
getXzyf
().
substring
(
5
,
7
)+
"-"
+
rq
);
two
.
setField
(
0.0
);
detailed
.
add
(
two
);
}
}
spe
.
setDetailed
(
detailed
);
}
}
//迟到早退扣款
//迟到早退扣款
if
(
xzx
.
getOptionid
()
==
30
)
{
if
(
xzx
.
getOptionid
()
==
30
)
{
spe
.
setItemname
(
xzx
.
getSalaryitem
());
//
spe
.
setDeduction
(
xzb
==
null
?
0
:
xzb
.
getXzxjg
());
//扣款金额
if
(
xzx
.
getGsid
()
==
1
)
{
//次数
}
else
if
(
xzx
.
getGsid
()
==
2
)
{
//分钟
}
spe
.
setDetailed
(
detailed
);
}
}
//司龄工资
//司龄工资
...
...
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