|
@@ -71,7 +71,7 @@ WHERE status = 1 and is_service_open = 0 and user_id = '%s' and product_type lik
|
|
|
}
|
|
|
orderData, _ := g.DB().Query(ctx, fmt.Sprintf(`SELECT a.id,a.service_type,a.order_code,b.create_time FROM jy_order_detail a
|
|
|
INNER JOIN dataexport_order b on a.order_code = b.order_code
|
|
|
-WHERE a.status = 1 %s and a.user_id = '%s' and a.product_type like '%s' ORDER BY b.create_time desc `, whereEntTime, userId, common.If(param.ProductType == "VIP订阅", "%VIP订阅%", "%大会员%")))
|
|
|
+WHERE a.status = 1 %s and b.user_phone = '%s' and a.product_type like '%s' ORDER BY b.create_time desc `, whereEntTime, param.Phone, common.If(param.ProductType == "VIP订阅", "%VIP订阅%", "%大会员%")))
|
|
|
if !orderData.IsEmpty() {
|
|
|
for _, m2 := range orderData.List() {
|
|
|
if linkedId == 0 {
|