1234567891011121314151617181920212223242526272829303132 |
- import os
- import django
- import sys
- def setup_django():
-
- project_path = "D:/Document/code/vue/greater_wms"
- sys.path.append(project_path)
-
- os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'greaterwms.settings')
- django.setup()
- def main():
- from bin.services import AllocationService
- try:
-
-
-
- location_min_value,allocation_target_location, batch_info = AllocationService._move_allocation('W01-01-07-01', 'W01-01-06-01', '10060')
-
-
- except Exception as e:
- print(e)
- if __name__ == "__main__":
- setup_django()
- main()
|