订单重构文档
订单重构文档
重构方案:
第一步: 统一各项目的增删改查到一个专门的文件里面
第二步: 修改统一之后的文件,再统一到order微服务
第三步: 设计订单表结构,修改order微服务,mongo和mysql双写
第一步涉及的接口
预计1个星期开发完成,灰度全量要长一点。
station
station涉及到的接口:
1. station/task/sorting/batch 没查找到调用
2. station/task/sorting/label 很少的量
3. station/task/sorting/data 没查找到调用 前端已经移除了代码、只能通过url访问
4. station/task/sorting/update_weight 没查找到调用
5. station/task/sorting/refresh_fruit_weight 没查找到调用
6.
7. station/task/distribute/auto_assign 司机任务列表智能规划
8. station/task/distribute/orders/get 配送-右侧的获取指定司机任务
9. station/task/distribute/driver_tasks/get 司机配送获取司机接口
10.
11. station/transport/get_assigned_drivers_new 打印配送单
12. station/transport/print_driver_deliver_paper 前端没找到,但是有调用
13. station/transport/get_order_by_id_new 打印配送单
14. station/transport/distribution_order/submit 假单
15. station/transport/driver_tasks/print 按司机任务打印
16.
17. station/order/order_test 没查找到调用
18. station/order/edit 编辑订单
19. station/order/edit_old 编辑老订单
20. station/order/real_quantity/update station按sku查看 列表 修改的出库数(基本单位)
21. station/order/batch_out_of_stock/update 订单-按商品查看-批量设置缺货
22. station/order/exception 订单售后
23. station/order/import/jindie/one 金蝶导入
24. station/order/import/jindie/more
25. station/order/update_sku_price_auto 下单商品批量同步最新采购价
26. station/order/update_sku_price 手动修改价格
27. station/order/update_sku_price_result 更新订单中的价格后拉取结果,参数是task id
28.
29. station/weigh/checklist/get
30. station/weigh/checklist/get
31. station/weigh/union_dispatch/fast_task
32. station/weigh/get_all_data
33. station/weigh/get_all_re_weight
34. station/weigh/get_diff_order_weight 老PC
35. station/weigh/get_task
36. station/weigh/release_task
37. station/weigh/set_weight
38.
39. weight/sku/out_of_stock 新版批量缺货上报
40. weight/sku/set_weight 新版称重
41. weight/sku/un_out_of_stock 新版取消缺货状态
42. weight/batch_out_of_stock/update 供应链-分拣任务-分拣明细-批量修改缺货
43.
44. station/sales_analysis/orderdetail 同步导出订单
45. station/sales_analysis/deal 订单导出
46. station/sales_analysis/realdeal 前端没找到、净菜站点有调用
47. station/sales_analysis/costofgoods 前端没找到、也没有调用记录
48.
49. process/short/sku/submit 净菜?
50. process/sort/sku/cancel
51.
52. data_center/profit/daily/ ST首页
53.
54. station/refund/export 商户退货入库导出
55. station/refund/search 商户退货入库搜索
56. station/refund/edit 商户退货入库编辑
57.
58. station/mohome_data 移动端特有的接口
59.
60. station/stock/refund_stock_sku 商户退货入库
61.
62. station/distribute/get_order_by_id 打印配送单
63. station/weight/simple_set_weight 前端没找到、没查找到调用
64. station/profit_report/customer 前端没找到、没查找到调用
65. driver/delivery/order/exception/update 司机APP发起售后
66. station/weight/batch_remark
manage
manage涉及到的接口:
1. applets/data_analyse/lastest_orders_count
2. custommanage/edit get
3. custommanage/bill/detail
4. custommanage/bill/search #me:待上线的异步报价单注意下
5. custommanage/report/detail
6. custommanage/report/search
7. finance/strike/balance/add
8. finance/order/update/lock
9. ordermanange/daily/export
10. ordermanage/daily/search
11. finance/order/update/arrival
12. ordermanage/exception
13. ordermanage/exception/lkorder
14. ordermanage/ 这个开头的都要测下
15. report/sale_profit
16. report/customer_order
17. report/orders
18. report/customer_order_abnormal
19. finace/strike/balance/submit
20. finace/order/can_strike_balance
21. finace/order/export
22. finace/order/search
23. finace/order/update/arrival
24. finace/order/update/paid
25.
station涉及一些脚本的修改
1. tools/crontab_tasks/station_settlement.py 脚本涉及到 查询
2. tools/crontab_tasks/set_order_status_distributing.py update
3. tools/celery_tasks/async_order_sku_price.py celery 修改
4. tools/crontab_tasks/finance_daily.py
5. tools/crontab_tasks/order_count_everyday.py
6. tools/crontab_tasks/update_order_num_fresh.py:15
7. tools/crontab_tasks/update_out_stock_sku.py:25
8. tools/crontab_tasks/update_sku_frequency.py:16
9. tools/regular/clear_station_data.py:25
10. tools/regular/format_receive_time.py:15
11. tools/tmp/add_oderstatistics.py:16
12. tools/tmp/fix_close_order_out_stock_sheet.py:13
13. tools/tmp/fix_out_stock.py:24
14. tools/tmp/sync_order_origin_amount.py:36
15. tools/tmp/sync_order_real_is_weight.py:59
16. tools/tmp/update_order_settle_way.py:34
ma涉及一些脚本的修改
1. tools/update_order_sales.py
删除
data_center/profit/detail/customer/ 没找到调用
data_center/profit/detail/salemenu/ 没找到调用
data_center/profit/detail/product/ 没找到调用
station/abnormal_analysis/products 没找到调用
station/abnormal_analysis/restaurants 没找到调用
第二步 微服务接口设计
等上一步完成设计