作者 yangfu

fix: 传入当前登录的用户

@@ -282,7 +282,7 @@ func (srv ExcelDataService) fieldValueAllEmpty(param map[string]string) bool { @@ -282,7 +282,7 @@ func (srv ExcelDataService) fieldValueAllEmpty(param map[string]string) bool {
282 // FileImportTemplate 导入模板 282 // FileImportTemplate 导入模板
283 func (srv ExcelDataService) FileImportTemplate(importDataCommand *command.ImportDataCommand) (interface{}, error) { 283 func (srv ExcelDataService) FileImportTemplate(importDataCommand *command.ImportDataCommand) (interface{}, error) {
284 var mapTemplate = map[string]string{ 284 var mapTemplate = map[string]string{
285 - domain.ImportCompanyUser: "https://timeless-world.oss-cn-shenzhen.aliyuncs.com/open-api/dev_online/20210916/object/1631807485_EaxECeRz23WpzrMZmbwdEPRJ3Pdxpx5X.xlsx", 285 + domain.ImportCompanyUser: "https://timeless-world.oss-cn-shenzhen.aliyuncs.com/opportunity/dev_online/20220222/object/1645495589_cFNDGRTfCxYMZ5hPYzfKxThYd3ywARRz.xlsx",
286 domain.ImportOrganization: "https://timeless-world.oss-cn-shenzhen.aliyuncs.com/open-api/dev_online/20210916/object/1631807490_r2XWhGmbWWmpbeePBkZ3EJQFKcZEMpEm.xlsx", 286 domain.ImportOrganization: "https://timeless-world.oss-cn-shenzhen.aliyuncs.com/open-api/dev_online/20210916/object/1631807490_r2XWhGmbWWmpbeePBkZ3EJQFKcZEMpEm.xlsx",
287 domain.ImportDividendsOrders: "https://timeless-world.oss-cn-shenzhen.aliyuncs.com/open-api/dev_online/20210927/object/1632743206_NPYTKw6RGhXn4TpYNEQhGGdCkXKXTnxM.xlsx", 287 domain.ImportDividendsOrders: "https://timeless-world.oss-cn-shenzhen.aliyuncs.com/open-api/dev_online/20210927/object/1632743206_NPYTKw6RGhXn4TpYNEQhGGdCkXKXTnxM.xlsx",
288 domain.ImportCooperationUser: "https://timeless-world.oss-cn-shenzhen.aliyuncs.com/open-api/dev_online/20210926/object/1632635345_SbfzmkXjQHhCwPw4MB7zb5EBBtdp2MSE.xlsx", 288 domain.ImportCooperationUser: "https://timeless-world.oss-cn-shenzhen.aliyuncs.com/open-api/dev_online/20210926/object/1632635345_SbfzmkXjQHhCwPw4MB7zb5EBBtdp2MSE.xlsx",
@@ -45,6 +45,7 @@ func RedirectInternalService(prefix string, svr internalService) web.FilterFunc @@ -45,6 +45,7 @@ func RedirectInternalService(prefix string, svr internalService) web.FilterFunc
45 if ok && loginToken.CompanyId > 0 && loginToken.OrgId > 0 { 45 if ok && loginToken.CompanyId > 0 && loginToken.OrgId > 0 {
46 req.Header("companyId", fmt.Sprintf("%v", loginToken.CompanyId)) 46 req.Header("companyId", fmt.Sprintf("%v", loginToken.CompanyId))
47 req.Header("orgId", fmt.Sprintf("%v", loginToken.OrgId)) 47 req.Header("orgId", fmt.Sprintf("%v", loginToken.OrgId))
  48 + req.Header("userId", fmt.Sprintf("%v", loginToken.UserId))
48 orgIdList := make([]string, 0) 49 orgIdList := make([]string, 0)
49 for i := range loginToken.OrgIds { 50 for i := range loginToken.OrgIds {
50 orgIdList = append(orgIdList, fmt.Sprintf("%d", loginToken.OrgIds[i])) 51 orgIdList = append(orgIdList, fmt.Sprintf("%d", loginToken.OrgIds[i]))