正在显示
4 个修改的文件
包含
10 行增加
和
4 行删除
@@ -20,6 +20,7 @@ func (srv ExcelDataService) ExportCompanyUser(companyUserListQuery *query.Compan | @@ -20,6 +20,7 @@ func (srv ExcelDataService) ExportCompanyUser(companyUserListQuery *query.Compan | ||
20 | Phone: "", | 20 | Phone: "", |
21 | UserType: domain.UserTypeEmployee, | 21 | UserType: domain.UserTypeEmployee, |
22 | InOrgIds: companyUserListQuery.Operator.OrgIds, | 22 | InOrgIds: companyUserListQuery.Operator.OrgIds, |
23 | + PullRealTime: true, | ||
23 | }) | 24 | }) |
24 | if err != nil { | 25 | if err != nil { |
25 | return ExportCompanyUserData{}, fmt.Errorf("获取企业用户数据失败:%w", err) | 26 | return ExportCompanyUserData{}, fmt.Errorf("获取企业用户数据失败:%w", err) |
@@ -204,8 +204,8 @@ func (srv ExcelDataService) FileImportTemplate(importDataCommand *command.Import | @@ -204,8 +204,8 @@ func (srv ExcelDataService) FileImportTemplate(importDataCommand *command.Import | ||
204 | domain.ImportCompanyUser: "https://timeless-world.oss-cn-shenzhen.aliyuncs.com/open-api/dev_online/20210916/object/1631807485_EaxECeRz23WpzrMZmbwdEPRJ3Pdxpx5X.xlsx", | 204 | domain.ImportCompanyUser: "https://timeless-world.oss-cn-shenzhen.aliyuncs.com/open-api/dev_online/20210916/object/1631807485_EaxECeRz23WpzrMZmbwdEPRJ3Pdxpx5X.xlsx", |
205 | domain.ImportOrganization: "https://timeless-world.oss-cn-shenzhen.aliyuncs.com/open-api/dev_online/20210916/object/1631807490_r2XWhGmbWWmpbeePBkZ3EJQFKcZEMpEm.xlsx", | 205 | domain.ImportOrganization: "https://timeless-world.oss-cn-shenzhen.aliyuncs.com/open-api/dev_online/20210916/object/1631807490_r2XWhGmbWWmpbeePBkZ3EJQFKcZEMpEm.xlsx", |
206 | domain.ImportDividendsOrders: "https://timeless-world.oss-cn-shenzhen.aliyuncs.com/open-api/dev_online/20210917/object/1631843469_DykNwexeYYtzxzbwsER5RrzCS7QRwGmd.xlsx", | 206 | domain.ImportDividendsOrders: "https://timeless-world.oss-cn-shenzhen.aliyuncs.com/open-api/dev_online/20210917/object/1631843469_DykNwexeYYtzxzbwsER5RrzCS7QRwGmd.xlsx", |
207 | - domain.ImportCooperationUser: "https://timeless-world.oss-cn-shenzhen.aliyuncs.com/open-api/dev_online/20210924/object/1632465394_kRTz5FfjXABF2hb6d2Nd3JMJ3Xz7zBE2.xlsx", | ||
208 | - domain.ImportDividendsReturnOrders: "https://timeless-world.oss-cn-shenzhen.aliyuncs.com/open-api/dev_online/20210924/object/1632472672_hbFG5Ad3JFZM7fCerb5eShaRneCRkHsY.xlsx", | 207 | + domain.ImportCooperationUser: "https://timeless-world.oss-cn-shenzhen.aliyuncs.com/open-api/dev_online/20210926/object/1632635345_SbfzmkXjQHhCwPw4MB7zb5EBBtdp2MSE.xlsx", |
208 | + domain.ImportDividendsReturnOrders: "https://timeless-world.oss-cn-shenzhen.aliyuncs.com/open-api/dev_online/20210926/object/1632635351_EbDmBxjRf2hNCfZsZWK26fDctTJ4Qzht.xlsx", | ||
209 | } | 209 | } |
210 | var url string | 210 | var url string |
211 | var ok bool | 211 | var ok bool |
@@ -34,7 +34,7 @@ func (data ExportCompanyUserData) CellValue(index int, enName string) (value int | @@ -34,7 +34,7 @@ func (data ExportCompanyUserData) CellValue(index int, enName string) (value int | ||
34 | return data[index].UserInfo.Phone | 34 | return data[index].UserInfo.Phone |
35 | case "DepartmentName": | 35 | case "DepartmentName": |
36 | if data[index].Department != nil { | 36 | if data[index].Department != nil { |
37 | - return data[index].Department.DepartmentName | 37 | + return data[index].Department.DepartmentNumber |
38 | } else { | 38 | } else { |
39 | return "" | 39 | return "" |
40 | } | 40 | } |
@@ -53,7 +53,7 @@ func (data ExportCompanyUserData) CellValue(index int, enName string) (value int | @@ -53,7 +53,7 @@ func (data ExportCompanyUserData) CellValue(index int, enName string) (value int | ||
53 | return statusName | 53 | return statusName |
54 | case "OrgName": | 54 | case "OrgName": |
55 | if data[index].Org != nil { | 55 | if data[index].Org != nil { |
56 | - return data[index].Org.OrgName | 56 | + return data[index].Org.OrgCode |
57 | } else { | 57 | } else { |
58 | return "" | 58 | return "" |
59 | } | 59 | } |
@@ -97,6 +97,9 @@ func (data ExportCooperationUserData) CellValue(index int, enName string) (value | @@ -97,6 +97,9 @@ func (data ExportCooperationUserData) CellValue(index int, enName string) (value | ||
97 | case "CooperationCompany": | 97 | case "CooperationCompany": |
98 | return data[index].CooperationInfo.CooperationCompany | 98 | return data[index].CooperationInfo.CooperationCompany |
99 | case "CooperationDeadline": | 99 | case "CooperationDeadline": |
100 | + if data[index].CooperationInfo.CooperationDeadline.IsZero() { | ||
101 | + return "" | ||
102 | + } | ||
100 | return data[index].CooperationInfo.CooperationDeadline.Format("2006-01-02") | 103 | return data[index].CooperationInfo.CooperationDeadline.Format("2006-01-02") |
101 | case "Phone": | 104 | case "Phone": |
102 | return data[index].UserInfo.Phone | 105 | return data[index].UserInfo.Phone |
@@ -43,6 +43,8 @@ type UserDetail struct { | @@ -43,6 +43,8 @@ type UserDetail struct { | ||
43 | Department *struct { | 43 | Department *struct { |
44 | DepartmentId int `json:"departmentId"` | 44 | DepartmentId int `json:"departmentId"` |
45 | DepartmentName string `json:"departmentName"` | 45 | DepartmentName string `json:"departmentName"` |
46 | + // 部门编号 | ||
47 | + DepartmentNumber string `json:"departmentNumber"` | ||
46 | } `json:"department,omitempty"` | 48 | } `json:"department,omitempty"` |
47 | UserRole []struct { | 49 | UserRole []struct { |
48 | RoleID int `json:"roleId"` | 50 | RoleID int `json:"roleId"` |
-
请 注册 或 登录 后发表评论