Преглед изворни кода

0元订单不不打标签处理

WH01243 пре 8 месеци
родитељ
комит
937c9b2aaa
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      clueSync/tag.go

+ 2 - 1
clueSync/tag.go

@@ -256,7 +256,8 @@ func tagAddSync() {
 			if k == 0 {
 				cfg.LastOrderTime = autoUpdate
 			}
-			orderDatas := TiDb.Find("dwd_f_userbase_order_info", map[string]interface{}{"uid": uId, "order_status": 1, "delete_status": 0}, "", "", -1, -1)
+			//orderDatas := TiDb.Find("dwd_f_userbase_order_info", map[string]interface{}{"uid": uId, "order_status": 1, "delete_status": 0}, "", "", -1, -1)
+			orderDatas := TiDb.SelectBySql("select  *  from  dwd_f_userbase_order_info where   uid=? and  order_status=1 and  delete_status=0 and  payable_money > 0", uId)
 			if orderDatas != nil && len(*orderDatas) > 0 {
 				product_type_arr, product_type_arrs := []string{}, []string{}
 				for _, v := range *orderDatas {