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
7e0318bc
Commit
7e0318bc
authored
4 years ago
by
ilal
Committed by
chenzg
3 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交
parent
fb414b26
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
65 additions
and
4 deletions
+65
-4
src/main/java/cn/timer/api/controller/kqgl/TimeCardController.java
+35
-1
src/main/java/cn/timer/api/controller/xcgl/SalaryManagementController.java
+3
-3
src/main/java/cn/timer/api/dao/kqgl/PunchRecordMapper.java
+3
-0
src/main/resources/mapping/kqgl/PunchRecordMapper.xml
+24
-0
No files found.
src/main/java/cn/timer/api/controller/kqgl/TimeCardController.java
View file @
7e0318bc
...
...
@@ -1702,16 +1702,28 @@ public class TimeCardController {
/**
* 考勤原始记录-根据 模糊 + 高級查詢-分页
* @throws ParseException
*/
@PostMapping
(
value
=
"/attendancecalendar"
)
@ApiOperation
(
value
=
"考勤原始记录-根据 模糊 + 高級查詢-分页"
,
httpMethod
=
"POST"
,
notes
=
"接口发布说明"
)
@ApiOperationSupport
(
order
=
34
)
public
Result
<
Object
>
AttendanceCalendar
(
@CurrentUser
UserBean
userBean
,
@Validated
@RequestBody
OriginalRecordDto
originalrecorddto
){
public
Result
<
Object
>
AttendanceCalendar
(
@CurrentUser
UserBean
userBean
,
@Validated
@RequestBody
OriginalRecordDto
originalrecorddto
)
throws
ParseException
{
IPage
<
PunchRecord
>
page
=
new
Page
<
PunchRecord
>(
originalrecorddto
.
getCurrentPage
()
==
null
?
1
:
originalrecorddto
.
getCurrentPage
(),
originalrecorddto
.
getTotalPage
()
==
null
?
10
:
originalrecorddto
.
getTotalPage
());
originalrecorddto
.
setQyid
(
userBean
.
getOrgCode
());
if
(!
originalrecorddto
.
getStart
().
equals
(
""
)
&&
!
originalrecorddto
.
getEnd
().
equals
(
""
)
&&
originalrecorddto
.
getStart
()
!=
null
&&
originalrecorddto
.
getEnd
()
!=
null
)
{
String
sdaet
=
originalrecorddto
.
getStart
()
+
" 00:00:00"
;
String
staapptime
=
ClockInTool
.
dateToStamp
(
sdaet
);
originalrecorddto
.
setStart
(
staapptime
);
String
edate
=
originalrecorddto
.
getEnd
()
+
" 23:59:59"
;
String
endapptime
=
ClockInTool
.
dateToStamp
(
edate
);
originalrecorddto
.
setEnd
(
endapptime
);
}
IPage
<
PunchRecord
>
pageAs
=
punchrecordmapper
.
QueryOriginalRecord
(
page
,
originalrecorddto
);
List
<
PunchRecord
>
listAs
=
pageAs
.
getRecords
();
...
...
@@ -1719,6 +1731,28 @@ public class TimeCardController {
}
@PostMapping
(
value
=
"/exportattendancecalendar"
)
@ApiOperation
(
value
=
""
,
httpMethod
=
"POST"
,
notes
=
"接口发布说明"
)
@ApiOperationSupport
(
order
=
34
)
public
Result
<
Object
>
exportattendancecalendar
(
@CurrentUser
UserBean
userBean
,
@Validated
@RequestBody
OriginalRecordDto
originalrecorddto
)
throws
ParseException
{
originalrecorddto
.
setQyid
(
userBean
.
getOrgCode
());
if
(!
originalrecorddto
.
getStart
().
equals
(
""
)
&&
!
originalrecorddto
.
getEnd
().
equals
(
""
)
&&
originalrecorddto
.
getStart
()
!=
null
&&
originalrecorddto
.
getEnd
()
!=
null
)
{
String
sdaet
=
originalrecorddto
.
getStart
()
+
" 00:00:00"
;
String
staapptime
=
ClockInTool
.
dateToStamp
(
sdaet
);
originalrecorddto
.
setStart
(
staapptime
);
String
edate
=
originalrecorddto
.
getEnd
()
+
" 23:59:59"
;
String
endapptime
=
ClockInTool
.
dateToStamp
(
edate
);
originalrecorddto
.
setEnd
(
endapptime
);
}
List
<
PunchRecord
>
listAs
=
punchrecordmapper
.
exportQueryOriginalRecord
(
originalrecorddto
);
return
ResultUtil
.
data
(
listAs
,
"操作成功!"
);
}
/**
* 获取考勤组所需加班规则
*/
...
...
This diff is collapsed.
Click to expand it.
src/main/java/cn/timer/api/controller/xcgl/SalaryManagementController.java
View file @
7e0318bc
...
...
@@ -2223,7 +2223,7 @@ public class SalaryManagementController {
String
[]
miscalculation
=
getPersonalincometax
(
cumynssde
);
gsmx
.
setTaxRate
(
Double
.
valueOf
(
miscalculation
[
0
]));
//税率
gsmx
.
setQuickCalculationDeduction
(
Double
.
valueOf
(
miscalculation
[
1
]));
//速算扣除数
gsmx
.
setCumYnse
(
Double
.
valueOf
(
miscalculation
[
2
]
));
//累计应纳税额 【累计应纳税所得额*税率-速算扣除数】
gsmx
.
setCumYnse
(
SalaryTool
.
formatDouble_
(
Double
.
valueOf
(
miscalculation
[
2
])
));
//累计应纳税额 【累计应纳税所得额*税率-速算扣除数】
double
cumyyjse
=
0
;
cumyyjse
=
(
sygs
==
null
?
0
:
sygs
.
getCumYyjse
())
+
(
sygs
==
null
?
0
:
sygs
.
getCumYbtse
());
...
...
@@ -2231,8 +2231,8 @@ public class SalaryManagementController {
double
cumybtse
=
0
;
cumybtse
=
gsmx
.
getCumYnse
()
-
gsmx
.
getCumYyjse
();
gsmx
.
setCumYbtse
(
cumybtse
);
//累计应补(退)税额(本月个税) 【累计应纳税额-累计已预缴纳税额】
gsmx
.
setThmonthPersonal
(
cumybtse
);
//本月个税
gsmx
.
setCumYbtse
(
SalaryTool
.
formatDouble_
(
cumybtse
)
);
//累计应补(退)税额(本月个税) 【累计应纳税额-累计已预缴纳税额】
gsmx
.
setThmonthPersonal
(
SalaryTool
.
formatDouble_
(
cumybtse
)
);
//本月个税
gsmx
.
setQyid
(
orgcode
);
//企业id
gsmx
.
insert
();
...
...
This diff is collapsed.
Click to expand it.
src/main/java/cn/timer/api/dao/kqgl/PunchRecordMapper.java
View file @
7e0318bc
...
...
@@ -41,5 +41,7 @@ public interface PunchRecordMapper {
IPage
<
PunchRecord
>
QueryOriginalRecord
(
IPage
<
PunchRecord
>
page
,
@Param
(
"param"
)
OriginalRecordDto
originalrecorddto
);
List
<
PunchRecord
>
exportQueryOriginalRecord
(
@Param
(
"param"
)
OriginalRecordDto
originalrecorddto
);
PunchRecord
organizationalStructure
(
int
id
);
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/main/resources/mapping/kqgl/PunchRecordMapper.xml
View file @
7e0318bc
...
...
@@ -65,6 +65,30 @@
ORDER BY dkjl.id DESC
</select>
<select
id=
"exportQueryOriginalRecord"
resultMap=
"BaseResultMap"
>
select dkjl.*,
bmgw.dept,
bmgw.post,
info.`name` username
from kqgl_asso_dkjl dkjl
LEFT JOIN yggl_main_emp as info on info.emp_num = dkjl.user_id and info.org_code = #{param.qyid}
LEFT JOIN (select m.name as post,um.name as dept,m.id as mid
from zzgl_bmgw_m m
left join zzgl_bmgw_m um on um.id = m.up_id
) as bmgw on bmgw.mid = info.bmgw_id
where dkjl.qyid = #{param.qyid}
<if
test=
"param.start != ''"
>
and dkjl.attime
>
= #{param.start}
</if>
<if
test=
"param.end != ''"
>
and dkjl.attime
<
= #{param.end}
</if>
<if
test=
"param.text != null and param.text != ''"
>
and (info.`name` like CONCAT('%',#{param.text},'%') or info.emp_num = #{param.text})
</if>
ORDER BY dkjl.id DESC
</select>
<select
id=
"selectByPrimaryKey"
resultMap=
"BaseResultMap"
parameterType=
"java.lang.Integer"
>
select
...
...
This diff is collapsed.
Click to expand it.
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