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 7b3276ae
authored
Jun 10, 2026
by
范富荣
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
添加施工单sql
1 parent
28fd4fd0
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
112 additions
and
0 deletions
14_v5.8.2_20260615/sql/DDL/scrm组dj_smartcarlife_ddl.sql
14_v5.8.2_20260615/sql/DML/scrm组dj_smartcarlife_dml.sql
14_v5.8.2_20260615/需求版本开发内容.md
14_v5.8.2_20260615/sql/DDL/scrm组dj_smartcarlife_ddl.sql
View file @
7b3276a
...
@@ -76,6 +76,48 @@ CREATE TABLE `task_biz_category` (
...
@@ -76,6 +76,48 @@ CREATE TABLE `task_biz_category` (
###
周海宝
-----------------end---------------------
###
周海宝
-----------------end---------------------
###
范富荣
-----------------start-------------------
###
范富荣
-----------------start-------------------
-- 1. 施工单主表: 新增内页状态
ALTER
TABLE
dj_car_life_construction_info
ADD
COLUMN
construction_inner_status
INT
DEFAULT
0
COMMENT
'内页状态: 0待领单 1待出库 2待完工 3已完工 4部分出库 5部分完工'
;
-- 2. 子商品关联表: 新增12个字段
ALTER
TABLE
dj_car_life_construction_sub_order_relation
ADD
COLUMN
sub_item_status
INT
DEFAULT
0
COMMENT
'子商品状态: 0待出库 1待完工 2已施工 3已返工'
,
ADD
COLUMN
effective_flag
INT
DEFAULT
0
COMMENT
'有效标识: 0有效 1已返工失效'
,
ADD
COLUMN
completed_time
DATETIME
DEFAULT
NULL
COMMENT
'施工完成时间'
,
ADD
COLUMN
completed_uuid
VARCHAR
(
64
)
DEFAULT
NULL
COMMENT
'施工完成操作人UUID'
,
ADD
COLUMN
completed_name
VARCHAR
(
64
)
DEFAULT
NULL
COMMENT
'施工完成操作人姓名'
,
ADD
COLUMN
start_time
DATETIME
DEFAULT
NULL
COMMENT
'开始施工时间'
,
ADD
COLUMN
end_time
DATETIME
DEFAULT
NULL
COMMENT
'结束施工时间'
,
ADD
COLUMN
construction_duration
INT
DEFAULT
NULL
COMMENT
'施工时长(分钟)'
;
-- 3. 施工图片表: 新增子商品关联
ALTER
TABLE
dj_car_life_construction_picture
ADD
COLUMN
sub_order_code
VARCHAR
(
64
)
DEFAULT
NULL
COMMENT
'关联子商品编码'
;
ALTER
TABLE
dj_car_life_construction_materials_info
ADD
COLUMN
outbound_method
INT
DEFAULT
NULL
COMMENT
'出库方式: 0扫码出库 1手动输入'
,
ADD
COLUMN
remark
VARCHAR
(
128
)
DEFAULT
NULL
COMMENT
'出库/返工备注'
;
ALTER
TABLE
dj_car_life_construction_materials_info
ADD
COLUMN
unique_code
VARCHAR
(
500
)
DEFAULT
NULL
COMMENT
'二维码,多个逗号分割'
;
ALTER
TABLE
dj_smartcarlife
.
dj_car_life_goods_order_customer
MODIFY
COLUMN
sales_type
tinyint
(
1
)
NULL
COMMENT
'客户类型:0-门店引流-售前;1-门店引流-售后;2-自然到店, 3-交付端引流售前'
;
###
范富荣
-----------------end---------------------
###
范富荣
-----------------end---------------------
###
林永健
-----------------start-------------------
###
林永健
-----------------start-------------------
...
...
14_v5.8.2_20260615/sql/DML/scrm组dj_smartcarlife_dml.sql
View file @
7b3276a
...
@@ -175,3 +175,71 @@ INSERT INTO dj_smartcarlife.pg_warning_metric_dict (id, index_name, business_typ
...
@@ -175,3 +175,71 @@ INSERT INTO dj_smartcarlife.pg_warning_metric_dict (id, index_name, business_typ
update
pg_warning_metric_dict
set
warn_types
=
'2,4,5'
where
id
in
(
3
,
4
,
5
,
6
,
8
,
9
,
10
,
11
);
update
pg_warning_metric_dict
set
warn_types
=
'2,4,5'
where
id
in
(
3
,
4
,
5
,
6
,
8
,
9
,
10
,
11
);
UPDATE
dj_car_life_staff_account_assign_record
SET
station_type
=
1
,
updated_date
=
NOW
()
WHERE
id
IN
(
90018
,
90039
,
90050
,
90105
,
90115
,
90178
,
90186
,
90194
,
90203
,
90205
,
90213
,
90214
,
90221
,
90229
,
90249
,
90272
,
90289
,
90381
,
90382
,
90392
,
90404
,
90461
,
90485
,
90506
,
90539
,
90554
,
90709
,
90730
,
90737
,
90748
,
90774
,
90789
,
90802
,
90814
,
90828
,
90835
,
90876
,
90882
,
90907
,
90975
,
90988
,
91204
,
91218
,
91231
,
91233
,
91368
,
91403
,
91410
,
91455
,
91480
,
91488
,
91504
,
91578
,
91635
,
91667
,
91749
,
91769
,
91784
,
91796
,
91873
,
91886
,
91906
,
91959
,
91982
,
91997
,
92025
,
92039
,
92043
,
92047
,
92049
,
92060
,
92068
,
92070
,
92080
,
92091
,
92123
,
92206
,
92252
,
92283
,
92332
,
92376
,
92421
,
92450
,
92476
,
92496
,
92519
,
92544
,
92595
,
92607
,
92621
,
92625
,
92712
,
92740
,
92746
,
92792
,
92798
,
92800
,
92807
,
92923
,
92998
,
93034
,
93049
,
93078
,
93083
,
93135
,
93152
,
93156
,
93274
,
93278
,
93285
,
93331
,
93368
,
93522
,
93538
,
93544
,
93563
,
93597
,
93616
,
93664
,
93707
,
93734
,
93740
,
93742
,
93767
,
93859
,
93982
,
94012
,
94081
,
94149
,
94408
,
94435
,
94444
,
94498
,
94513
,
94516
,
94518
,
94544
,
94605
,
94679
,
94696
,
94724
,
94897
,
94950
,
94957
,
94972
,
95033
,
95063
,
95067
,
95074
,
95108
,
95114
,
95159
,
95171
,
95200
,
95223
,
95277
,
95302
,
95347
,
95352
,
95357
,
95424
,
95441
,
95487
,
95489
,
95490
,
95507
,
95568
,
95660
,
95672
,
95775
,
95872
,
95891
,
95967
,
96090
,
96091
,
96127
,
96137
,
96146
,
96161
,
96173
,
96182
,
96200
,
96204
,
96279
,
96332
,
96420
,
96442
,
96456
,
96553
,
96702
,
96716
,
96786
,
96794
,
96853
,
96859
,
96971
,
96976
,
97022
,
97032
,
97039
,
97083
,
97087
,
97180
,
97219
,
97239
,
97446
,
97452
,
97581
,
97622
,
97645
,
97680
,
97690
,
97708
,
97732
,
97737
,
97806
,
97888
,
97930
,
98035
,
98046
,
98058
,
98060
,
98092
,
98125
,
98192
,
98212
,
98260
,
98289
,
98290
,
98367
,
98416
,
98495
,
98538
,
98626
,
98645
,
98797
,
98840
,
98877
,
98995
,
99019
,
99062
,
99100
,
99110
,
99242
,
99314
,
99315
,
99343
,
99345
,
99404
,
99481
,
99513
,
99530
,
99569
,
99570
,
99591
,
99629
,
99681
,
99702
,
99733
,
99748
,
99756
,
99807
,
99824
,
99869
,
99920
,
99955
,
99995
,
100088
,
100107
,
100209
,
100344
,
100516
,
100522
,
100533
,
100541
,
100565
,
100609
,
100613
,
100637
,
100711
,
100740
,
100767
,
100781
,
100853
,
100894
,
100917
,
101007
,
101017
,
101071
,
101136
,
101190
,
101212
,
101234
,
101272
,
101339
,
101350
,
101391
,
101400
,
101415
,
101459
,
101524
,
101532
,
101567
,
101594
,
101603
,
101629
,
101678
,
101849
,
101968
,
101989
,
102106
,
102131
,
102139
,
102165
,
102204
,
102245
,
102272
,
102296
,
102321
,
102391
,
102531
,
102600
,
102787
,
102798
,
102800
,
102824
,
102828
,
102836
,
102856
,
102883
,
102912
,
102938
,
102994
,
103009
,
103022
,
103083
,
103150
,
103154
,
103172
,
103187
,
103201
,
103295
,
103310
,
103341
,
103352
,
103362
,
103364
,
103374
,
103384
,
103413
,
103421
,
103467
,
103495
,
103546
,
103582
,
103603
,
103630
,
103633
,
103636
,
103642
,
103703
,
103717
,
103730
,
103808
,
103854
,
104032
,
104093
,
104119
,
104139
,
104153
,
104171
,
104232
,
104331
,
104387
,
104478
,
104581
,
104586
,
104756
,
104816
,
104825
,
104867
,
104974
,
104975
,
105008
,
105036
,
105039
,
105049
,
105055
,
105096
,
105127
,
105151
,
105172
,
105182
,
105247
,
105359
,
105363
,
105375
,
105406
,
105441
,
105487
,
105544
,
105548
,
105646
,
105658
,
105848
,
105893
,
105905
,
106045
,
106165
,
106237
,
106300
,
106648
,
106654
,
106665
,
106805
,
106809
,
106816
);
UPDATE
dj_car_life_staff_account_assign_record
SET
station_type
=
1
,
updated_date
=
NOW
()
WHERE
id
IN
(
90018
,
90039
,
90050
,
90105
,
90115
,
90178
,
90186
,
90194
,
90203
,
90205
,
90213
,
90214
,
90221
,
90229
,
90249
,
90272
,
90289
,
90381
,
90382
,
90392
,
90404
,
90461
,
90485
,
90506
,
90539
,
90554
,
90709
,
90730
,
90737
,
90748
,
90774
,
90789
,
90802
,
90814
,
90828
,
90835
,
90876
,
90882
,
90907
,
90975
,
90988
,
91204
,
91218
,
91231
,
91233
,
91368
,
91403
,
91410
,
91455
,
91480
,
91488
,
91504
,
91578
,
91635
,
91667
,
91749
,
91769
,
91784
,
91796
,
91873
,
91886
,
91906
,
91959
,
91982
,
91997
,
92025
,
92039
,
92043
,
92047
,
92049
,
92060
,
92068
,
92070
,
92080
,
92091
,
92123
,
92206
,
92252
,
92283
,
92332
,
92376
,
92421
,
92450
,
92476
,
92496
,
92519
,
92544
,
92595
,
92607
,
92621
,
92625
,
92712
,
92740
,
92746
,
92792
,
92798
,
92800
,
92807
,
92923
,
92998
,
93034
,
93049
,
93078
,
93083
,
93135
,
93152
,
93156
,
93274
,
93278
,
93285
,
93331
,
93368
,
93522
,
93538
,
93544
,
93563
,
93597
,
93616
,
93664
,
93707
,
93734
,
93740
,
93742
,
93767
,
93859
,
93982
,
94012
,
94081
,
94149
,
94408
,
94435
,
94444
,
94498
,
94513
,
94516
,
94518
,
94544
,
94605
,
94679
,
94696
,
94724
,
94897
,
94950
,
94957
,
94972
,
95033
,
95063
,
95067
,
95074
,
95108
,
95114
,
95159
,
95171
,
95200
,
95223
,
95277
,
95302
,
95347
,
95352
,
95357
,
95424
,
95441
,
95487
,
95489
,
95490
,
95507
,
95568
,
95660
,
95672
,
95775
,
95872
,
95891
,
95967
,
96090
,
96091
,
96127
,
96137
,
96146
,
96161
,
96173
,
96182
,
96200
,
96204
,
96279
,
96332
,
96420
,
96442
,
96456
,
96553
,
96702
,
96716
,
96786
,
96794
,
96853
,
96859
,
96971
,
96976
,
97022
,
97032
,
97039
,
97083
,
97087
,
97180
,
97219
,
97239
,
97446
,
97452
,
97581
,
97622
,
97645
,
97680
,
97690
,
97708
,
97732
,
97737
,
97806
,
97888
,
97930
,
98035
,
98046
,
98058
,
98060
,
98092
,
98125
,
98192
,
98212
,
98260
,
98289
,
98290
,
98367
,
98416
,
98495
,
98538
,
98626
,
98645
,
98797
,
98840
,
98877
,
98995
,
99019
,
99062
,
99100
,
99110
,
99242
,
99314
,
99315
,
99343
,
99345
,
99404
,
99481
,
99513
,
99530
,
99569
,
99570
,
99591
,
99629
,
99681
,
99702
,
99733
,
99748
,
99756
,
99807
,
99824
,
99869
,
99920
,
99955
,
99995
,
100088
,
100107
,
100209
,
100344
,
100516
,
100522
,
100533
,
100541
,
100565
,
100609
,
100613
,
100637
,
100711
,
100740
,
100767
,
100781
,
100853
,
100894
,
100917
,
101007
,
101017
,
101071
,
101136
,
101190
,
101212
,
101234
,
101272
,
101339
,
101350
,
101391
,
101400
,
101415
,
101459
,
101524
,
101532
,
101567
,
101594
,
101603
,
101629
,
101678
,
101849
,
101968
,
101989
,
102106
,
102131
,
102139
,
102165
,
102204
,
102245
,
102272
,
102296
,
102321
,
102391
,
102531
,
102600
,
102787
,
102798
,
102800
,
102824
,
102828
,
102836
,
102856
,
102883
,
102912
,
102938
,
102994
,
103009
,
103022
,
103083
,
103150
,
103154
,
103172
,
103187
,
103201
,
103295
,
103310
,
103341
,
103352
,
103362
,
103364
,
103374
,
103384
,
103413
,
103421
,
103467
,
103495
,
103546
,
103582
,
103603
,
103630
,
103633
,
103636
,
103642
,
103703
,
103717
,
103730
,
103808
,
103854
,
104032
,
104093
,
104119
,
104139
,
104153
,
104171
,
104232
,
104331
,
104387
,
104478
,
104581
,
104586
,
104756
,
104816
,
104825
,
104867
,
104974
,
104975
,
105008
,
105036
,
105039
,
105049
,
105055
,
105096
,
105127
,
105151
,
105172
,
105182
,
105247
,
105359
,
105363
,
105375
,
105406
,
105441
,
105487
,
105544
,
105548
,
105646
,
105658
,
105848
,
105893
,
105905
,
106045
,
106165
,
106237
,
106300
,
106648
,
106654
,
106665
,
106805
,
106809
,
106816
);
###
范富荣
----------------------start-----------------
-- 1. 待施工(0) + 未领单(electronic_flag=0) → 0 待领单
UPDATE
dj_car_life_construction_info
SET
construction_inner_status
=
0
WHERE
construction_status
=
0
AND
electronic_flag
=
0
;
-- 2. 待施工(0) + 已领单 + 未出库 → 1 待出库
UPDATE
dj_car_life_construction_info
SET
construction_inner_status
=
1
WHERE
construction_status
=
0
AND
electronic_flag
=
1
AND
outbound_status
=
0
;
-- 3. 待施工(0) + 已领单 + 已出库 → 2 待完工
UPDATE
dj_car_life_construction_info
SET
construction_inner_status
=
2
WHERE
construction_status
=
0
AND
electronic_flag
=
1
AND
outbound_status
=
1
;
-- 4. 已施工(1)/客户返工(2)/无需施工(3) → 3 已完工
UPDATE
dj_car_life_construction_info
SET
construction_inner_status
=
3
WHERE
construction_status
IN
(
1
,
2
,
3
);
-- 1. 子商品状态: 被返工失效施工单(源单)的子商品 → 3(已返工)
UPDATE
dj_car_life_construction_sub_order_relation
r
INNER
JOIN
dj_car_life_construction_info
ci
ON
r
.
construction_code
=
ci
.
construction_code
SET
r
.
sub_item_status
=
3
,
r
.
effective_flag
=
1
WHERE
ci
.
effective_flag
=
1
AND
ci
.
deleted_flag
=
'N'
AND
r
.
deleted_flag
=
'N'
;
-- 2. 子商品状态: 客户返工施工单(返工单,construction_status=2)的子商品 → 3(已返工)
UPDATE
dj_car_life_construction_sub_order_relation
r
INNER
JOIN
dj_car_life_construction_info
ci
ON
r
.
construction_code
=
ci
.
construction_code
SET
r
.
sub_item_status
=
3
WHERE
ci
.
construction_status
=
2
AND
ci
.
effective_flag
=
0
AND
ci
.
deleted_flag
=
'N'
AND
r
.
deleted_flag
=
'N'
;
-- 3. 子商品状态: 已施工施工单(construction_status=1)的子商品 → 2(已施工)
UPDATE
dj_car_life_construction_sub_order_relation
r
INNER
JOIN
dj_car_life_construction_info
ci
ON
r
.
construction_code
=
ci
.
construction_code
SET
r
.
sub_item_status
=
2
WHERE
ci
.
construction_status
=
1
AND
ci
.
effective_flag
=
0
AND
ci
.
deleted_flag
=
'N'
AND
r
.
deleted_flag
=
'N'
;
-- 5. 子商品状态: 待施工施工单(construction_status=0)的子商品 + 已出库 → 1(待完工)
UPDATE
dj_car_life_construction_sub_order_relation
r
INNER
JOIN
dj_car_life_construction_info
ci
ON
r
.
construction_code
=
ci
.
construction_code
SET
r
.
sub_item_status
=
1
WHERE
ci
.
construction_status
=
1
AND
ci
.
effective_flag
=
0
AND
ci
.
outbound_status
=
1
AND
ci
.
deleted_flag
=
'N'
AND
r
.
deleted_flag
=
'N'
;
-- 5. 出库方式: 已出库施工单的子商品 → 1(手动输入,历史数据均为手动)
UPDATE
dj_car_life_construction_materials_info
r
SET
r
.
outbound_method
=
1
WHERE
r
.
deleted_flag
=
'N'
and
r
.
operation_type
=
1
;
-- 5. 完工信息: 从施工单主表同步
UPDATE
dj_car_life_construction_sub_order_relation
r
INNER
JOIN
dj_car_life_construction_info
ci
ON
r
.
construction_code
=
ci
.
construction_code
SET
r
.
completed_time
=
ci
.
completed_time
,
r
.
completed_uuid
=
ci
.
completed_uuid
,
r
.
completed_name
=
ci
.
completed_name
,
r
.
start_time
=
ci
.
start_time
,
r
.
end_time
=
ci
.
end_time
,
r
.
construction_duration
=
ci
.
construction_duration
WHERE
ci
.
construction_status
IN
(
1
,
2
)
AND
ci
.
deleted_flag
=
'N'
AND
r
.
deleted_flag
=
'N'
;
###
范富荣
-------------------------end--------------------------------------------
\ No newline at end of file
\ No newline at end of file
14_v5.8.2_20260615/需求版本开发内容.md
View file @
7b3276a
...
@@ -307,6 +307,7 @@
...
@@ -307,6 +307,7 @@
-
cn.com.glsx.dj.carboutique.controller.staff.StaffBaseInfoController#assignStaffMerchant 员工基础账号分配门店
-
cn.com.glsx.dj.carboutique.controller.staff.StaffBaseInfoController#assignStaffMerchant 员工基础账号分配门店
-
cn.com.glsx.dj.carboutique.controller.smartcarlife.dailyreport.DailyReportRecordController#getDailyReportDetail 门店日报查询详情时置空 staffUuid,实现门店级数据共享(不按个人维度过滤)
-
cn.com.glsx.dj.carboutique.controller.smartcarlife.dailyreport.DailyReportRecordController#getDailyReportDetail 门店日报查询详情时置空 staffUuid,实现门店级数据共享(不按个人维度过滤)
cn.com.glsx.dj.carboutique.request.smartcarlife.dailyreport.GetDailyReportDetailRequest#staffUuid 移除 @NotNull 校验注解,允许门店日报不传员工id
cn.com.glsx.dj.carboutique.request.smartcarlife.dailyreport.GetDailyReportDetailRequest#staffUuid 移除 @NotNull 校验注解,允许门店日报不传员工id
-
dj.api.smartcarlife.construction.outbound(物料出库,新增返工逻辑)
-
rpc-dj-smartcarlife
-
rpc-dj-smartcarlife
-
【D+后台-财务管理-对账单管理】下载,部分品类比例没有回显数据值 bug修复 cn.com.glsx.dj.smartcarlife.service.reconciliationBill.ReconciliationBillImportService#doImport
-
【D+后台-财务管理-对账单管理】下载,部分品类比例没有回显数据值 bug修复 cn.com.glsx.dj.smartcarlife.service.reconciliationBill.ReconciliationBillImportService#doImport
-
对账单导出 “服务商品类比例”、“流量方品类比例”枚举值取值修改
-
对账单导出 “服务商品类比例”、“流量方品类比例”枚举值取值修改
...
@@ -359,6 +360,7 @@
...
@@ -359,6 +360,7 @@
-
门店日报查询可查询到其他员工填报数据
-
门店日报查询可查询到其他员工填报数据
-
增加商品服务年限字段返回
-
增加商品服务年限字段返回
-
发送企微日报消息
-
发送企微日报消息
-
施工单:物料出库
-
到账伴侣
-
到账伴侣
-
发送异常消息
-
发送异常消息
### 第三轮提测
### 第三轮提测
...
...
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