|
@@ -262,7 +262,10 @@ func tagAddSync() {
|
|
|
cfg.LastOrderTime = autoUpdate
|
|
|
}
|
|
|
personArr := getUserIdToUid(uId)
|
|
|
- orderDataSql := fmt.Sprintf(`select a.*,b.product_type as productType from dataexport_order a INNER JOIN jy_order_detail b on a.order_code=b.order_code and a.user_id in (%s) and a.order_status = 1 and a.delete_status =0 ORDER BY b.service_endtime desc `, strings.Join(personArr, ","))
|
|
|
+ orderDataSql := fmt.Sprintf(`select a.*,b.product_type as productType from dataexport_order a
|
|
|
+ INNER JOIN jy_order_detail b on a.order_code=b.order_code and a.user_id in (%s) and
|
|
|
+ a.order_status = 1 and a.del_status =0
|
|
|
+ ORDER BY b.service_endtime desc `, strings.Join(personArr, ","))
|
|
|
orderDatas := Mysql.SelectBySql(orderDataSql)
|
|
|
if orderDatas != nil && len(*orderDatas) > 0 {
|
|
|
product_type_arr, product_type_arrs := []string{}, []string{}
|