Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-api-boot-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-api-boot-master
Commits
e221b7b8
Commit
e221b7b8
authored
Nov 21, 2024
by
zhengyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
控货订单新增业务值的刷新脚本
parent
79448311
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
20241121.sql
sql/v2.1/20241121.sql
+5
-0
No files found.
sql/v2.1/20241121.sql
0 → 100644
View file @
e221b7b8
-- 判断控货订单的限制属性设置
update
ecw_order
set
is_limit_update_consignee
=
has_consignee
,
lock_consignee_day
=
IF
(
lock_consignee_day
is
not
null
,
lock_consignee_day
,
30
),
lock_consignee_time
=
IF
(
unload_time
is
not
null
,
CONCAT
(
DATE_FORMAT
(
DATE_ADD
(
unload_time
,
INTERVAL
lock_consignee_day
DAY
),
'%Y-%m-%d'
),
' 23:59:59'
),
NULL
)
WHERE
is_cargo_control
=
1
;
-- 进口城市的仓库设置免租期默认30天,
update
ecw_warehouse
w
left
join
ecw_region
r
on
w
.
shi
=
r
.
id
set
rent_free_days
=
30
,
lock_recipient_days
=
30
WHERE
r
.
type
in
(
1
,
3
);
\ No newline at end of file
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