Browse Source

订单相关程序修改

WH01243 2 months ago
parent
commit
0f56526975
2 changed files with 2 additions and 2 deletions
  1. 1 1
      clueSync/everything.go
  2. 1 1
      clueSync/kc.go

+ 1 - 1
clueSync/everything.go

@@ -62,7 +62,7 @@ func everythingSync() {
 				last_login_time = common.ObjToString((*vData)["date"])
 			}
 			dDataSql := fmt.Sprintf(`select b.product_type  from  dataexport_order  a   INNER JOIN 
-             jy_order_detail   b    on   a.order_code=b.order_codeand    a.user_id = ?`, user_id)
+             jy_order_detail   b    on   a.order_code=b.order_codeand  and     a.user_id = ?`, user_id)
 			dData := Mysql.SelectBySql(dDataSql)
 			if dData != nil && len(*dData) > 0 {
 				pMap := map[string]string{}

+ 1 - 1
clueSync/kc.go

@@ -37,7 +37,7 @@ FROM
 	AND ( zero_type = "分期付款补充权益" OR zero_type = "原订单不支持开通多项权益" OR zero_type = "权益码兑换" ))) 
 	AND a.user_phone NOT LIKE "%s" 
 	and  a.user_id  !="" 
-	AND a.order_status = 1  and  b.service_type != 4
+	AND a.order_status = 1  and  b.service_type != 4 
 	AND ( a.refund_status != 1 OR a.refund_status IS NULL ) 
 	AND b.service_starttime < "2099-01-01" AND b.service_endtime > now() 
 	AND a.autoUpdate > "%s"