Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
doc
/
ht_project_doc
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 e21e9147
authored
Jul 27, 2026
by
章家宝
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
七月大版本dml
1 parent
c5e74ab4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
21_v5.8.4_20260728/sql/DML/dj_operationreport.sql
21_v5.8.4_20260728/sql/DML/dj_operationreport.sql
View file @
e21e914
...
@@ -37,33 +37,33 @@ VALUES (
...
@@ -37,33 +37,33 @@ VALUES (
SELECT
SELECT
iam.custodian_phone AS 员工id,
iam.custodian_phone AS 员工id,
''
AS 4s店商户号,
''
''
AS 4s店商户号,
''
AS 业务类型,
''
''
AS 业务类型,
''
AS scene_type,
''
''
AS scene_type,
iam.custodian AS 员工姓名,
iam.custodian AS 员工姓名,
''
AS 门店,
''
''
AS 门店,
iam.custodian_phone AS 员工手机号
iam.custodian_phone AS 员工手机号
FROM inspection_asset_management iam
FROM inspection_asset_management iam
WHERE iam.deleted_flag = '
N
'
WHERE iam.deleted_flag =
'
'
N
'
'
AND NOT EXISTS (
AND NOT EXISTS (
SELECT 1
SELECT 1
FROM dj_car_life_staff_info dclsi
FROM dj_car_life_staff_info dclsi
WHERE dclsi.deleted_flag = '
N
'
WHERE dclsi.deleted_flag =
'
'
N
'
'
AND dclsi.phone_number = iam.custodian_phone
AND dclsi.phone_number = iam.custodian_phone
AND EXISTS (
AND EXISTS (
SELECT 1
SELECT 1
FROM dj_car_life_goods_order a
FROM dj_car_life_goods_order a
LEFT JOIN dj_car_life_pay_order b ON a.order_code = b.order_code
LEFT JOIN dj_car_life_pay_order b ON a.order_code = b.order_code
AND b.deleted_flag = '
N
'
AND b.deleted_flag =
'
'
N
'
'
AND b.order_code IS NOT NULL
AND b.order_code IS NOT NULL
WHERE a.seller_user_id = dclsi.staff_uuid
WHERE a.seller_user_id = dclsi.staff_uuid
AND a.deleted_flag = '
N
'
AND a.deleted_flag =
'
'
N
'
'
AND a.status IN (2, 4, 6)
AND a.status IN (2, 4, 6)
AND a.upgrade_flag IN ('
Y
', '
N
')
AND a.upgrade_flag IN (
'
'
Y
''
,
''
N
'
'
)
AND a.seller_user_id IS NOT NULL
AND a.seller_user_id IS NOT NULL
AND a.scene_type IN (0, 1)
AND a.scene_type IN (0, 1)
AND DATE_FORMAT(IFNULL(b.success_date, a.order_time), '
%
Y
-%
m
-%
d
')
AND DATE_FORMAT(IFNULL(b.success_date, a.order_time),
'
'
%Y-%m-%d
'
'
)
BETWEEN DATE_SUB(DATE_FORMAT('
starttimexxxxxx
', '
%
Y
-%
m
-%
d
'), INTERVAL 1 MONTH) AND '
endtimexxxxxx
'
BETWEEN DATE_SUB(DATE_FORMAT(
'
'
starttimexxxxxx
''
,
''
%Y-%m-%d
''
), INTERVAL 1 MONTH) AND
''
endtimexxxxxx
'
'
)
)
)
)
...
...
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