|
@@ -413,15 +413,15 @@ func (rg *RegisterController) Add(c *gin.Context) {
|
|
|
}
|
|
|
|
|
|
// 获取销售分组信息
|
|
|
- sellerList, e := crmService.GetSellerDepartmentListWithGroupAndTeam()
|
|
|
- if e != nil {
|
|
|
- resp.FailData("获取销售失败", "Err:"+e.Error(), c)
|
|
|
- return
|
|
|
- }
|
|
|
- sellerMap := make(map[int]*crm.SellerAdminWithGroupTeam)
|
|
|
- for i := range sellerList {
|
|
|
- sellerMap[sellerList[i].SellerId] = sellerList[i]
|
|
|
- }
|
|
|
+ //sellerList, e := crmService.GetSellerDepartmentListWithGroupAndTeam()
|
|
|
+ //if e != nil {
|
|
|
+ // resp.FailData("获取销售失败", "Err:"+e.Error(), c)
|
|
|
+ // return
|
|
|
+ //}
|
|
|
+ //sellerMap := make(map[int]*crm.SellerAdminWithGroupTeam)
|
|
|
+ //for i := range sellerList {
|
|
|
+ // sellerMap[sellerList[i].SellerId] = sellerList[i]
|
|
|
+ //}
|
|
|
//处理重复公司名日期等重复的开票到款记录
|
|
|
dupList, e := fms.GetDuplicateContractInvoiceDetailItemList(ob.CompanyName, req.StartDate, req.EndDate)
|
|
|
if e != nil {
|
|
@@ -1408,7 +1408,7 @@ func (rg *RegisterController) Invoice(c *gin.Context) {
|
|
|
dayDiff := item.EndDate.Sub(item.StartDate).Hours() / 24
|
|
|
|
|
|
// 获取销售分组信息
|
|
|
- sellerList, e := crmService.GetSellerDepartmentListWithGroupAndTeam()
|
|
|
+ sellerList, e := crmService.GetSellerDepartmentListWithEnable()
|
|
|
if e != nil {
|
|
|
resp.FailData("获取销售失败", "Err:"+e.Error(), c)
|
|
|
return
|
|
@@ -2673,7 +2673,7 @@ func (rg *RegisterController) Import(c *gin.Context) {
|
|
|
}
|
|
|
|
|
|
// 获取所有销售Map
|
|
|
- sellerList, e := crmService.GetSellerDepartmentListWithGroupAndTeam()
|
|
|
+ sellerList, e := crmService.GetSellerDepartmentListWithEnable()
|
|
|
if e != nil {
|
|
|
resp.FailData("获取销售列表失败", "Err:"+e.Error(), c)
|
|
|
return
|