Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
attendance-performance-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
attendance-performance-platform
Commits
588840a3
Commit
588840a3
authored
Apr 17, 2025
by
廖旭伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试bug修改
parent
b3deb6ac
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
26 deletions
+28
-26
attendance-performance-manager/src/main/java/com/mortals/xhx/module/staff/web/StaffCareController.java
...com/mortals/xhx/module/staff/web/StaffCareController.java
+10
-9
attendance-performance-manager/src/main/resources/sqlmap/module/staff/StaffCareMapperExt.xml
...main/resources/sqlmap/module/staff/StaffCareMapperExt.xml
+18
-17
No files found.
attendance-performance-manager/src/main/java/com/mortals/xhx/module/staff/web/StaffCareController.java
View file @
588840a3
...
...
@@ -110,15 +110,7 @@ public class StaffCareController extends BaseCRUDJsonBodyMappingController<Staff
@Override
protected
void
doListBefore
(
StaffCareEntity
query
,
Map
<
String
,
Object
>
model
,
Context
context
)
throws
AppException
{
Calendar
calendar
=
Calendar
.
getInstance
();
int
year
=
calendar
.
get
(
Calendar
.
YEAR
);
int
month
=
calendar
.
get
(
Calendar
.
MONTH
)+
1
;
if
(
query
.
getYear
()==
null
){
query
.
setYear
(
year
);
}
if
(
query
.
getMonth
()==
null
){
query
.
setMonth
(
month
);
}
// YearMonth yearMonth = YearMonth.of(year,month);
// DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd");
// if(query.getCareType()==1){
...
...
@@ -134,6 +126,15 @@ public class StaffCareController extends BaseCRUDJsonBodyMappingController<Staff
@Override
protected
int
doListAfter
(
StaffCareEntity
query
,
Map
<
String
,
Object
>
model
,
Context
context
)
throws
AppException
{
Calendar
calendar
=
Calendar
.
getInstance
();
int
year
=
calendar
.
get
(
Calendar
.
YEAR
);
int
month
=
calendar
.
get
(
Calendar
.
MONTH
)+
1
;
if
(
query
.
getYear
()==
null
){
query
.
setYear
(
year
);
}
if
(
query
.
getMonth
()==
null
){
query
.
setMonth
(
month
);
}
query
.
setCareType
(
1
);
int
shengri
=
this
.
service
.
getStaffCareListCount
(
query
);
query
.
setCareType
(
2
);
...
...
attendance-performance-manager/src/main/resources/sqlmap/module/staff/StaffCareMapperExt.xml
View file @
588840a3
...
...
@@ -7,25 +7,26 @@
select a.*
from mortals_xhx_staff_care as a
where 1=1
<if
test=
"staffName != null and staffName != ''"
>
and a.staffName like #{staffName}
</if>
<if
test=
"careType != null and careType ==1"
>
and a.careType = 1
and MONTH(a.birthday) = #{month}
<if
test=
"month != null"
>
and MONTH(a.birthday) = #{month}
</if>
<if
test=
"day != null"
>
and DAY(a.birthday) = #{day}
</if>
<if
test=
"staffName != null and staffName != ''"
>
and a.staffName like #{staffName}
</if>
</if>
<if
test=
"careType != null and careType ==2"
>
and a.careType = 2
and MONTH(a.entryDate) = #{month}
<if
test=
"month != null"
>
and MONTH(a.entryDate) = #{month}
</if>
<if
test=
"day != null"
>
and DAY(a.entryDate) = #{day}
</if>
<if
test=
"staffName != null and staffName != ''"
>
and a.staffName like #{staffName}
</if>
</if>
</select>
...
...
@@ -35,26 +36,26 @@
select count(1)
from mortals_xhx_staff_care as a
where 1=1
<if
test=
"staffName != null and staffName != ''"
>
and a.staffName like #{staffName}
</if>
<if
test=
"careType != null and careType ==1"
>
and a.careType = 1
and MONTH(a.birthday) = #{month}
<if
test=
"month != null"
>
and MONTH(a.birthday) = #{month}
</if>
<if
test=
"day != null"
>
and DAY(a.birthday) = #{day}
</if>
<if
test=
"staffName != null and staffName != ''"
>
and a.staffName like #{staffName}
</if>
</if>
<if
test=
"careType != null and careType ==2"
>
and a.careType = 2
and MONTH(a.entryDate) = #{month}
<if
test=
"month != null"
>
and MONTH(a.entryDate) = #{month}
</if>
<if
test=
"day != null"
>
and DAY(a.entryDate) = #{day}
</if>
<if
test=
"staffName != null and staffName != ''"
>
and a.staffName like #{staffName}
</if>
</if>
</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