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
09ce455a
Commit
09ce455a
authored
Jan 07, 2021
by
leialin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复BUG
parent
e88983ef
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
60 additions
and
32 deletions
+60
-32
src/main/java/cn/timer/api/controller/kqgl/AttController.java
+3
-3
src/main/java/cn/timer/api/controller/kqgl/atttimer/AttendanceTaskTiming.java
+4
-4
src/main/java/cn/timer/api/controller/kqgl/atttimer/LastMonthtimingExport.java
+2
-2
src/main/java/cn/timer/api/controller/kqgl/atttimer/OnClickAttendanceTaskTiming.java
+0
-0
src/main/java/cn/timer/api/controller/kqgl/atttimer/OnClickLastMonthtimingExport.java
+0
-0
src/main/java/cn/timer/api/controller/kqgl/atttimer/RealTimeUpdate.java
+2
-4
src/main/java/cn/timer/api/controller/xcgl/SalaryManagementController.java
+31
-17
src/main/java/cn/timer/api/controller/xcgl/SalaryTool.java
+14
-0
src/main/java/cn/timer/api/dao/kqgl/PunchCardDetailsMapper.java
+1
-1
src/main/java/cn/timer/api/dao/kqmk/KqglAssoDkmxMapper.java
+1
-1
src/main/resources/mapping/kqgl/PunchCardDetailsMapper.xml
+1
-0
src/main/resources/mapping/kqmk/KqglAssoDkmxMapper.xml
+1
-0
No files found.
src/main/java/cn/timer/api/controller/kqgl/AttController.java
View file @
09ce455a
...
@@ -1859,7 +1859,7 @@ public class AttController {
...
@@ -1859,7 +1859,7 @@ public class AttController {
apr
.
setRestday
(
xiuxi
);
//休息天数
apr
.
setRestday
(
xiuxi
);
//休息天数
apr
.
setAnswerday
(
y
);
//应出勤
apr
.
setAnswerday
(
y
);
//应出勤
}
}
List
<
PunchCardDetails
>
attendance
=
punchcarddetailsservice
.
selectAttendanceDays
(
Integer
.
valueOf
(
kqry
.
getEmpNum
()),
startDate
,
endDate
);
//打卡记录
List
<
PunchCardDetails
>
attendance
=
punchcarddetailsservice
.
selectAttendanceDays
(
Integer
.
valueOf
(
kqry
.
getEmpNum
()),
startDate
,
endDate
,
qyid
);
//打卡记录
apr
.
setActualday
(
attendance
.
size
());
//已出勤
apr
.
setActualday
(
attendance
.
size
());
//已出勤
if
(
apr
.
getAnswerday
()
>
0
){
if
(
apr
.
getAnswerday
()
>
0
){
BigDecimal
g
=
new
BigDecimal
(
apr
.
getAnswerday
());
BigDecimal
g
=
new
BigDecimal
(
apr
.
getAnswerday
());
...
@@ -2233,7 +2233,7 @@ public class AttController {
...
@@ -2233,7 +2233,7 @@ public class AttController {
attcal
.
setAttshouldmade
(
y
);
//应出勤
attcal
.
setAttshouldmade
(
y
);
//应出勤
}
}
List
<
PunchCardDetails
>
attendance
=
punchcarddetailsservice
.
selectAttendanceDays
(
userid
,
startDate
,
endDate
);
//打卡记录
List
<
PunchCardDetails
>
attendance
=
punchcarddetailsservice
.
selectAttendanceDays
(
userid
,
startDate
,
endDate
,
qyid
);
//打卡记录
attcal
.
setAttendance
(
attendance
.
size
());
//已出勤
attcal
.
setAttendance
(
attendance
.
size
());
//已出勤
...
@@ -5118,7 +5118,7 @@ public class AttController {
...
@@ -5118,7 +5118,7 @@ public class AttController {
apr
.
setRestday
(
xiuxi
);
//休息天数
apr
.
setRestday
(
xiuxi
);
//休息天数
apr
.
setAnswerday
(
y
);
//应出勤
apr
.
setAnswerday
(
y
);
//应出勤
}
}
List
<
PunchCardDetails
>
attendance
=
punchcarddetailsservice
.
selectAttendanceDays
(
Integer
.
valueOf
(
kqry
.
getEmpNum
()),
startDate
,
endDate
);
//打卡记录
List
<
PunchCardDetails
>
attendance
=
punchcarddetailsservice
.
selectAttendanceDays
(
Integer
.
valueOf
(
kqry
.
getEmpNum
()),
startDate
,
endDate
,
qyid
);
//打卡记录
apr
.
setActualday
(
attendance
.
size
());
//已出勤
apr
.
setActualday
(
attendance
.
size
());
//已出勤
if
(
apr
.
getAnswerday
()
>
0
){
if
(
apr
.
getAnswerday
()
>
0
){
BigDecimal
g
=
new
BigDecimal
(
apr
.
getAnswerday
());
BigDecimal
g
=
new
BigDecimal
(
apr
.
getAnswerday
());
...
...
src/main/java/cn/timer/api/controller/kqgl/atttimer/AttendanceTaskTiming.java
View file @
09ce455a
...
@@ -92,8 +92,8 @@ public class AttendanceTaskTiming{
...
@@ -92,8 +92,8 @@ public class AttendanceTaskTiming{
// @Scheduled(cron = "0 */2 * * * ?")
// @Scheduled(cron = "0 */2 * * * ?")
// @Scheduled(cron = "0 25 11 * * ?")
@Scheduled
(
cron
=
"0 0 8,12,16,20 * * ?"
)
//每天上午8、12点,下午16点,20点 执行
@Scheduled
(
cron
=
"0 0 8,12,16,20 * * ?"
)
//每天上午8、12点,下午16点,20点 执行
// @Scheduled(cron = "0 0 6,20 * * ?")
public
void
AttendanceTask
()
throws
ParseException
{
public
void
AttendanceTask
()
throws
ParseException
{
boolean
implement
=
true
;
boolean
implement
=
true
;
...
@@ -117,7 +117,7 @@ public class AttendanceTaskTiming{
...
@@ -117,7 +117,7 @@ public class AttendanceTaskTiming{
int
summaryid
=
0
;
//汇总id
int
summaryid
=
0
;
//汇总id
List
<
QyzxEntInfoM
>
orgcodelist
=
qyzxentinfommapper
.
selectList
(
new
QueryWrapper
<
QyzxEntInfoM
>());
//系统中的所有公司 所有未到期的公司
List
<
QyzxEntInfoM
>
orgcodelist
=
qyzxentinfommapper
.
selectList
(
new
QueryWrapper
<
QyzxEntInfoM
>());
//系统中的所有公司 所有未到期的公司
// List<QyzxEntInfoM> orgcodelist = qyzxentinfommapper.selectList(new QueryWrapper<QyzxEntInfoM>().lambda().eq(QyzxEntInfoM::getId,
3
));
// List<QyzxEntInfoM> orgcodelist = qyzxentinfommapper.selectList(new QueryWrapper<QyzxEntInfoM>().lambda().eq(QyzxEntInfoM::getId,
1
));
for
(
int
t
=
0
;
t
<
orgcodelist
.
size
();
t
++){
for
(
int
t
=
0
;
t
<
orgcodelist
.
size
();
t
++){
int
org_code
=
orgcodelist
.
get
(
t
).
getId
();
//企业组织代码
int
org_code
=
orgcodelist
.
get
(
t
).
getId
();
//企业组织代码
...
@@ -148,7 +148,7 @@ public class AttendanceTaskTiming{
...
@@ -148,7 +148,7 @@ public class AttendanceTaskTiming{
//考勤组信息
//考勤组信息
KqglMainKqz
attgro
=
kqglmainkqzmapper
.
getAttendanceGroupInformationByUserid
(
user
.
getEmpnum
(),
org_code
);
KqglMainKqz
attgro
=
kqglmainkqzmapper
.
getAttendanceGroupInformationByUserid
(
user
.
getEmpnum
(),
org_code
);
//目前为止打卡记录
//目前为止打卡记录
List
<
PunchCardDetails
>
attendance
=
punchcarddetailsmapper
.
selectAttendanceDays
(
user
.
getEmpnum
(),
startDate
,
endDate
);
List
<
PunchCardDetails
>
attendance
=
punchcarddetailsmapper
.
selectAttendanceDays
(
user
.
getEmpnum
(),
startDate
,
endDate
,
org_code
);
int
fdjjrnum
=
0
;
int
fdjjrnum
=
0
;
if
(
attgro
!=
null
)
{
if
(
attgro
!=
null
)
{
...
@@ -451,7 +451,7 @@ public class AttendanceTaskTiming{
...
@@ -451,7 +451,7 @@ public class AttendanceTaskTiming{
}
}
}
}
}
}
AttSubsidiaryDto
subs
=
kqglassodkmxmapper
.
subsidiary
(
user
.
getEmpnum
(),
ttstr
);
AttSubsidiaryDto
subs
=
kqglassodkmxmapper
.
subsidiary
(
user
.
getEmpnum
(),
ttstr
,
org_code
);
// //工作时长(分钟)、严重迟到次数、严重迟到时长(分钟)、旷工迟到次数
// //工作时长(分钟)、严重迟到次数、严重迟到时长(分钟)、旷工迟到次数
// double workinghours = 0,seriouslatetimes = 0,seriouslatehours = 0,absenlatetimes = 0;
// double workinghours = 0,seriouslatetimes = 0,seriouslatehours = 0,absenlatetimes = 0;
if
(
subs
!=
null
)
{
if
(
subs
!=
null
)
{
...
...
src/main/java/cn/timer/api/controller/kqgl/atttimer/LastMonthtimingExport.java
View file @
09ce455a
...
@@ -157,7 +157,7 @@ public class LastMonthtimingExport {
...
@@ -157,7 +157,7 @@ public class LastMonthtimingExport {
//考勤组信息
//考勤组信息
KqglMainKqz
attgro
=
kqglmainkqzmapper
.
getAttendanceGroupInformationByUserid
(
user
.
getEmpnum
(),
org_code
);
KqglMainKqz
attgro
=
kqglmainkqzmapper
.
getAttendanceGroupInformationByUserid
(
user
.
getEmpnum
(),
org_code
);
//目前为止打卡记录
//目前为止打卡记录
List
<
PunchCardDetails
>
attendance
=
punchcarddetailsmapper
.
selectAttendanceDays
(
user
.
getEmpnum
(),
startDate
,
endDate
);
List
<
PunchCardDetails
>
attendance
=
punchcarddetailsmapper
.
selectAttendanceDays
(
user
.
getEmpnum
(),
startDate
,
endDate
,
org_code
);
int
fdjjrnum
=
0
;
int
fdjjrnum
=
0
;
if
(
attgro
!=
null
)
{
if
(
attgro
!=
null
)
{
...
@@ -498,7 +498,7 @@ public class LastMonthtimingExport {
...
@@ -498,7 +498,7 @@ public class LastMonthtimingExport {
}
}
}
}
}
}
AttSubsidiaryDto
subs
=
kqglassodkmxmapper
.
subsidiary
(
user
.
getEmpnum
(),
ttstr
);
AttSubsidiaryDto
subs
=
kqglassodkmxmapper
.
subsidiary
(
user
.
getEmpnum
(),
ttstr
,
org_code
);
// //工作时长(分钟)、严重迟到次数、严重迟到时长(分钟)、旷工迟到次数
// //工作时长(分钟)、严重迟到次数、严重迟到时长(分钟)、旷工迟到次数
// double workinghours = 0,seriouslatetimes = 0,seriouslatehours = 0,absenlatetimes = 0;
// double workinghours = 0,seriouslatetimes = 0,seriouslatehours = 0,absenlatetimes = 0;
if
(
subs
!=
null
)
{
if
(
subs
!=
null
)
{
...
...
src/main/java/cn/timer/api/controller/kqgl/atttimer/OnClickAttendanceTaskTiming.java
deleted
100644 → 0
View file @
e88983ef
This diff is collapsed.
Click to expand it.
src/main/java/cn/timer/api/controller/kqgl/atttimer/OnClickLastMonthtimingExport.java
deleted
100644 → 0
View file @
e88983ef
This diff is collapsed.
Click to expand it.
src/main/java/cn/timer/api/controller/kqgl/atttimer/RealTimeUpdate.java
View file @
09ce455a
...
@@ -84,8 +84,6 @@ public class RealTimeUpdate{
...
@@ -84,8 +84,6 @@ public class RealTimeUpdate{
private
PunchRecordMapper
punchrecordmapper
;
private
PunchRecordMapper
punchrecordmapper
;
@Autowired
@Autowired
private
KqglAssoDkmxMapper
kqglassodkmxmapper
;
private
KqglAssoDkmxMapper
kqglassodkmxmapper
;
@Autowired
private
ClockInController
clockincontroller
;
/**
/**
...
@@ -150,7 +148,7 @@ public class RealTimeUpdate{
...
@@ -150,7 +148,7 @@ public class RealTimeUpdate{
//考勤组信息
//考勤组信息
KqglMainKqz
attgro
=
kqglmainkqzmapper
.
getAttendanceGroupInformationByUserid
(
user
.
getEmpnum
(),
org_code
);
KqglMainKqz
attgro
=
kqglmainkqzmapper
.
getAttendanceGroupInformationByUserid
(
user
.
getEmpnum
(),
org_code
);
//目前为止打卡记录
//目前为止打卡记录
List
<
PunchCardDetails
>
attendance
=
punchcarddetailsmapper
.
selectAttendanceDays
(
user
.
getEmpnum
(),
startDate
,
endDateyesterday
);
List
<
PunchCardDetails
>
attendance
=
punchcarddetailsmapper
.
selectAttendanceDays
(
user
.
getEmpnum
(),
startDate
,
endDateyesterday
,
org_code
);
int
fdjjrnum
=
0
;
int
fdjjrnum
=
0
;
...
@@ -489,7 +487,7 @@ public class RealTimeUpdate{
...
@@ -489,7 +487,7 @@ public class RealTimeUpdate{
}
}
}
}
}
}
AttSubsidiaryDto
subs
=
kqglassodkmxmapper
.
subsidiary
(
user
.
getEmpnum
(),
ttstr
);
AttSubsidiaryDto
subs
=
kqglassodkmxmapper
.
subsidiary
(
user
.
getEmpnum
(),
ttstr
,
org_code
);
// //工作时长(分钟)、严重迟到次数、严重迟到时长(分钟)、旷工迟到次数
// //工作时长(分钟)、严重迟到次数、严重迟到时长(分钟)、旷工迟到次数
// double workinghours = 0,seriouslatetimes = 0,seriouslatehours = 0,absenlatetimes = 0;
// double workinghours = 0,seriouslatetimes = 0,seriouslatehours = 0,absenlatetimes = 0;
if
(
subs
!=
null
)
{
if
(
subs
!=
null
)
{
...
...
src/main/java/cn/timer/api/controller/xcgl/SalaryManagementController.java
View file @
09ce455a
...
@@ -1526,7 +1526,13 @@ public class SalaryManagementController {
...
@@ -1526,7 +1526,13 @@ public class SalaryManagementController {
if
(
file
.
getSfdx
()
==
0
)
{
if
(
file
.
getSfdx
()
==
0
)
{
XcglAssoXzdadx
xzdadx
=
XcglAssoXzdadx
.
builder
().
build
();
XcglAssoXzdadx
xzdadx
=
XcglAssoXzdadx
.
builder
().
build
();
xzdadx
.
setUserid
(
emp
.
getEmpNum
());
//用户id
xzdadx
.
setUserid
(
emp
.
getEmpNum
());
//用户id
xzdadx
.
setSxrq
(
file
.
getSxrq
().
replace
(
"/"
,
"-"
));
//生效日期
String
sxrq
=
file
.
getSxrq
().
substring
(
0
,
5
)
+
"20"
+
file
.
getSxrq
().
substring
(
5
,
7
);
if
(
sxrq
.
contains
(
"/"
))
{
xzdadx
.
setSxrq
(
SalaryTool
.
SlashDate
(
sxrq
));
//生效日期
}
else
{
xzdadx
.
setSxrq
(
file
.
getSxrq
());
//生效日期
}
xzdadx
.
setAddtime
(
new
Date
().
getTime
());
xzdadx
.
setAddtime
(
new
Date
().
getTime
());
xzdadx
.
setRemarks
(
""
);
xzdadx
.
setRemarks
(
""
);
xzdadx
.
setQyid
(
userBean
.
getOrgCode
());
xzdadx
.
setQyid
(
userBean
.
getOrgCode
());
...
@@ -1588,7 +1594,12 @@ public class SalaryManagementController {
...
@@ -1588,7 +1594,12 @@ public class SalaryManagementController {
}
}
XcglAssoXzdadx
xzdadx
=
XcglAssoXzdadx
.
builder
().
build
();
XcglAssoXzdadx
xzdadx
=
XcglAssoXzdadx
.
builder
().
build
();
xzdadx
.
setUserid
(
emp
.
getEmpNum
());
//用户id
xzdadx
.
setUserid
(
emp
.
getEmpNum
());
//用户id
String
sxrq
=
file
.
getSxrq
().
substring
(
0
,
5
)
+
"20"
+
file
.
getSxrq
().
substring
(
5
,
7
);
if
(
sxrq
.
contains
(
"/"
))
{
xzdadx
.
setSxrq
(
SalaryTool
.
SlashDate
(
sxrq
));
//生效日期
}
else
{
xzdadx
.
setSxrq
(
file
.
getSxrq
());
//生效日期
xzdadx
.
setSxrq
(
file
.
getSxrq
());
//生效日期
}
xzdadx
.
setAddtime
(
new
Date
().
getTime
());
xzdadx
.
setAddtime
(
new
Date
().
getTime
());
xzdadx
.
setXgyhid
(
userBean
.
getEmpNum
());
//修改用户id
xzdadx
.
setXgyhid
(
userBean
.
getEmpNum
());
//修改用户id
xzdadx
.
setRemarks
(
""
);
xzdadx
.
setRemarks
(
""
);
...
@@ -2350,12 +2361,12 @@ public class SalaryManagementController {
...
@@ -2350,12 +2361,12 @@ public class SalaryManagementController {
double
continueedu_
=
0
;
//累计继续教育
double
continueedu_
=
0
;
//累计继续教育
double
totalmoney_
=
0
;
//累计专项附加扣除
double
totalmoney_
=
0
;
//累计专项附加扣除
if
(!
status
&&
sygs
!=
null
)
{
if
(!
status
&&
sygs
!=
null
)
{
childrenedu_
=
sygs
.
getCumZljy
();
childrenedu_
=
sygs
.
getCumZljy
()
==
null
?
0
:
sygs
.
getCumZljy
()
;
houseloans_
=
sygs
.
getCumZfdklx
();
houseloans_
=
sygs
.
getCumZfdklx
()
==
null
?
0
:
sygs
.
getCumZfdklx
()
;
houserents_
=
sygs
.
getCumZfzj
();
houserents_
=
sygs
.
getCumZfzj
()
==
null
?
0
:
sygs
.
getCumZfzj
()
;
supportolder_
=
sygs
.
getCumSylr
();
supportolder_
=
sygs
.
getCumSylr
()
==
null
?
0
:
sygs
.
getCumSylr
()
;
continueedu_
=
sygs
.
getCumJxjy
();
continueedu_
=
sygs
.
getCumJxjy
()
==
null
?
0
:
sygs
.
getCumJxjy
()
;
totalmoney_
=
sygs
.
getCumZxfjkc
();
totalmoney_
=
sygs
.
getCumZxfjkc
()
==
null
?
0
:
sygs
.
getCumZxfjkc
()
;
}
}
YgglMainEmp
yh
=
YgglMainEmp
.
builder
().
build
().
selectOne
(
new
QueryWrapper
<
YgglMainEmp
>().
lambda
().
eq
(
YgglMainEmp:
:
getEmpNum
,
gsus
).
eq
(
YgglMainEmp:
:
getOrgCode
,
orgcode
));
YgglMainEmp
yh
=
YgglMainEmp
.
builder
().
build
().
selectOne
(
new
QueryWrapper
<
YgglMainEmp
>().
lambda
().
eq
(
YgglMainEmp:
:
getEmpNum
,
gsus
).
eq
(
YgglMainEmp:
:
getOrgCode
,
orgcode
));
//对应算薪月份的专项附加扣除
//对应算薪月份的专项附加扣除
...
@@ -2414,8 +2425,8 @@ public class SalaryManagementController {
...
@@ -2414,8 +2425,8 @@ public class SalaryManagementController {
}
}
gsmx
.
setCumJcfy
(
cumjcfy
);
//累计减除费用 【5000*在职月份数】
gsmx
.
setCumJcfy
(
cumjcfy
);
//累计减除费用 【5000*在职月份数】
gsmx
.
setCumZxkc
((
cuspde
==
null
?
0
:
Double
.
valueOf
(
cuspde
.
getGrjltotal
()))
+
(
sygs
==
null
?
0
:
sygs
.
getCumZxkc
(
)));
//累计专项扣除 【本期专项扣除+累计专项扣除(上月)】
gsmx
.
setCumZxkc
((
cuspde
==
null
?
0
:
Double
.
valueOf
(
cuspde
.
getGrjltotal
()))
+
(
sygs
==
null
?
0
:
(
sygs
.
getCumZxkc
()
==
null
?
0
:
sygs
.
getCumZxkc
()
)));
//累计专项扣除 【本期专项扣除+累计专项扣除(上月)】
gsmx
.
setCumQtkc
(
other_deductions
+(
sygs
==
null
?
0
:
sygs
.
getCumQtkc
(
)));
//累计其他扣除 【其他扣除+累计其他扣除(上月)】
gsmx
.
setCumQtkc
(
other_deductions
+(
sygs
==
null
?
0
:
(
sygs
.
getCumQtkc
()
==
null
?
0
:
sygs
.
getCumQtkc
()
)));
//累计其他扣除 【其他扣除+累计其他扣除(上月)】
double
cumynssde
=
0
;
double
cumynssde
=
0
;
cumynssde
=
gsmx
.
getCumSre
()
-
cumjcfy
-
gsmx
.
getCumZxkc
()
-
gsmx
.
getCumZxfjkc
()
-
gsmx
.
getCumQtkc
();
cumynssde
=
gsmx
.
getCumSre
()
-
cumjcfy
-
gsmx
.
getCumZxkc
()
-
gsmx
.
getCumZxfjkc
()
-
gsmx
.
getCumQtkc
();
...
@@ -2427,7 +2438,7 @@ public class SalaryManagementController {
...
@@ -2427,7 +2438,7 @@ public class SalaryManagementController {
gsmx
.
setCumYnse
(
SalaryTool
.
formatDouble_
(
Double
.
valueOf
(
miscalculation
[
2
])));
//累计应纳税额 【累计应纳税所得额*税率-速算扣除数】
gsmx
.
setCumYnse
(
SalaryTool
.
formatDouble_
(
Double
.
valueOf
(
miscalculation
[
2
])));
//累计应纳税额 【累计应纳税所得额*税率-速算扣除数】
double
cumyyjse
=
0
;
double
cumyyjse
=
0
;
cumyyjse
=
(
sygs
==
null
?
0
:
sygs
.
getCumYyjse
())
+
(
sygs
==
null
?
0
:
sygs
.
getCumYbtse
(
));
cumyyjse
=
(
sygs
==
null
?
0
:
(
sygs
.
getCumYyjse
()
==
null
?
0
:
sygs
.
getCumYyjse
()))
+
(
sygs
==
null
?
0
:
(
sygs
.
getCumYbtse
()
==
null
?
0
:
sygs
.
getCumYbtse
()
));
gsmx
.
setCumYyjse
(
cumyyjse
);
//累计已预缴纳税额 【累计已预缴税额(上月)+累计应补(退)税额(上月)】
gsmx
.
setCumYyjse
(
cumyyjse
);
//累计已预缴纳税额 【累计已预缴税额(上月)+累计应补(退)税额(上月)】
double
cumybtse
=
0
;
double
cumybtse
=
0
;
...
@@ -2951,7 +2962,7 @@ public class SalaryManagementController {
...
@@ -2951,7 +2962,7 @@ public class SalaryManagementController {
attrep
.
setRestday
(
xiuxi
);
//休息天数
attrep
.
setRestday
(
xiuxi
);
//休息天数
attrep
.
setAnswerday
(
y
);
//应出勤
attrep
.
setAnswerday
(
y
);
//应出勤
}
}
List
<
PunchCardDetails
>
attendance
=
punchcarddetailsservice
.
selectAttendanceDays
(
userid
,
startDate
,
endDate
);
//打卡记录
List
<
PunchCardDetails
>
attendance
=
punchcarddetailsservice
.
selectAttendanceDays
(
userid
,
startDate
,
endDate
,
orgCode
);
//打卡记录
attrep
.
setActualday
(
attendance
.
size
());
//已出勤
attrep
.
setActualday
(
attendance
.
size
());
//已出勤
if
(
attrep
.
getAnswerday
()
>
0
){
if
(
attrep
.
getAnswerday
()
>
0
){
BigDecimal
g
=
new
BigDecimal
(
attrep
.
getAnswerday
());
BigDecimal
g
=
new
BigDecimal
(
attrep
.
getAnswerday
());
...
@@ -3419,19 +3430,19 @@ public class SalaryManagementController {
...
@@ -3419,19 +3430,19 @@ public class SalaryManagementController {
fjkc
.
setSupportolder
(
Double
.
valueOf
(
spec
.
getSylr
()));
//赡养老人
fjkc
.
setSupportolder
(
Double
.
valueOf
(
spec
.
getSylr
()));
//赡养老人
fjkc
.
setContinueedu
(
Double
.
valueOf
(
spec
.
getJxjy
()));
//继续教育
fjkc
.
setContinueedu
(
Double
.
valueOf
(
spec
.
getJxjy
()));
//继续教育
BigDecimal
num1
=
new
BigDecimal
(
spec
.
getZljy
(
));
BigDecimal
num1
=
new
BigDecimal
(
Double
.
valueOf
(
spec
.
getZljy
()
));
BigDecimal
num2
=
new
BigDecimal
(
spec
.
getZfdk
(
));
BigDecimal
num2
=
new
BigDecimal
(
Double
.
valueOf
(
spec
.
getZfdk
()
));
double
result1
=
num1
.
add
(
num2
).
doubleValue
();
double
result1
=
num1
.
add
(
num2
).
doubleValue
();
BigDecimal
num3
=
new
BigDecimal
(
result1
);
BigDecimal
num3
=
new
BigDecimal
(
result1
);
BigDecimal
num4
=
new
BigDecimal
(
spec
.
getZfzj
(
));
BigDecimal
num4
=
new
BigDecimal
(
Double
.
valueOf
(
spec
.
getZfzj
()
));
double
result2
=
num3
.
add
(
num4
).
doubleValue
();
double
result2
=
num3
.
add
(
num4
).
doubleValue
();
BigDecimal
num5
=
new
BigDecimal
(
result2
);
BigDecimal
num5
=
new
BigDecimal
(
result2
);
BigDecimal
num6
=
new
BigDecimal
(
spec
.
getSylr
(
));
BigDecimal
num6
=
new
BigDecimal
(
Double
.
valueOf
(
spec
.
getSylr
()
));
double
result3
=
num5
.
add
(
num6
).
doubleValue
();
double
result3
=
num5
.
add
(
num6
).
doubleValue
();
BigDecimal
num7
=
new
BigDecimal
(
result3
);
BigDecimal
num7
=
new
BigDecimal
(
result3
);
BigDecimal
num8
=
new
BigDecimal
(
spec
.
getJxjy
(
));
BigDecimal
num8
=
new
BigDecimal
(
Double
.
valueOf
(
spec
.
getJxjy
()
));
double
result
=
num7
.
add
(
num8
).
doubleValue
();
double
result
=
num7
.
add
(
num8
).
doubleValue
();
fjkc
.
setTotalmoney
(
Double
.
valueOf
(
result
));
//累计专项附加扣除
fjkc
.
setTotalmoney
(
Double
.
valueOf
(
result
));
//累计专项附加扣除
...
@@ -3439,13 +3450,16 @@ public class SalaryManagementController {
...
@@ -3439,13 +3450,16 @@ public class SalaryManagementController {
toupdate
++;
toupdate
++;
}
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
// e.printStackTrace();
failure
++;
failure
++;
map
.
put
(
"name"
,
name
);
map
.
put
(
"name"
,
name
);
map
.
put
(
"msg"
,
StringUtils
.
isBlank
(
e
.
getMessage
())
?
"
必填数据出现空值
"
:
e
.
getMessage
());
map
.
put
(
"msg"
,
StringUtils
.
isBlank
(
e
.
getMessage
())
?
"
用户信息错误
"
:
e
.
getMessage
());
}
finally
{
}
finally
{
if
(!
map
.
isEmpty
())
{
reasons
.
add
(
map
);
reasons
.
add
(
map
);
}
}
}
}
}
ImportDescriptionDto
imds
=
new
ImportDescriptionDto
();
ImportDescriptionDto
imds
=
new
ImportDescriptionDto
();
imds
.
setSuccess
(
toinsert
+
toupdate
);
//成功
imds
.
setSuccess
(
toinsert
+
toupdate
);
//成功
imds
.
setToinsert
(
toinsert
);
imds
.
setToinsert
(
toinsert
);
...
...
src/main/java/cn/timer/api/controller/xcgl/SalaryTool.java
View file @
09ce455a
...
@@ -11,6 +11,20 @@ public class SalaryTool {
...
@@ -11,6 +11,20 @@ public class SalaryTool {
static
SimpleDateFormat
mat
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
static
SimpleDateFormat
mat
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
static
SimpleDateFormat
matM
=
new
SimpleDateFormat
(
"yyyy-MM"
);
static
SimpleDateFormat
matM
=
new
SimpleDateFormat
(
"yyyy-MM"
);
public
static
String
SlashDate
(
String
Slashdate
)
{
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"MM/dd/yyyy"
);
Date
d
=
null
;
try
{
d
=
sdf
.
parse
(
Slashdate
);
sdf
.
applyPattern
(
"yyyy-MM-dd"
);
// System.out.println(sdf.format(d));
}
catch
(
Exception
exe
){
exe
.
printStackTrace
();
}
return
sdf
.
format
(
d
);
}
/**
/**
* 保留两位小数,四舍五入的一个老土的方法
* 保留两位小数,四舍五入的一个老土的方法
* @param d
* @param d
...
...
src/main/java/cn/timer/api/dao/kqgl/PunchCardDetailsMapper.java
View file @
09ce455a
...
@@ -20,7 +20,7 @@ public interface PunchCardDetailsMapper {
...
@@ -20,7 +20,7 @@ public interface PunchCardDetailsMapper {
int
updateByPrimaryKey
(
PunchCardDetails
record
);
int
updateByPrimaryKey
(
PunchCardDetails
record
);
int
ModifyPunchDetails
(
PunchCardDetails
record
);
int
ModifyPunchDetails
(
PunchCardDetails
record
);
List
<
PunchCardDetails
>
selectAttendanceDays
(
Integer
userid
,
Long
start
,
Long
end
);
List
<
PunchCardDetails
>
selectAttendanceDays
(
Integer
userid
,
Long
start
,
Long
end
,
Integer
qyid
);
PunchCardDetails
SingleAttendanceDays
(
Integer
userid
,
Long
start
,
Long
end
);
PunchCardDetails
SingleAttendanceDays
(
Integer
userid
,
Long
start
,
Long
end
);
...
...
src/main/java/cn/timer/api/dao/kqmk/KqglAssoDkmxMapper.java
View file @
09ce455a
...
@@ -15,7 +15,7 @@ import cn.timer.api.dto.kqmk.AttSubsidiaryDto;
...
@@ -15,7 +15,7 @@ import cn.timer.api.dto.kqmk.AttSubsidiaryDto;
@Repository
@Repository
public
interface
KqglAssoDkmxMapper
extends
BaseMapper
<
KqglAssoDkmx
>
{
public
interface
KqglAssoDkmxMapper
extends
BaseMapper
<
KqglAssoDkmx
>
{
AttSubsidiaryDto
subsidiary
(
int
userid
,
String
data
);
AttSubsidiaryDto
subsidiary
(
int
userid
,
String
data
,
int
qyid
);
int
updateByPrimaryKeySelective
(
KqglAssoDkmx
kqglassodkmx
);
int
updateByPrimaryKeySelective
(
KqglAssoDkmx
kqglassodkmx
);
}
}
src/main/resources/mapping/kqgl/PunchCardDetailsMapper.xml
View file @
09ce455a
...
@@ -290,6 +290,7 @@
...
@@ -290,6 +290,7 @@
where dkmx.userid = #{userid,jdbcType=INTEGER}
where dkmx.userid = #{userid,jdbcType=INTEGER}
and dkmx.dksj
>
= #{start,jdbcType=BIGINT}
and dkmx.dksj
>
= #{start,jdbcType=BIGINT}
and dkmx.dksj
<
= #{end,jdbcType=BIGINT}
and dkmx.dksj
<
= #{end,jdbcType=BIGINT}
and dkmx.qyid = #{qyid,jdbcType=INTEGER}
</select>
</select>
<select
id=
"SingleAttendanceDays"
resultMap=
"BaseResultMap"
>
<select
id=
"SingleAttendanceDays"
resultMap=
"BaseResultMap"
>
...
...
src/main/resources/mapping/kqmk/KqglAssoDkmxMapper.xml
View file @
09ce455a
...
@@ -59,6 +59,7 @@
...
@@ -59,6 +59,7 @@
from kqgl_asso_dkmx dk
from kqgl_asso_dkmx dk
where dk.userid = #{userid}
where dk.userid = #{userid}
and SUBSTR(dk.`data`,1,7) = #{data}
and SUBSTR(dk.`data`,1,7) = #{data}
and dk.qyid = #{qyid}
GROUP BY dk.userid
GROUP BY dk.userid
</select>
</select>
...
...
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