瀏覽代碼

领取线索

xuzhiheng 1 年之前
父節點
當前提交
51efc44cee
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      service/clue.go

+ 2 - 2
service/clue.go

@@ -497,8 +497,8 @@ func DrawClue(this *biservice.DrawClueReq) *biservice.AddProjectResp {
 func DrawClueSync(this *biservice.DrawClueReq) (int, int) {
 func DrawClueSync(this *biservice.DrawClueReq) (int, int) {
 	if DataLock.TryLock() {
 	if DataLock.TryLock() {
 		defer DataLock.Unlock()
 		defer DataLock.Unlock()
-		count1 := JyBiTidb.Count("dwd_f_crm_clue_info", map[string]interface{}{"level_open": 1, "is_assign": 0})
-		count2 := JyBiTidb.Count("dwd_f_crm_clue_info", map[string]interface{}{"level_open": 2, "is_assign": 0})
+		count1 := JyBiTidb.CountBySql(`select count(1) as count from dwd_f_crm_clue_info where level_open=1 and is_assign=0 and is_transfer != 1`)
+		count2 := JyBiTidb.CountBySql(`select count(1) as count from dwd_f_crm_clue_info where level_open=2 and is_assign=0 and is_transfer != 1`)
 		counts1, counts2, counts3 := int64(0), int64(0), int64(0)
 		counts1, counts2, counts3 := int64(0), int64(0), int64(0)
 		counts1 = int64(math.Ceil(float64(this.Count) / float64(10) * 5))
 		counts1 = int64(math.Ceil(float64(this.Count) / float64(10) * 5))
 		if this.Count-counts1 == 0 {
 		if this.Count-counts1 == 0 {