Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
岳巧源
/
my-awesome-project
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
4ae72b08
authored
Jul 15, 2024
by
岳巧源
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
modify default value
parent
4b1c51fd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
migrate_sql.py
migrate_sql.py
View file @
4ae72b08
...
@@ -27,11 +27,11 @@ def migrate_from_lie_scm_order():
...
@@ -27,11 +27,11 @@ def migrate_from_lie_scm_order():
}
}
frq_id
=
""
frq_id
=
""
erp_sn
=
""
erp_sn
=
""
seller_uid
=
""
seller_uid
=
"
0
"
seller_name
=
""
seller_name
=
""
purchase_sn
=
""
purchase_sn
=
""
erp_purchase_sn
=
""
erp_purchase_sn
=
""
company_id
=
""
company_id
=
"
0
"
company_name
=
""
company_name
=
""
#先获取scm的主键还有 purchase_item_id
#先获取scm的主键还有 purchase_item_id
sql1
=
"select scm_order_item_id, purchase_item_id, purchase_id, goods_id, goods_sn, goods_name, brand_id, brand_name, supplier_id, supplier_name, warehouse_receipt_sn, in_qty, goods_number, stock_in_status, create_name, shipping_id, create_uid, shipment_number, shipping_name, create_time, update_time, purchase_uid, purchase_name, purchase_item_id from lie_scm_order"
sql1
=
"select scm_order_item_id, purchase_item_id, purchase_id, goods_id, goods_sn, goods_name, brand_id, brand_name, supplier_id, supplier_name, warehouse_receipt_sn, in_qty, goods_number, stock_in_status, create_name, shipping_id, create_uid, shipment_number, shipping_name, create_time, update_time, purchase_uid, purchase_name, purchase_item_id from lie_scm_order"
...
@@ -140,24 +140,24 @@ def migrate_from_stock_in_item():
...
@@ -140,24 +140,24 @@ def migrate_from_stock_in_item():
}
}
frq_id
=
""
frq_id
=
""
purchase_id
=
""
purchase_id
=
""
stock_in_item_id
=
""
stock_in_item_id
=
"
0
"
goods_id
=
""
goods_id
=
"
0
"
goods_sn
=
""
goods_sn
=
""
goods_name
=
""
goods_name
=
""
brand_id
=
""
brand_id
=
"
0
"
brand_name
=
""
brand_name
=
""
warehouse_receipt_sn
=
""
warehouse_receipt_sn
=
""
in_qty
=
""
in_qty
=
"
0
"
out_qty
=
""
out_qty
=
"
0
"
create_time
=
""
create_time
=
"
0
"
update_time
=
""
update_time
=
"
0
"
purchase_item_id
=
""
purchase_item_id
=
"
0
"
erp_sn
=
""
erp_sn
=
""
seller_uid
=
""
seller_uid
=
"
0
"
seller_name
=
""
seller_name
=
""
purchase_sn
=
""
purchase_sn
=
""
erp_purchase_sn
=
""
erp_purchase_sn
=
""
company_id
=
""
company_id
=
"
0
"
company_name
=
""
company_name
=
""
sql1
=
"select stock_in_id, supplier_id, supplier_name, status, create_name, shipping_id, create_uid, shipment_number, shipping_name, purchase_uid, purchase_name from lie_stock_in where stock_in_type in (1, 2)"
sql1
=
"select stock_in_id, supplier_id, supplier_name, status, create_name, shipping_id, create_uid, shipment_number, shipping_name, purchase_uid, purchase_name from lie_stock_in where stock_in_type in (1, 2)"
sql2
=
"select frq_id, purchase_id, stock_in_item_id, goods_id, goods_sn, goods_name, brand_id, brand_name, warehouse_receipt_sn, in_qty, out_qty, create_time, update_time, purchase_item_id from lie_stock_in_items where stock_in_id = "
sql2
=
"select frq_id, purchase_id, stock_in_item_id, goods_id, goods_sn, goods_name, brand_id, brand_name, warehouse_receipt_sn, in_qty, out_qty, create_time, update_time, purchase_item_id from lie_stock_in_items where stock_in_id = "
...
...
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