废弃 department 需要修改老工程的统计
gm_management
数据库
部门
ExceptionHistory
first_department_id
second_department_id
RefundHistory
department_blame_id
department_to_id
OrderRemark
department_id
Employee
department
角色
Employee
role_id
接口
部门
ordermanage/order/get 获取异常订单详情,改动:把部门ID换成名字
xadmin 相关接口,这里应该是本次需求本来就想废弃的,无视
report/sale_profit 这里有统计异常内部门相关的逻辑,把部门ID换成名字就好
角色
CommonBaseView 登录获取权限的逻辑用到了role,其他无
gm_service
gm_service 用到了 department 处的汇总
数据库
TicketHistory
department_to_id
StationUser
department_id
ExceptionHistory
first_department_id
second_department_id
RefundHistory
department_blame_id
department_to_id
OrderRemark
department_id
order_statistic_.* (mongo)
abnormal_department.department_id 这个字段不能继续存在了
接口
废弃接口
(用户管理)
/admin/*
(数据中心 - 异常分析)
/station/abnormal_analysis/order_details
/station/abnormal_analysis/details
/station/abnormal_analysis/order_remark
修改接口
(利润报表详情)
data_center/profit/*
最关键的函数 search_department_id_in get_refund_department_id_in
def updateStatistics_core
<<<
exception_infos = search_department_id_in(
list(exception_ids)
) if exception_ids else {}
refund_infos = get_refund_department_id_in(
list(refund_ids)
) if refund_ids else {}
>>>
涉及到的代码
whatever user DepartmentService
RoleService().department
RoleService().get_data(department_id=None)
UserService.cols StationUser.department_id
UserService().get_data(*, department)
UserService().save_user_station(department)
UserService().save(data) and department_id in data
search_department_all
get_order_remark
DepartmentCols
search_department_id_in
search_infos_in
OrderRemarkCols
get_refund_department_id_in
get_abnormal_details_in
updateStatistics_core
class Department(Base)
Django_Model_Department
Django_Model_Role
class Department(Base):
AbnormalOrderDetailIndexView
AbnormalDetailsIndexView
AbnormalRemarkDetailsIndexView