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
0307763d
Commit
0307763d
authored
Apr 11, 2023
by
daijunxiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改员工统计信息
parent
79aa82eb
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
37 additions
and
14 deletions
+37
-14
attendance-performance-manager/src/main/java/com/mortals/xhx/module/staff/dao/StaffDao.java
.../main/java/com/mortals/xhx/module/staff/dao/StaffDao.java
+5
-0
attendance-performance-manager/src/main/java/com/mortals/xhx/module/staff/dao/ibatis/StaffDaoImpl.java
...com/mortals/xhx/module/staff/dao/ibatis/StaffDaoImpl.java
+5
-0
attendance-performance-manager/src/main/java/com/mortals/xhx/module/staff/model/vo/StaffInfoVo.java
...va/com/mortals/xhx/module/staff/model/vo/StaffInfoVo.java
+2
-0
attendance-performance-manager/src/main/java/com/mortals/xhx/module/staff/service/impl/StaffServiceImpl.java
...rtals/xhx/module/staff/service/impl/StaffServiceImpl.java
+8
-1
attendance-performance-manager/src/main/java/com/mortals/xhx/module/staff/web/StaffController.java
...ava/com/mortals/xhx/module/staff/web/StaffController.java
+7
-7
attendance-performance-manager/src/main/resources/sqlmap/module/staff/StaffMapper.xml
...er/src/main/resources/sqlmap/module/staff/StaffMapper.xml
+9
-6
attendance-performance-manager/src/test/java/com/mortals/httpclient/staff/StaffController.http
...st/java/com/mortals/httpclient/staff/StaffController.http
+1
-0
No files found.
attendance-performance-manager/src/main/java/com/mortals/xhx/module/staff/dao/StaffDao.java
View file @
0307763d
...
@@ -46,4 +46,9 @@ public interface StaffDao extends ICRUDDao<StaffEntity,Long>{
...
@@ -46,4 +46,9 @@ public interface StaffDao extends ICRUDDao<StaffEntity,Long>{
* 正式
* 正式
* */
* */
int
queryFormal
();
int
queryFormal
();
/**
* 兼职
* */
int
queryConcurrently
();
}
}
attendance-performance-manager/src/main/java/com/mortals/xhx/module/staff/dao/ibatis/StaffDaoImpl.java
View file @
0307763d
...
@@ -48,4 +48,9 @@ public class StaffDaoImpl extends BaseCRUDDaoMybatis<StaffEntity,Long> implement
...
@@ -48,4 +48,9 @@ public class StaffDaoImpl extends BaseCRUDDaoMybatis<StaffEntity,Long> implement
return
this
.
getSqlSession
().
selectOne
(
this
.
getSqlId
(
"queryFormal"
));
return
this
.
getSqlSession
().
selectOne
(
this
.
getSqlId
(
"queryFormal"
));
}
}
@Override
public
int
queryConcurrently
()
{
return
this
.
getSqlSession
().
selectOne
(
this
.
getSqlId
(
"queryConcurrently"
));
}
}
}
attendance-performance-manager/src/main/java/com/mortals/xhx/module/staff/model/vo/StaffInfoVo.java
View file @
0307763d
...
@@ -17,4 +17,6 @@ public class StaffInfoVo {
...
@@ -17,4 +17,6 @@ public class StaffInfoVo {
private
Integer
formalStaff
;
private
Integer
formalStaff
;
//待离职
//待离职
private
Integer
resignationStaff
;
private
Integer
resignationStaff
;
//兼职
private
Integer
concurrentlyStaff
;
}
}
attendance-performance-manager/src/main/java/com/mortals/xhx/module/staff/service/impl/StaffServiceImpl.java
View file @
0307763d
...
@@ -37,12 +37,19 @@ public class StaffServiceImpl extends AbstractCRUDCacheServiceImpl<StaffDao, Sta
...
@@ -37,12 +37,19 @@ public class StaffServiceImpl extends AbstractCRUDCacheServiceImpl<StaffDao, Sta
@Override
@Override
public
StaffInfoVo
queryAll
()
{
public
StaffInfoVo
queryAll
()
{
StaffInfoVo
staffInfoVo
=
new
StaffInfoVo
();
StaffInfoVo
staffInfoVo
=
new
StaffInfoVo
();
//在职
staffInfoVo
.
setInWorkStaff
(
staffDao
.
queryInWork
());
staffInfoVo
.
setInWorkStaff
(
staffDao
.
queryInWork
());
//全职
staffInfoVo
.
setFullStaff
(
staffDao
.
queryFull
());
staffInfoVo
.
setFullStaff
(
staffDao
.
queryFull
());
//
有值
//
正式
staffInfoVo
.
setFormalStaff
(
staffDao
.
queryFormal
());
staffInfoVo
.
setFormalStaff
(
staffDao
.
queryFormal
());
//兼职
staffInfoVo
.
setConcurrentlyStaff
(
staffDao
.
queryConcurrently
());
//试用
staffInfoVo
.
setOnTrialStaff
(
staffDao
.
queryOnTrial
());
staffInfoVo
.
setOnTrialStaff
(
staffDao
.
queryOnTrial
());
//实习
staffInfoVo
.
setPricateStaff
(
staffDao
.
queryPricate
());
staffInfoVo
.
setPricateStaff
(
staffDao
.
queryPricate
());
//待离职
staffInfoVo
.
setResignationStaff
(
staffLeaveDao
.
queryResignation
());
staffInfoVo
.
setResignationStaff
(
staffLeaveDao
.
queryResignation
());
return
staffInfoVo
;
return
staffInfoVo
;
}
}
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/staff/web/StaffController.java
View file @
0307763d
...
@@ -13,7 +13,6 @@ import org.springframework.web.bind.annotation.RequestMapping;
...
@@ -13,7 +13,6 @@ import org.springframework.web.bind.annotation.RequestMapping;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
/**
/**
...
@@ -53,7 +52,6 @@ public class StaffController extends BaseCRUDJsonBodyMappingController<StaffServ
...
@@ -53,7 +52,6 @@ public class StaffController extends BaseCRUDJsonBodyMappingController<StaffServ
protected
int
doListAfter
(
StaffEntity
query
,
Map
<
String
,
Object
>
model
,
Context
context
)
throws
AppException
{
protected
int
doListAfter
(
StaffEntity
query
,
Map
<
String
,
Object
>
model
,
Context
context
)
throws
AppException
{
//todo 员工信息统计--员工关系统计
//todo 员工信息统计--员工关系统计
StaffInfoVo
staffInfoVo
=
this
.
service
.
queryAll
();
StaffInfoVo
staffInfoVo
=
this
.
service
.
queryAll
();
System
.
out
.
println
(
"ssss"
+
staffInfoVo
);
model
.
put
(
"staff"
,
staffInfoVo
);
model
.
put
(
"staff"
,
staffInfoVo
);
return
super
.
doListAfter
(
query
,
model
,
context
);
return
super
.
doListAfter
(
query
,
model
,
context
);
}
}
...
@@ -64,12 +62,14 @@ public class StaffController extends BaseCRUDJsonBodyMappingController<StaffServ
...
@@ -64,12 +62,14 @@ public class StaffController extends BaseCRUDJsonBodyMappingController<StaffServ
//todo 员工统计信息
//todo 员工统计信息
List
<
HolidayListVo
>
holidayListVos
=
new
ArrayList
<>();
List
<
HolidayListVo
>
holidayListVos
=
new
ArrayList
<>();
HolidayListVo
vo
=
new
HolidayListVo
();
HolidayListVo
vo
=
new
HolidayListVo
();
vo
.
setWorkName
(
"测试"
);
vo
.
setWorkStatus
(
"正式"
);
StaffEntity
staffEntity
=
this
.
service
.
get
(
id
);
vo
.
setWorkDept
(
"技术部门"
);
vo
.
setWorkName
(
staffEntity
.
getName
());
vo
.
setWorkStatus
(
String
.
valueOf
(
staffEntity
.
getStatus
()));
vo
.
setWorkDept
(
staffEntity
.
getDeptName
());
vo
.
setWorkLimit
(
"1003"
);
vo
.
setWorkLimit
(
"1003"
);
vo
.
setWorkBeginDay
(
new
Date
(
2020
-
03
-
01
));
vo
.
setWorkBeginDay
(
staffEntity
.
getEntryDate
(
));
vo
.
setWorkFormalDay
(
new
Date
(
2020
-
04
-
31
));
vo
.
setWorkFormalDay
(
staffEntity
.
getRegularDate
(
));
vo
.
setAttendanceCount
(
"22"
);
vo
.
setAttendanceCount
(
"22"
);
vo
.
setLeaveCount
(
"2"
);
vo
.
setLeaveCount
(
"2"
);
vo
.
setLateCount
(
"1"
);
vo
.
setLateCount
(
"1"
);
...
...
attendance-performance-manager/src/main/resources/sqlmap/module/staff/StaffMapper.xml
View file @
0307763d
...
@@ -1318,20 +1318,23 @@
...
@@ -1318,20 +1318,23 @@
</trim>
</trim>
</if>
</if>
</sql>
</sql>
<select
id=
"queryFormal"
resultType=
"integer"
>
select count(1) formalStaff from mortals_xhx_staff where status = 1
</select>
<select
id=
"queryOnTrial"
resultType=
"integer"
>
select count(1) onTrialStaff from mortals_xhx_staff where status = 2
</select>
<select
id=
"queryInWork"
resultType=
"integer"
>
<select
id=
"queryInWork"
resultType=
"integer"
>
select count(1) inWorkStaff from mortals_xhx_staff where status
<![CDATA[<>]]>
3
select count(1) inWorkStaff from mortals_xhx_staff where status
<![CDATA[<>]]>
3
</select>
</select>
<select
id=
"queryFull"
resultType=
"integer"
>
<select
id=
"queryFull"
resultType=
"integer"
>
select count(1) fullStaff from mortals_xhx_staff where staffType = 1
select count(1) fullStaff from mortals_xhx_staff where staffType = 1
</select>
</select>
<select
id=
"queryConcurrently"
resultType=
"integer"
>
select count(1) concurrentlyStaff from mortals_xhx_staff where staffType = 2
</select>
<select
id=
"queryPricate"
resultType=
"integer"
>
<select
id=
"queryPricate"
resultType=
"integer"
>
select count(1) pricateStaff from mortals_xhx_staff where staffType = 3
select count(1) pricateStaff from mortals_xhx_staff where staffType = 3
</select>
</select>
<select
id=
"queryOnTrial"
resultType=
"integer"
>
select count(1) onTrialStaff from mortals_xhx_staff where status = 2
</select>
<select
id=
"queryFormal"
resultType=
"integer"
>
select count(1) formalStaff from mortals_xhx_staff where status = 1
</select>
</mapper>
</mapper>
\ No newline at end of file
attendance-performance-manager/src/test/java/com/mortals/httpclient/staff/StaffController.http
View file @
0307763d
...
@@ -18,6 +18,7 @@ POST {{baseUrl}}/staff/list
...
@@ -18,6 +18,7 @@ POST {{baseUrl}}/staff/list
Content-Type: application/json
Content-Type: application/json
{
{
"phoneNumber": "%133%",
"page":1,
"page":1,
"size":10
"size":10
}
}
...
...
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