浏览代码

Merge branch 'cygx_13.8' of http://8.136.199.33:3000/hongze/hongze_cygx into debug

xingzai 6 月之前
父节点
当前提交
39aaa7ded8
共有 1 个文件被更改,包括 10 次插入0 次删除
  1. 10 0
      services/ficc_report.go

+ 10 - 0
services/ficc_report.go

@@ -580,6 +580,8 @@ func GetFiccReportXcxItem(user *models.WxUserItem) (itemSourceResp *models.CygxR
 			}
 		}
 	}
+	var hasPermission int
+	var e error
 	if hasPersion {
 		itemResp.HasPermission = 1
 	} else {
@@ -587,7 +589,15 @@ func GetFiccReportXcxItem(user *models.WxUserItem) (itemSourceResp *models.CygxR
 		if err != nil {
 			return
 		}
+		hasPermission, e = GetUserPermissionCode(user.UserId, user.CompanyId)
+		if e != nil {
+			err = errors.New("GetUserPermissionCode")
+			return
+		}
+		itemResp.SellerName, itemResp.SellerMobile, _ = GetSellerName(user)
 	}
+
+	itemResp.HasPermission = hasPermission
 	itemSource.FiccReportXcx = itemResp
 	itemSourceResp = itemSource
 	return