Forráskód Böngészése

Merge branch 'dev_v1.5.36.9_wh' of jianyu/datatools into hotfix/v1.5.36.9

王浩 2 hete
szülő
commit
61166c7294
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      clueSync/jobutil.go

+ 1 - 1
clueSync/jobutil.go

@@ -506,7 +506,7 @@ func orders() {
 	DataSql := fmt.Sprintf(`select a.*,b.product_type as productType ,b.service_starttime,b.service_endtime,b.filter AS productFilter     from  dataexport_order  a  
     INNER JOIN   jy_order_detail   b    on   a.order_code=b.order_code
     and    a.create_time<="%s" and a.create_time>="%s" and b.product_type in  (%s) 
-    and a.order_status = 0 and   a.is_backstage_order = 0  and    a.id> %s`,
+    and a.order_status = 0 and   a.is_backstage_order = 0  and    a.id> %s order by b.id  asc`,
 		selectTimeEnd, selectTimeStart, product_type_str1, gconv.String(lastOrderId))
 	data, _ := getOrderData(DataSql)
 	if data != nil && data != nil && len(data) > 0 {