|
@@ -1580,7 +1580,7 @@ func (this *ReportController) Detail() {
|
|
|
// br.IsSendEmail = false
|
|
|
// return
|
|
|
//}
|
|
|
- uid := user.UserId
|
|
|
+ //uid := user.UserId
|
|
|
articleId, _ := this.GetInt("ArticleId")
|
|
|
isBestNew, _ := this.GetBool("IsBestNew")
|
|
|
if isBestNew {
|
|
@@ -1729,27 +1729,27 @@ func (this *ReportController) Detail() {
|
|
|
existMap[v.ChartPermissionId] = v.ChartPermissionId
|
|
|
}
|
|
|
|
|
|
- historyRecord := new(models.CygxReportHistoryRecord)
|
|
|
- historyRecord.UserId = uid
|
|
|
- historyRecord.ArticleId = articleId
|
|
|
- historyRecord.CreateTime = time.Now()
|
|
|
- historyRecord.Mobile = user.Mobile
|
|
|
- historyRecord.Email = user.Email
|
|
|
- historyRecord.CompanyId = user.CompanyId
|
|
|
- historyRecord.CompanyName = user.CompanyName
|
|
|
- historyRecord.ReportType = "bgjx"
|
|
|
- sellerItem, err := models.GetSellerByCompanyIdCheckFicc(user.CompanyId, 2)
|
|
|
- if err != nil && err.Error() != utils.ErrNoRow() {
|
|
|
- br.Msg = "获取信息失败"
|
|
|
- br.ErrMsg = "获取销售信息失败,Err:" + err.Error()
|
|
|
- return
|
|
|
- }
|
|
|
- historyRecord.RealName = user.RealName
|
|
|
- if sellerItem != nil {
|
|
|
- historyRecord.SellerName = sellerItem.RealName
|
|
|
- }
|
|
|
-
|
|
|
- go models.AddCygxReportHistoryRecord(historyRecord)
|
|
|
+ //historyRecord := new(models.CygxReportHistoryRecord)
|
|
|
+ //historyRecord.UserId = uid
|
|
|
+ //historyRecord.ArticleId = articleId
|
|
|
+ //historyRecord.CreateTime = time.Now()
|
|
|
+ //historyRecord.Mobile = user.Mobile
|
|
|
+ //historyRecord.Email = user.Email
|
|
|
+ //historyRecord.CompanyId = user.CompanyId
|
|
|
+ //historyRecord.CompanyName = user.CompanyName
|
|
|
+ //historyRecord.ReportType = "bgjx"
|
|
|
+ //sellerItem, err := models.GetSellerByCompanyIdCheckFicc(user.CompanyId, 2)
|
|
|
+ //if err != nil && err.Error() != utils.ErrNoRow() {
|
|
|
+ // br.Msg = "获取信息失败"
|
|
|
+ // br.ErrMsg = "获取销售信息失败,Err:" + err.Error()
|
|
|
+ // return
|
|
|
+ //}
|
|
|
+ //historyRecord.RealName = user.RealName
|
|
|
+ //if sellerItem != nil {
|
|
|
+ // historyRecord.SellerName = sellerItem.RealName
|
|
|
+ //}
|
|
|
+ //
|
|
|
+ //go models.AddCygxReportHistoryRecord(historyRecord)
|
|
|
resp.List = items
|
|
|
resp.ListPermissionSubject = itemsSubject
|
|
|
resp.Detail = detail
|
|
@@ -1776,7 +1776,7 @@ func (this *ReportController) ResearchDetail() {
|
|
|
br.Ret = 408
|
|
|
return
|
|
|
}
|
|
|
- uid := user.UserId
|
|
|
+ //uid := user.UserId
|
|
|
articleId, _ := this.GetInt("ArticleId")
|
|
|
if articleId < 0 {
|
|
|
br.Msg = "参数错误"
|
|
@@ -1886,26 +1886,26 @@ func (this *ReportController) ResearchDetail() {
|
|
|
listFirst[k].IcoLink = "https://hongze.oss-cn-shanghai.aliyuncs.com/static/images/202111/20211104/QbTGTNhD9MxYp24cJ7V5WpCN0oNl.png"
|
|
|
}
|
|
|
}
|
|
|
- historyRecord := new(models.CygxReportHistoryRecord)
|
|
|
- historyRecord.UserId = uid
|
|
|
- historyRecord.ArticleId = articleId
|
|
|
- historyRecord.CreateTime = time.Now()
|
|
|
- historyRecord.Mobile = user.Mobile
|
|
|
- historyRecord.Email = user.Email
|
|
|
- historyRecord.CompanyId = user.CompanyId
|
|
|
- historyRecord.CompanyName = user.CompanyName
|
|
|
- historyRecord.ReportType = "bzyjhz"
|
|
|
- sellerItem, err := models.GetSellerByCompanyIdCheckFicc(user.CompanyId, 2)
|
|
|
- if err != nil && err.Error() != utils.ErrNoRow() {
|
|
|
- br.Msg = "获取信息失败"
|
|
|
- br.ErrMsg = "获取销售信息失败,Err:" + err.Error()
|
|
|
- return
|
|
|
- }
|
|
|
- historyRecord.RealName = user.RealName
|
|
|
- if sellerItem != nil {
|
|
|
- historyRecord.SellerName = sellerItem.RealName
|
|
|
- }
|
|
|
- go models.AddCygxReportHistoryRecord(historyRecord)
|
|
|
+ //historyRecord := new(models.CygxReportHistoryRecord)
|
|
|
+ //historyRecord.UserId = uid
|
|
|
+ //historyRecord.ArticleId = articleId
|
|
|
+ //historyRecord.CreateTime = time.Now()
|
|
|
+ //historyRecord.Mobile = user.Mobile
|
|
|
+ //historyRecord.Email = user.Email
|
|
|
+ //historyRecord.CompanyId = user.CompanyId
|
|
|
+ //historyRecord.CompanyName = user.CompanyName
|
|
|
+ //historyRecord.ReportType = "bzyjhz"
|
|
|
+ //sellerItem, err := models.GetSellerByCompanyIdCheckFicc(user.CompanyId, 2)
|
|
|
+ //if err != nil && err.Error() != utils.ErrNoRow() {
|
|
|
+ // br.Msg = "获取信息失败"
|
|
|
+ // br.ErrMsg = "获取销售信息失败,Err:" + err.Error()
|
|
|
+ // return
|
|
|
+ //}
|
|
|
+ //historyRecord.RealName = user.RealName
|
|
|
+ //if sellerItem != nil {
|
|
|
+ // historyRecord.SellerName = sellerItem.RealName
|
|
|
+ //}
|
|
|
+ //go models.AddCygxReportHistoryRecord(historyRecord)
|
|
|
resp.List = listFirst
|
|
|
resp.Detail = detail
|
|
|
br.Ret = 200
|
|
@@ -1931,7 +1931,7 @@ func (this *ReportController) MinutesDetailV4() {
|
|
|
br.Ret = 408
|
|
|
return
|
|
|
}
|
|
|
- uid := user.UserId
|
|
|
+ //uid := user.UserId
|
|
|
articleId, _ := this.GetInt("ArticleId")
|
|
|
if articleId < 0 {
|
|
|
br.Msg = "参数错误"
|
|
@@ -2020,26 +2020,26 @@ func (this *ReportController) MinutesDetailV4() {
|
|
|
listFirst[k].IcoLink = "https://hongze.oss-cn-shanghai.aliyuncs.com/static/images/202111/20211104/QbTGTNhD9MxYp24cJ7V5WpCN0oNl.png"
|
|
|
}
|
|
|
}
|
|
|
- historyRecord := new(models.CygxReportHistoryRecord)
|
|
|
- historyRecord.UserId = uid
|
|
|
- historyRecord.ArticleId = articleId
|
|
|
- historyRecord.CreateTime = time.Now()
|
|
|
- historyRecord.Mobile = user.Mobile
|
|
|
- historyRecord.Email = user.Email
|
|
|
- historyRecord.CompanyId = user.CompanyId
|
|
|
- historyRecord.CompanyName = user.CompanyName
|
|
|
- historyRecord.ReportType = "szjyhz"
|
|
|
- sellerItem, err := models.GetSellerByCompanyIdCheckFicc(user.CompanyId, 2)
|
|
|
- if err != nil && err.Error() != utils.ErrNoRow() {
|
|
|
- br.Msg = "获取信息失败"
|
|
|
- br.ErrMsg = "获取销售信息失败,Err:" + err.Error()
|
|
|
- return
|
|
|
- }
|
|
|
- historyRecord.RealName = user.RealName
|
|
|
- if sellerItem != nil {
|
|
|
- historyRecord.SellerName = sellerItem.RealName
|
|
|
- }
|
|
|
- go models.AddCygxReportHistoryRecord(historyRecord)
|
|
|
+ //historyRecord := new(models.CygxReportHistoryRecord)
|
|
|
+ //historyRecord.UserId = uid
|
|
|
+ //historyRecord.ArticleId = articleId
|
|
|
+ //historyRecord.CreateTime = time.Now()
|
|
|
+ //historyRecord.Mobile = user.Mobile
|
|
|
+ //historyRecord.Email = user.Email
|
|
|
+ //historyRecord.CompanyId = user.CompanyId
|
|
|
+ //historyRecord.CompanyName = user.CompanyName
|
|
|
+ //historyRecord.ReportType = "szjyhz"
|
|
|
+ //sellerItem, err := models.GetSellerByCompanyIdCheckFicc(user.CompanyId, 2)
|
|
|
+ //if err != nil && err.Error() != utils.ErrNoRow() {
|
|
|
+ // br.Msg = "获取信息失败"
|
|
|
+ // br.ErrMsg = "获取销售信息失败,Err:" + err.Error()
|
|
|
+ // return
|
|
|
+ //}
|
|
|
+ //historyRecord.RealName = user.RealName
|
|
|
+ //if sellerItem != nil {
|
|
|
+ // historyRecord.SellerName = sellerItem.RealName
|
|
|
+ //}
|
|
|
+ //go models.AddCygxReportHistoryRecord(historyRecord)
|
|
|
resp.List = listFirst
|
|
|
resp.Detail = detail
|
|
|
br.Ret = 200
|
|
@@ -2065,7 +2065,7 @@ func (this *ReportController) MinutesDetail() {
|
|
|
br.Ret = 408
|
|
|
return
|
|
|
}
|
|
|
- uid := user.UserId
|
|
|
+ //uid := user.UserId
|
|
|
articleId, _ := this.GetInt("ArticleId")
|
|
|
if articleId < 0 {
|
|
|
br.Msg = "参数错误"
|
|
@@ -2117,26 +2117,26 @@ func (this *ReportController) MinutesDetail() {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- historyRecord := new(models.CygxReportHistoryRecord)
|
|
|
- historyRecord.UserId = uid
|
|
|
- historyRecord.ArticleId = articleId
|
|
|
- historyRecord.CreateTime = time.Now()
|
|
|
- historyRecord.Mobile = user.Mobile
|
|
|
- historyRecord.Email = user.Email
|
|
|
- historyRecord.CompanyId = user.CompanyId
|
|
|
- historyRecord.CompanyName = user.CompanyName
|
|
|
- historyRecord.ReportType = "szjyhz"
|
|
|
- sellerItem, err := models.GetSellerByCompanyIdCheckFicc(user.CompanyId, 2)
|
|
|
- if err != nil && err.Error() != utils.ErrNoRow() {
|
|
|
- br.Msg = "获取信息失败"
|
|
|
- br.ErrMsg = "获取销售信息失败,Err:" + err.Error()
|
|
|
- return
|
|
|
- }
|
|
|
- historyRecord.RealName = user.RealName
|
|
|
- if sellerItem != nil {
|
|
|
- historyRecord.SellerName = sellerItem.RealName
|
|
|
- }
|
|
|
- go models.AddCygxReportHistoryRecord(historyRecord)
|
|
|
+ //historyRecord := new(models.CygxReportHistoryRecord)
|
|
|
+ //historyRecord.UserId = uid
|
|
|
+ //historyRecord.ArticleId = articleId
|
|
|
+ //historyRecord.CreateTime = time.Now()
|
|
|
+ //historyRecord.Mobile = user.Mobile
|
|
|
+ //historyRecord.Email = user.Email
|
|
|
+ //historyRecord.CompanyId = user.CompanyId
|
|
|
+ //historyRecord.CompanyName = user.CompanyName
|
|
|
+ //historyRecord.ReportType = "szjyhz"
|
|
|
+ //sellerItem, err := models.GetSellerByCompanyIdCheckFicc(user.CompanyId, 2)
|
|
|
+ //if err != nil && err.Error() != utils.ErrNoRow() {
|
|
|
+ // br.Msg = "获取信息失败"
|
|
|
+ // br.ErrMsg = "获取销售信息失败,Err:" + err.Error()
|
|
|
+ // return
|
|
|
+ //}
|
|
|
+ //historyRecord.RealName = user.RealName
|
|
|
+ //if sellerItem != nil {
|
|
|
+ // historyRecord.SellerName = sellerItem.RealName
|
|
|
+ //}
|
|
|
+ //go models.AddCygxReportHistoryRecord(historyRecord)
|
|
|
resp.List = listLog
|
|
|
resp.Detail = detail
|
|
|
br.Ret = 200
|