|
@@ -234,11 +234,11 @@ func AddOrderWork(acceptanceData map[string]interface{}, userData map[string]int
|
|
|
orderWorkAllocationRecord := map[string]interface{}{
|
|
|
"person_name": userData["name"],
|
|
|
"position_id": userData["position_id"],
|
|
|
- "dept_name": userData["deptName"],
|
|
|
- "dept_id": userData["deptId"],
|
|
|
+ "dept_name": personMap["deptName"],
|
|
|
+ "dept_id": personMap["deptId"],
|
|
|
"work_order_no": work_order_no,
|
|
|
"create_time": nowTime,
|
|
|
- "company_dept_numb": common.If(gconv.String(userData["deptName"]) == "销售三部", 3, 1),
|
|
|
+ "company_dept_numb": common.If(gconv.String(personMap["deptName"]) == "销售三部", 3, 1),
|
|
|
}
|
|
|
WorkOrder.Insert("order_work_allocation_record", orderWorkAllocationRecord)
|
|
|
}
|