Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
dj
/
rpc-dj-supervisor
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 576a7976
authored
Mar 18, 2026
by
zhouhaibao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]督导团队业绩和个人业绩查询
1 parent
5819fdd1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
rpc-dj-supervisor/src/main/resources/META-INF/orm/BusinessSceneMapper.xml
rpc-dj-supervisor/src/main/resources/META-INF/orm/BusinessSceneMapper.xml
View file @
576a797
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
WHERE si.phone_number = #{phoneNumber}
WHERE si.phone_number = #{phoneNumber}
GROUP BY si.phone_number
GROUP BY si.phone_number
</select>
</select>
<!-- 查询员工调店记录 -->
<!-- 查询员工调店记录 -->
<select
id=
"getEmployeeStoreTransferRecords"
parameterType=
"map"
resultType=
"cn.com.glsx.dj.supervisor.dto.EmployeeStoreTransferDTO"
>
<select
id=
"getEmployeeStoreTransferRecords"
parameterType=
"map"
resultType=
"cn.com.glsx.dj.supervisor.dto.EmployeeStoreTransferDTO"
>
SELECT
SELECT
...
@@ -81,21 +81,21 @@
...
@@ -81,21 +81,21 @@
WHERE t1.merchant_id = #{merchantId}
WHERE t1.merchant_id = #{merchantId}
AND t1.staff_uuid = #{uuid}
AND t1.staff_uuid = #{uuid}
AND t1.bussiness_type = #{biz}
AND t1.bussiness_type = #{biz}
AND DATE(T1.reception_start_time)
>=#{startDate}
AND DATE(T1.reception_start_time)
>
= #{startDate}
AND DATE(T1.reception_start_time)
<
=
#{endDate}
AND DATE(T1.reception_start_time)
<
=
#{endDate}
</select>
</select>
<!-- 获取考勤统计和着装预警数据 -->
<!-- 获取考勤统计和着装预警数据 -->
<select
id=
"getAttendanceAndDressCodeData"
parameterType=
"map"
resultType=
"java.util.HashMap"
>
<select
id=
"getAttendanceAndDressCodeData"
parameterType=
"map"
resultType=
"java.util.HashMap"
>
SELECT
SELECT
SUM(CASE WHEN clock_in_first_time IS NOT NULL OR clock_in_last_time IS NOT NULL THEN 1 ELSE 0 END) AS checkInDays,
SUM(CASE WHEN clock_in_first_time IS NOT NULL OR clock_in_last_time IS NOT NULL THEN 1 ELSE 0 END) AS checkInDays,
SUM(CASE WHEN clock_in_first_time IS NOT NULL AND TIME(clock_in_first_time)
>
'09:30:00' THEN 1 ELSE 0 END) AS late,
SUM(CASE WHEN clock_in_first_time IS NOT NULL AND TIME(clock_in_first_time)
>
'09:30:00' THEN 1 ELSE 0 END) AS late,
SUM(CASE WHEN dclsqcii.clock_in_first_time IS NOT NULL AND dclsqcii.clock_in_last_time IS NULL THEN 1
SUM(CASE WHEN dclsqcii.clock_in_first_time IS NOT NULL AND dclsqcii.clock_in_last_time IS NULL THEN 1
WHEN TIMESTAMPDIFF(HOUR, dclsqcii.clock_in_first_time, dclsqcii.clock_in_last_time)
<
8
THEN
1
ELSE
0
END)
AS
earlyLeave,
WHEN TIMESTAMPDIFF(HOUR, dclsqcii.clock_in_first_time, dclsqcii.clock_in_last_time)
<
8 THEN 1 ELSE 0 END) AS earlyLeave,
SUM(CASE WHEN clock_in_first_time IS NULL THEN 1 ELSE 0 END) AS absenteeism,
SUM(CASE WHEN clock_in_first_time IS NULL THEN 1 ELSE 0 END) AS absenteeism,
SUM(CASE WHEN dclsqcii.clock_in_abnormal_attire = 1 AND dclsqcii.clock_out_abnormal_attire = 1 THEN 2
SUM(CASE WHEN dclsqcii.clock_in_abnormal_attire = 1 AND dclsqcii.clock_out_abnormal_attire = 1 THEN 2
WHEN dclsqcii.clock_in_abnormal_attire = 1 OR dclsqcii.clock_out_abnormal_attire = 1 THEN 1 ELSE 0 END) AS warningCount,
WHEN dclsqcii.clock_in_abnormal_attire = 1 OR dclsqcii.clock_out_abnormal_attire = 1 THEN 1 ELSE 0 END) AS warningCount,
SUM(CASE
WHEN
TIME(clock_in_first_time)
>
'09:30:00'
SUM(CASE WHEN TIME(clock_in_first_time)
>
'09:30:00'
THEN TIMESTAMPDIFF(MINUTE, DATE_FORMAT(dclsqcii.clock_in_date,'%Y-%m-%d 09:30:00'), clock_in_first_time) ELSE 0 END) AS lateTime,
THEN TIMESTAMPDIFF(MINUTE, DATE_FORMAT(dclsqcii.clock_in_date,'%Y-%m-%d 09:30:00'), clock_in_first_time) ELSE 0 END) AS lateTime,
SUM(CASE WHEN dclsqcii.clock_in_first_time IS NULL AND dclsqcii.clock_in_last_time IS NOT NULL THEN 1
SUM(CASE WHEN dclsqcii.clock_in_first_time IS NULL AND dclsqcii.clock_in_last_time IS NOT NULL THEN 1
WHEN dclsqcii.clock_in_first_time IS NOT NULL AND dclsqcii.clock_in_last_time IS NULL THEN 1 ELSE 0 END) AS missCount
WHEN dclsqcii.clock_in_first_time IS NOT NULL AND dclsqcii.clock_in_last_time IS NULL THEN 1 ELSE 0 END) AS missCount
...
@@ -103,8 +103,8 @@
...
@@ -103,8 +103,8 @@
dj_car_life_staff_qw_clock_in_info dclsqcii
dj_car_life_staff_qw_clock_in_info dclsqcii
WHERE
WHERE
dclsqcii.staff_phone = #{staffPhone}
dclsqcii.staff_phone = #{staffPhone}
AND dclsqcii.clock_in_date
>
= #{startDate}
AND dclsqcii.clock_in_date
>
= #{startDate}
AND dclsqcii.clock_in_date
<
= #{endDate}
AND dclsqcii.clock_in_date
<
= #{endDate}
</select>
</select>
<!-- 获取日报统计数据 -->
<!-- 获取日报统计数据 -->
...
@@ -123,8 +123,8 @@
...
@@ -123,8 +123,8 @@
WHERE
WHERE
staff_uuid = #{staffUuid}
staff_uuid = #{staffUuid}
AND merchant_id = #{merchantId}
AND merchant_id = #{merchantId}
AND report_date
>
= #{startDate}
AND report_date
>
= #{startDate}
AND report_date
<
= #{endDate}
AND report_date
<
= #{endDate}
<if
test=
"biz != null"
>
<if
test=
"biz != null"
>
AND (
AND (
(#{biz} = 1 AND scene_type = 0)
(#{biz} = 1 AND scene_type = 0)
...
@@ -145,8 +145,8 @@
...
@@ -145,8 +145,8 @@
dj_car_life_merchant_daily_report_huawei huawei
dj_car_life_merchant_daily_report_huawei huawei
WHERE
WHERE
huawei.merchant_id = #{merchantId}
huawei.merchant_id = #{merchantId}
AND huawei.report_date
>
= #{startDate}
AND huawei.report_date
>
= #{startDate}
AND huawei.report_date
<
= #{endDate}
AND huawei.report_date
<
= #{endDate}
<if
test=
"biz != null"
>
<if
test=
"biz != null"
>
AND (
AND (
(#{biz} = 1 AND huawei.scene_type = 0)
(#{biz} = 1 AND huawei.scene_type = 0)
...
@@ -212,8 +212,8 @@
...
@@ -212,8 +212,8 @@
WHERE t1.merchant_id = #{merchantId}
WHERE t1.merchant_id = #{merchantId}
AND t1.staff_uuid = #{staffUuid}
AND t1.staff_uuid = #{staffUuid}
AND t1.bussiness_type = #{biz}
AND t1.bussiness_type = #{biz}
AND DATE(T1.reception_start_time)
>
=#{startDate}
AND DATE(T1.reception_start_time)
>
=#{startDate}
AND DATE(T1.reception_start_time)
<
=#{endDate}
AND DATE(T1.reception_start_time)
<
=#{endDate}
) AS recordingData
) AS recordingData
</select>
</select>
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment