浏览代码

取消销售列表以及销售统计列表禁用不显示

ziwen 1 年之前
父节点
当前提交
f0bab7e1ea
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 2 2
      controller/census/seller.go
  2. 1 1
      services/crm/company_seller.go

+ 2 - 2
controller/census/seller.go

@@ -223,9 +223,9 @@ func (ct *SellerController) InvoiceList(c *gin.Context) {
 		return
 	}
 	pars := make([]interface{}, 0)
-	outCond := ` a.department_id = %d AND a.enabled = 1 `
+	outCond := ` a.department_id = %d `
 	outCond = fmt.Sprintf(outCond, departmentId)
-	totalCond := ` department_id = %d AND enabled = 1 `
+	totalCond := ` department_id = %d `
 	totalCond = fmt.Sprintf(totalCond, departmentId)
 	totalPars := make([]interface{}, 0)
 	if req.GroupId > 0 {

+ 1 - 1
services/crm/company_seller.go

@@ -115,7 +115,7 @@ func GetSellerDepartmentList() (resp crm.SellerAdminWithGroupList, err error) {
 	}
 
 	// 获取销售部门所有销售信息
-	adminCond := "department_id in (?) AND enabled = 1"
+	adminCond := "department_id in (?) "
 	adminPars := make([]interface{}, 0)
 	adminPars = append(adminPars, departmentIds)
 	adminOB := new(crm.Admin)